taskbarbutton.h
1 //------------------------------------------------------------------------------
2 // taskbarbutton.h
3 //------------------------------------------------------------------------------
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 // 02110-1301, USA.
19 //
20 //------------------------------------------------------------------------------
21 // Copyright (C) 2015 "Zalewa" <zalewapl@gmail.com>
22 //------------------------------------------------------------------------------
23 #ifndef id66f36b50_e785_4dbc_85d2_638742154353
24 #define id66f36b50_e785_4dbc_85d2_638742154353
25 
26 #include "dptr.h"
27 #include <QObject>
28 
29 class QString;
30 class QIcon;
31 class QWindow;
32 class TaskbarProgress;
33 
42 class TaskbarButton : public QObject
43 {
44  Q_OBJECT;
45 
46 public:
47  TaskbarButton(QObject *parent);
48 
49  QString overlayAccessibleDescription() const;
50  QIcon overlayIcon() const;
51  TaskbarProgress *progress() const;
52  void setWindow(QWindow *window);
53  QWindow *window() const;
54 
55 public slots:
56  void clearOverlayIcon();
57  void setOverlayAccessibleDescription(const QString &description);
58  void setOverlayIcon(const QIcon &icon);
59 
60 private:
62 };
63 
64 #endif
Platform-agnostic wrapper for QWinTaskbarButton.
Definition: taskbarbutton.h:42
Platform-agnostic wrapper for QWinTaskbarProgress.