Fixed a typo, thanks to Rub3n CT for reporting.
[LameXP.git] / src / WinSevenTaskbar.h
blob8d5c85758a8e43c6d675f982b2cc493b568d5d36
1 ///////////////////////////////////////////////////////////////////////////////
2 // LameXP - Audio Encoder Front-End
3 // Copyright (C) 2004-2011 LoRd_MuldeR <MuldeR2@GMX.de>
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (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.
15 // You should have received a copy of the GNU General Public License along
16 // with this program; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 // http://www.gnu.org/licenses/gpl-2.0.txt
20 ///////////////////////////////////////////////////////////////////////////////
22 #pragma once
24 #include "Global.h"
25 #include <ShObjIdl.h>
27 class QWidget;
28 class QIcon;
30 #ifdef __ITaskbarList3_INTERFACE_DEFINED__
32 class WinSevenTaskbar
34 public:
35 WinSevenTaskbar(void);
36 ~WinSevenTaskbar(void);
38 //Taskbar states
39 enum WinSevenTaskbarState
41 WinSevenTaskbarNoState = 0,
42 WinSevenTaskbarNormalState = 1,
43 WinSevenTaskbarIndeterminateState = 2,
44 WinSevenTaskbarPausedState = 3,
45 WinSevenTaskbarErrorState = 4
48 //Public interface
49 static void initTaskbar(void);
50 static void setTaskbarState(QWidget *window, WinSevenTaskbarState state);
51 static void setTaskbarProgress(QWidget *window, unsigned __int64 currentValue, unsigned __int64 maximumValue);
52 static void setOverlayIcon(QWidget *window, QIcon *icon);
54 private:
55 static ITaskbarList3 *m_ptbl;
58 #else //__ITaskbarList3_INTERFACE_DEFINED__
60 LAMEXP_COMPILER_WARNING("ITaskbarList3 not defined. Compiling *without* support for Win7 taskbar!")
62 class WinSevenTaskbar
64 public:
65 WinSevenTaskbar(void);
66 ~WinSevenTaskbar(void);
68 //Taskbar states
69 enum WinSevenTaskbarState
71 WinSevenTaskbarNoState = 0,
72 WinSevenTaskbarNormalState = 1,
73 WinSevenTaskbarIndeterminateState = 2,
74 WinSevenTaskbarPausedState = 3,
75 WinSevenTaskbarErrorState = 4
78 //Public interface
79 static void initTaskbar(void) {}
80 static void setTaskbarState(QWidget *window, WinSevenTaskbarState state) {}
81 static void setTaskbarProgress(QWidget *window, unsigned __int64 currentValue, unsigned __int64 maximumValue) {}
82 static void setOverlayIcon(QWidget *window, QIcon *icon) {}
85 #endif //__ITaskbarList3_INTERFACE_DEFINED__