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

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

Inheritance diagram for KNotificationBackend:
Collaboration diagram for KNotificationBackend:

Classes

class  ConfigWidget

Public Types

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

Signals

void activated (uint notificationId=0)
 May be emitted by the notification to tell the MainWin to raise itself.

Public Member Functions

 KNotificationBackend (QObject *parent=0)
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 notificationActivated ()
void notificationActivated (SystemTray::ActivationReason)
void notificationActivated (uint notificationId)

Private Member Functions

void removeNotificationById (uint id)
void updateToolTip ()

Private Attributes

QList< QPair< uint, QPointer
< KNotification > > > 
_notifications

Detailed Description

Definition at line 32 of file knotificationbackend.h.

Member Enumeration Documentation

enum NotificationType
inherited
Enumerator:
Highlight 
PrivMsg 
HighlightFocused 
PrivMsgFocused 

Definition at line 36 of file abstractnotificationbackend.h.

Constructor & Destructor Documentation

Member Function Documentation

void close ( uint  notificationId)
virtual
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 143 of file knotificationbackend.cpp.

void notificationActivated ( )
privateslot

Definition at line 108 of file knotificationbackend.cpp.

Referenced by KNotificationBackend(), notificationActivated(), and notify().

void notificationActivated ( SystemTray::ActivationReason  reason)
privateslot
void notificationActivated ( uint  notificationId)
privateslot
void removeNotificationById ( uint  id)
private

Definition at line 84 of file knotificationbackend.cpp.

References _notifications, and updateToolTip().

Referenced by close().

void updateToolTip ( )
private
void activated ( uint  notificationId = 0)
signalinherited

Member Data Documentation

QList<QPair<uint, QPointer<KNotification> > > _notifications
private

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