mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00

完成插件区域的引用图标加载、快捷设置的展示、老插件的加载等功能 Log: 完成特效模式下右侧插件区域的功能 Influence: v23任务栏右侧插件区域 Task: https://pms.uniontech.com/task-view-110311.html Change-Id: I1599907d4529c57070ee2e21b70cc0c17f132e5e
42 lines
814 B
C++
42 lines
814 B
C++
#ifndef TRAYMONITOR_H
|
|
#define TRAYMONITOR_H
|
|
|
|
#include <QObject>
|
|
|
|
#include "dbustraymanager.h"
|
|
#include "statusnotifierwatcher_interface.h"
|
|
|
|
using namespace org::kde;
|
|
class TrayMonitor : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TrayMonitor(QObject *parent = nullptr);
|
|
|
|
public Q_SLOTS:
|
|
void onTrayIconsChanged();
|
|
void onSniItemsChanged();
|
|
|
|
void startLoadIndicators();
|
|
|
|
Q_SIGNALS:
|
|
void requestUpdateIcon(quint32);
|
|
void xEmbedTrayAdded(quint32);
|
|
void xEmbedTrayRemoved(quint32);
|
|
|
|
void sniTrayAdded(const QString &);
|
|
void sniTrayRemoved(const QString &);
|
|
|
|
void indicatorFounded(const QString &);
|
|
|
|
private:
|
|
DBusTrayManager *m_trayInter;
|
|
StatusNotifierWatcher *m_sniWatcher;
|
|
|
|
QList<quint32> m_trayWids;
|
|
QStringList m_sniServices;
|
|
};
|
|
|
|
#endif // TRAYMONITOR_H
|