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

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

Inheritance diagram for PhononNotificationBackend:
Collaboration diagram for PhononNotificationBackend:

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

 PhononNotificationBackend (QObject *parent=0)
 ~PhononNotificationBackend ()
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 audioFileChanged (const QVariant &)
void createMediaObject (const QString &name)

Private Attributes

bool _enabled
bool _audioAvailable
Phonon::MediaObject * _media

Detailed Description

Definition at line 31 of file phononnotificationbackend.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 49 of file phononnotificationbackend.cpp.

References _media.

Member Function Documentation

void close ( uint  notificationId)
virtual

Reimplemented from AbstractNotificationBackend.

Definition at line 69 of file phononnotificationbackend.cpp.

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 87 of file phononnotificationbackend.cpp.

void enabledChanged ( const QVariant &  v)
privateslot

Definition at line 75 of file phononnotificationbackend.cpp.

References _enabled.

Referenced by PhononNotificationBackend().

void audioFileChanged ( const QVariant &  v)
privateslot

Definition at line 81 of file phononnotificationbackend.cpp.

References createMediaObject().

Referenced by PhononNotificationBackend().

void createMediaObject ( const QString &  name)
privateslot

Definition at line 93 of file phononnotificationbackend.cpp.

References _media.

Referenced by audioFileChanged(), and PhononNotificationBackend().

Member Data Documentation

bool _enabled
private

Definition at line 49 of file phononnotificationbackend.h.

Referenced by enabledChanged(), notify(), and PhononNotificationBackend().

Phonon::MediaObject* _media
private

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