X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fstatusnotifieritem.h;h=016f4516d187ea868c4f820ef6f8d5bf7044577e;hp=b6c69cae1aead56c708cce9b7887abba512d0b9f;hb=e7e5830395a443fe2c185385115774e6f85428f8;hpb=5d9af8ed007d38faf3995ea18174249121f246fe diff --git a/src/qtui/statusnotifieritem.h b/src/qtui/statusnotifieritem.h index b6c69cae..016f4516 100644 --- a/src/qtui/statusnotifieritem.h +++ b/src/qtui/statusnotifieritem.h @@ -5,10 +5,10 @@ * 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 * @@ -71,6 +71,7 @@ protected: 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); @@ -79,11 +80,13 @@ 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