Debian Codegraph @

include/util/dtaskbarcontrol.h

raw
1 // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2 //
3 // SPDX-License-Identifier: LGPL-3.0-or-later
4
5 #ifndef DTASKBARCONTROL_H
6 #define DTASKBARCONTROL_H
7
8 #include <dtkgui_global.h>
9
10 #include <QObject>
11 #include <QColor>
12
13 #include <DObject>
14
15 DGUI_BEGIN_NAMESPACE
16 class DTaskbarControlPrivate;
17
18 class DTaskbarControl : public QObject, public DTK_CORE_NAMESPACE::DObject
19 {
20 Q_OBJECT
21
22 public:
23 explicit DTaskbarControl(QObject *parent = nullptr);
24 ~DTaskbarControl();
25
26 void setProgress(bool progressVisible, double progress);
27 void setCounter(bool counterVisible, int counter);
28 int counter() const;
29 void setCounterVisible(bool counterVisible);
30 bool counterVisible() const;
31 void setUrgency(bool val);
32
33 Q_SIGNALS:
34 void counterChanged(int counter);
35 void counterVisibleChanged(bool visible);
36 void progressChanged(double progress);
37 void progressVisibleChanged(bool visible);
38
39 protected:
40 virtual void sendMessage(const QVariantMap &params);
41
42 private:
43 D_DECLARE_PRIVATE(DTaskbarControl)
44 };
45
46
47
48 DGUI_END_NAMESPACE
49
50 #endif // DTASKBARCONTROL_H