dde-dock/plugins/tray/indicatortray.h
2023-02-16 15:08:28 +08:00

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)
};