Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
SnoreNotificationBackend Class Reference

#include </tmp/quassel/src/qtui/snorenotificationbackend.h>

Inheritance diagram for SnoreNotificationBackend:
Collaboration diagram for SnoreNotificationBackend:

Classes

class  ConfigWidget

Public Types

enum  NotificationType { Highlight = 0x01, PrivMsg = 0x02, HighlightFocused = 0x11, PrivMsgFocused = 0x12 }

Public Slots

void actionInvoked (Snore::Notification)

Signals

void activated (uint notificationId=0)

Public Member Functions

 SnoreNotificationBackend (QObject *parent)
 ~SnoreNotificationBackend ()
void notify (const Notification &)
void close (uint notificationId)
virtual SettingsPagecreateConfigWidget () const
 Factory to create a configuration widget suitable for a specific notification backend.

Private Slots

void backendChanged (const QVariant &)
void timeoutChanged (const QVariant &)

Private Member Functions

void setTraybackend ()
bool setSnoreBackend (const QString &backend)

Private Attributes

SystrayNotificationBackendm_systrayBackend
Snore::SnoreCore * m_snore
QHash< uint, uint > m_notificationIds
Snore::Icon m_icon
Snore::Application m_application
Snore::Alert m_alert
int m_timeout

Detailed Description

Definition at line 35 of file snorenotificationbackend.h.

Member Enumeration Documentation

enum NotificationType
inherited
Enumerator:
Highlight 
PrivMsg 
HighlightFocused 
PrivMsgFocused 

Definition at line 36 of file abstractnotificationbackend.h.

Constructor & Destructor Documentation

Definition at line 69 of file snorenotificationbackend.cpp.

References m_application, and m_snore.

Member Function Documentation

void close ( uint  notificationId)
virtual

Reimplemented from AbstractNotificationBackend.

Definition at line 104 of file snorenotificationbackend.cpp.

References m_notificationIds, m_snore, and m_systrayBackend.

SettingsPage * createConfigWidget ( ) const
virtual

Factory to create a configuration widget suitable for a specific notification backend.

AbstractNotification will not take ownership of that configWidget! In case you need to communicate with the configWidget directly, make your connections here

Implements AbstractNotificationBackend.

Definition at line 118 of file snorenotificationbackend.cpp.

References m_snore.

void activated ( uint  notificationId = 0)
signal

Referenced by actionInvoked().

void actionInvoked ( Snore::Notification  n)
slot

Definition at line 113 of file snorenotificationbackend.cpp.

References activated().

Referenced by SnoreNotificationBackend().

void backendChanged ( const QVariant &  v)
privateslot
void timeoutChanged ( const QVariant &  v)
privateslot
void setTraybackend ( )
private

Definition at line 123 of file snorenotificationbackend.cpp.

References m_systrayBackend, and QtUi::registerNotificationBackend().

Referenced by backendChanged().

bool setSnoreBackend ( const QString &  backend)
private

Member Data Documentation

SystrayNotificationBackend* m_systrayBackend
private

Definition at line 59 of file snorenotificationbackend.h.

Referenced by close(), notify(), setSnoreBackend(), and setTraybackend().

Snore::SnoreCore* m_snore
private
QHash<uint, uint> m_notificationIds
private

Definition at line 62 of file snorenotificationbackend.h.

Referenced by close(), and notify().

Snore::Icon m_icon
private

Definition at line 63 of file snorenotificationbackend.h.

Referenced by notify(), and SnoreNotificationBackend().

Snore::Application m_application
private
Snore::Alert m_alert
private

Definition at line 65 of file snorenotificationbackend.h.

Referenced by notify(), and SnoreNotificationBackend().

int m_timeout
private

Definition at line 66 of file snorenotificationbackend.h.

Referenced by notify(), SnoreNotificationBackend(), and timeoutChanged().


The documentation for this class was generated from the following files: