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

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

Public Slots

void ContextMenu (int x, int y)
void Activate (int x, int y)
void SecondaryActivate (int x, int y)
void Scroll (int delta, const QString &orientation)

Signals

void NewIcon ()
void NewOverlayIcon ()
void NewAttentionIcon ()
void NewToolTip ()
void NewStatus (const QString &status)

Public Member Functions

 StatusNotifierItemDBus (StatusNotifierItem *parent)
 ~StatusNotifierItemDBus ()
QDBusConnection dbusConnection () const
void registerService ()
void unregisterService ()
QString service () const
QString Category () const
QString Id () const
QString Title () const
QString Status () const
int WindowId () const
QString IconName () const
DBusImageVector IconPixmap () const
QString OverlayIconName () const
DBusImageVector OverlayIconPixmap () const
QString AttentionIconName () const
DBusImageVector AttentionIconPixmap () const
QString AttentionMovieName () const
DBusToolTipStruct ToolTip () const
QString IconThemePath () const
QDBusObjectPath Menu () const

Properties

QString Category
QString Id
QString Title
QString Status
int WindowId
QString IconName
DBusImageVector IconPixmap
QString OverlayIconName
DBusImageVector OverlayIconPixmap
QString AttentionIconName
DBusImageVector AttentionIconPixmap
QString AttentionMovieName
DBusToolTipStruct ToolTip
QString IconThemePath
QDBusObjectPath Menu

Private Attributes

StatusNotifierItemm_statusNotifierItem
QString m_service
QDBusConnection m_dbus

Static Private Attributes

static int s_serviceCount = 0

Friends

class StatusNotifierItem

Detailed Description

Definition at line 49 of file statusnotifieritemdbus.h.

Constructor & Destructor Documentation

Definition at line 160 of file statusnotifieritemdbus.cpp.

References registerService().

Definition at line 174 of file statusnotifieritemdbus.cpp.

References unregisterService().

Member Function Documentation

QDBusConnection dbusConnection ( ) const
Returns
the dbus connection used by this object

Definition at line 180 of file statusnotifieritemdbus.cpp.

References m_dbus.

void registerService ( )

Register the service to DBus

Definition at line 188 of file statusnotifieritemdbus.cpp.

References m_dbus, and m_service.

Referenced by StatusNotifierItemDBus().

void unregisterService ( )

Unregister the service from DBus

Definition at line 197 of file statusnotifieritemdbus.cpp.

References m_dbus, and m_service.

Referenced by ~StatusNotifierItemDBus().

QString service ( ) const
Returns
the service this object is registered on the bus under

Definition at line 207 of file statusnotifieritemdbus.cpp.

References m_service.

QString Category ( ) const
Returns
the category of the application associated to this item
See Also
Category
QString Id ( ) const
Returns
the id of this item
QString Title ( ) const
Returns
the title of this item
QString Status ( ) const
Returns
The status of this item
See Also
Status
int WindowId ( ) const
Returns
The id of the main window of the application that controls the item
QString IconName ( ) const
Returns
the name of the main icon to be displayed if image() is not empty this will always return an empty string
DBusImageVector IconPixmap ( ) const
Returns
a serialization of the icon data
QString OverlayIconName ( ) const
Returns
the name of the overlay of the main icon to be displayed if image() is not empty this will always return an empty string
DBusImageVector OverlayIconPixmap ( ) const
Returns
a serialization of the icon data
QString AttentionIconName ( ) const
Returns
the name of the icon to be displayed when the application is requesting the user's attention if attentionImage() is not empty this will always return an empty string
DBusImageVector AttentionIconPixmap ( ) const
Returns
a serialization of the requesting attention icon data
QString AttentionMovieName ( ) const
Returns
the name of the attention movie
DBusToolTipStruct ToolTip ( ) const

all the data needed for a tooltip

QString IconThemePath ( ) const
Returns
path to extra icon theme, to load application specific icons
QDBusObjectPath Menu ( ) const
Returns
object path to the dbusmenu object
void ContextMenu ( int  x,
int  y 
)
slot

Shows the context menu associated to this item at the desired screen position

Definition at line 323 of file statusnotifieritemdbus.cpp.

References m_statusNotifierItem.

void Activate ( int  x,
int  y 
)
slot

Shows the main widget and try to position it on top of the other windows, if the widget is already visible, hide it.

Definition at line 347 of file statusnotifieritemdbus.cpp.

References m_statusNotifierItem.

void SecondaryActivate ( int  x,
int  y 
)
slot

The user activated the item in an alternate way (for instance with middle mouse button, this depends from the systray implementation)

Definition at line 353 of file statusnotifieritemdbus.cpp.

void Scroll ( int  delta,
const QString &  orientation 
)
slot

Inform this item that the mouse wheel was used on its representation

Definition at line 361 of file statusnotifieritemdbus.cpp.

void NewIcon ( )
signal

Inform the systemtray that the own main icon has been changed, so should be reloaded

void NewOverlayIcon ( )
signal

Inform the systemtray that there is a new icon to be used as overlay

void NewAttentionIcon ( )
signal

Inform the systemtray that the requesting attention icon has been changed, so should be reloaded

void NewToolTip ( )
signal

Inform the systemtray that something in the tooltip has been changed

void NewStatus ( const QString &  status)
signal

Signal the new status when it has been changed

See Also
Status

Friends And Related Function Documentation

friend class StatusNotifierItem
friend

Definition at line 69 of file statusnotifieritemdbus.h.

Member Data Documentation

StatusNotifierItem* m_statusNotifierItem
private

Definition at line 229 of file statusnotifieritemdbus.h.

Referenced by Activate(), and ContextMenu().

QString m_service
private

Definition at line 230 of file statusnotifieritemdbus.h.

Referenced by registerService(), service(), and unregisterService().

QDBusConnection m_dbus
private

Definition at line 231 of file statusnotifieritemdbus.h.

Referenced by dbusConnection(), registerService(), and unregisterService().

int s_serviceCount = 0
staticprivate

Definition at line 232 of file statusnotifieritemdbus.h.

Property Documentation

QString Category
read

Definition at line 53 of file statusnotifieritemdbus.h.

QString Id
read

Definition at line 54 of file statusnotifieritemdbus.h.

QString Title
read

Definition at line 55 of file statusnotifieritemdbus.h.

QString Status
read

Definition at line 56 of file statusnotifieritemdbus.h.

int WindowId
read

Definition at line 57 of file statusnotifieritemdbus.h.

QString IconName
read

Definition at line 58 of file statusnotifieritemdbus.h.

DBusImageVector IconPixmap
read

Definition at line 59 of file statusnotifieritemdbus.h.

QString OverlayIconName
read

Definition at line 60 of file statusnotifieritemdbus.h.

DBusImageVector OverlayIconPixmap
read

Definition at line 61 of file statusnotifieritemdbus.h.

QString AttentionIconName
read

Definition at line 62 of file statusnotifieritemdbus.h.

DBusImageVector AttentionIconPixmap
read

Definition at line 63 of file statusnotifieritemdbus.h.

QString AttentionMovieName
read

Definition at line 64 of file statusnotifieritemdbus.h.

DBusToolTipStruct ToolTip
read

Definition at line 65 of file statusnotifieritemdbus.h.

QString IconThemePath
read

Definition at line 66 of file statusnotifieritemdbus.h.

QDBusObjectPath Menu
read

Definition at line 67 of file statusnotifieritemdbus.h.


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