QByteArray data;
};
-typedef QVector<DBusImageStruct> DBusImageVector;
+using DBusImageVector = QVector<DBusImageStruct>;
struct DBusToolTipStruct {
QString icon;
friend class StatusNotifierItem;
public:
StatusNotifierItemDBus(StatusNotifierItem *parent);
- ~StatusNotifierItemDBus();
+ ~StatusNotifierItemDBus() override;
/**
* @return the dbus connection used by this object
QDBusConnection dbusConnection() const;
/**
- * Register the service to DBus
+ * Register the StatusNotifierItem to DBus
*/
- void registerService();
+ void registerTrayIcon();
/**
- * Unregister the service from DBus
+ * Unregister the StatusNotifierItem from DBus
*/
- void unregisterService();
+ void unregisterTrayIcon();
/**
* @return the service this object is registered on the bus under
*/
QDBusObjectPath Menu() const;
-public Q_SLOTS:
+public slots:
//interaction
/**
* Shows the context menu associated to this item
*/
void Scroll(int delta, const QString &orientation);
-Q_SIGNALS:
+signals:
/**
* Inform the systemtray that the own main icon has been changed,
* so should be reloaded
private:
StatusNotifierItem *m_statusNotifierItem;
- QString m_service;
QDBusConnection m_dbus;
static int s_serviceCount;
};