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

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

Inheritance diagram for SystrayNotificationBackend:
Collaboration diagram for SystrayNotificationBackend:

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

 SystrayNotificationBackend (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.

Protected Member Functions

virtual bool eventFilter (QObject *obj, QEvent *event)

Private Slots

void notificationActivated (uint notificationId)
void notificationActivated (SystemTray::ActivationReason)
void animateChanged (const QVariant &)
void showBubbleChanged (const QVariant &)
void updateToolTip ()

Private Attributes

bool _showBubble
bool _animate
QList< Notification_notifications
bool _blockActivation

Detailed Description

Definition at line 30 of file systraynotificationbackend.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 145 of file systraynotificationbackend.cpp.

bool eventFilter ( QObject *  obj,
QEvent *  event 
)
protectedvirtual

Definition at line 117 of file systraynotificationbackend.cpp.

References _blockActivation.

void notificationActivated ( SystemTray::ActivationReason  reason)
privateslot

Definition at line 108 of file systraynotificationbackend.cpp.

References notificationActivated(), and SystemTray::Trigger.

void animateChanged ( const QVariant &  v)
privateslot

Definition at line 132 of file systraynotificationbackend.cpp.

References _animate.

Referenced by SystrayNotificationBackend().

void showBubbleChanged ( const QVariant &  v)
privateslot

Definition at line 126 of file systraynotificationbackend.cpp.

References _showBubble.

Referenced by SystrayNotificationBackend().

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

Member Data Documentation

bool _animate
private

Definition at line 56 of file systraynotificationbackend.h.

Referenced by animateChanged(), and notify().

QList<Notification> _notifications
private

Definition at line 57 of file systraynotificationbackend.h.

Referenced by close(), notificationActivated(), notify(), and updateToolTip().

bool _blockActivation
private

Definition at line 58 of file systraynotificationbackend.h.

Referenced by eventFilter(), and notificationActivated().


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