2023-02-16 13:51:55 +08:00
|
|
|
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
|
2022-09-06 11:36:55 +08:00
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
2018-07-24 19:55:39 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "indicatortraywidget.h"
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QScopedPointer>
|
|
|
|
|
|
|
|
class IndicatorTrayPrivate;
|
|
|
|
class IndicatorTray : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2019-03-18 20:15:32 +08:00
|
|
|
explicit IndicatorTray(const QString &indicatorName, QObject *parent = nullptr);
|
2018-07-24 19:55:39 +08:00
|
|
|
~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)
|
|
|
|
};
|