X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fstatusnotifieritem.h;h=fc774cfd277d334699dd7a75e659ec3b6e8cb35f;hp=1ca4e4a44c689149c3a676a8fbc503d68bc33a91;hb=fdfd62334f728bd05470c5191194d55027fec86e;hpb=55362eeaa19678bd8ba36ecce134d98cc0d7eccd diff --git a/src/qtui/statusnotifieritem.h b/src/qtui/statusnotifieritem.h index 1ca4e4a4..fc774cfd 100644 --- a/src/qtui/statusnotifieritem.h +++ b/src/qtui/statusnotifieritem.h @@ -1,14 +1,14 @@ /*************************************************************************** - * Copyright (C) 2005-2010 by the Quassel Project * + * Copyright (C) 2005-2012 by the Quassel Project * * devel@quassel-irc.org * * * * This contains code from KStatusNotifierItem, part of the KDE libs * * Copyright (C) 2009 Marco Martin * * * - * This program 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) version 3. * + * This file is free software; you can redistribute it and/or modify * + * 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,15 @@ protected: QString iconName() const; QString attentionIconName() const; QString toolTipIconName() const; + QString iconThemePath() const; + QString menuObjectPath() const; virtual bool eventFilter(QObject *watched, QEvent *event); private slots: void activated(const QPoint &pos); void serviceChange(const QString& name, const QString& oldOwner, const QString& newOwner); + void checkForRegisteredHosts(); void notificationClosed(uint id, uint reason); void notificationInvoked(uint id, const QString &action); @@ -77,14 +80,19 @@ private: void registerToDaemon(); static const int _protocolVersion; + static const QString _statusNotifierWatcherServiceName; StatusNotifierItemDBus *_statusNotifierItemDBus; org::kde::StatusNotifierWatcher *_statusNotifierWatcher; org::freedesktop::Notifications *_notificationsClient; bool _notificationsClientSupportsMarkup; + bool _notificationsClientSupportsActions; quint32 _lastNotificationsDBusId; QHash _notificationsIdMap; ///< Maps our own notification ID to the D-Bus one + QString _iconThemePath; + QString _menuObjectPath; + friend class StatusNotifierItemDBus; };