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

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

Inheritance diagram for DockManagerNotificationBackend:
Collaboration diagram for DockManagerNotificationBackend:

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

 DockManagerNotificationBackend (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 enabledChanged (const QVariant &)
void updateProgress (int progress)
void updateProgress (int done, int total)
void itemAdded (QDBusObjectPath)
void synchronized ()

Private Attributes

bool _enabled
QDBusConnection _bus
QDBusInterface * _dock
QDBusInterface * _item
int _count

Detailed Description

Definition at line 32 of file dockmanagernotificationbackend.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

Reimplemented from AbstractNotificationBackend.

Definition at line 146 of file dockmanagernotificationbackend.cpp.

References _count, and _item.

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 172 of file dockmanagernotificationbackend.cpp.

void enabledChanged ( const QVariant &  v)
privateslot

Definition at line 159 of file dockmanagernotificationbackend.cpp.

References _enabled, and _item.

Referenced by DockManagerNotificationBackend().

void updateProgress ( int  done,
int  total 
)
privateslot

Definition at line 106 of file dockmanagernotificationbackend.cpp.

References _enabled, _item, and Client::backlogManager().

void itemAdded ( QDBusObjectPath  p)
privateslot

Definition at line 62 of file dockmanagernotificationbackend.cpp.

References _bus, _dock, and _item.

Referenced by DockManagerNotificationBackend().

void synchronized ( )
privateslot

Member Data Documentation

bool _enabled
private
QDBusConnection _bus
private

Definition at line 53 of file dockmanagernotificationbackend.h.

Referenced by DockManagerNotificationBackend(), and itemAdded().

QDBusInterface* _dock
private

Definition at line 54 of file dockmanagernotificationbackend.h.

Referenced by DockManagerNotificationBackend(), and itemAdded().

QDBusInterface* _item
private
int _count
private

Definition at line 56 of file dockmanagernotificationbackend.h.

Referenced by close(), and notify().


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