mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
36 lines
790 B
C++
36 lines
790 B
C++
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
|
|
//
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "indicatortraywidget.h"
|
|
|
|
#include <QObject>
|
|
#include <QScopedPointer>
|
|
|
|
class IndicatorTrayPrivate;
|
|
class IndicatorTray : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit IndicatorTray(const QString &indicatorName, QObject *parent = nullptr);
|
|
~IndicatorTray();
|
|
|
|
IndicatorTrayWidget *widget();
|
|
|
|
void removeWidget();
|
|
|
|
signals:
|
|
void delayLoaded();
|
|
void removed();
|
|
|
|
private slots:
|
|
void textPropertyChanged(const QDBusMessage &message);
|
|
void iconPropertyChanged(const QDBusMessage &message);
|
|
|
|
private:
|
|
QScopedPointer<IndicatorTrayPrivate> d_ptr;
|
|
Q_DECLARE_PRIVATE_D(qGetPtrHelper(d_ptr), IndicatorTray)
|
|
};
|