X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fstatusnotifieritemdbus.h;h=9c75132dc63f797db34abd767ba3607189ef2b99;hp=670a7c765b8138393ad8e69eb38167112a0644ff;hb=a4eb9eaf480ea9df5b4a070ad40171c5f2345440;hpb=b858144c9d38623bdd9afaa02c404d9515243ab7 diff --git a/src/qtui/statusnotifieritemdbus.h b/src/qtui/statusnotifieritemdbus.h index 670a7c76..9c75132d 100644 --- a/src/qtui/statusnotifieritemdbus.h +++ b/src/qtui/statusnotifieritemdbus.h @@ -4,9 +4,9 @@ * Quasselfied 2010 by Manuel Nickschas * * * * This file is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * it under the terms of the GNU Library General Public License (LGPL) * + * as published by the Free Software Foundation; either version 2 of the * + * License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * @@ -63,12 +63,29 @@ class StatusNotifierItemDBus : public QObject Q_PROPERTY(DBusImageVector AttentionIconPixmap READ AttentionIconPixmap) Q_PROPERTY(QString AttentionMovieName READ AttentionMovieName) Q_PROPERTY(DBusToolTipStruct ToolTip READ ToolTip) + Q_PROPERTY(QString IconThemePath READ IconThemePath) + Q_PROPERTY(QDBusObjectPath Menu READ Menu) friend class StatusNotifierItem; public: StatusNotifierItemDBus(StatusNotifierItem *parent); ~StatusNotifierItemDBus(); + /** + * @return the dbus connection used by this object + */ + QDBusConnection dbusConnection() const; + + /** + * Register the service to DBus + */ + void registerService(); + + /** + * Unregister the service from DBus + */ + void unregisterService(); + /** * @return the service this object is registered on the bus under */ @@ -145,6 +162,15 @@ public: */ DBusToolTipStruct ToolTip() const; + /** + * @return path to extra icon theme, to load application specific icons + */ + QString IconThemePath() const; + + /** + * @return object path to the dbusmenu object + */ + QDBusObjectPath Menu() const; public Q_SLOTS: //interaction