1 ///////////////////////////////////////////////////////////////////////////////
2 // LameXP - Audio Encoder Front-End
3 // Copyright (C) 2004-2011 LoRd_MuldeR <MuldeR2@GMX.de>
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.
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 ///////////////////////////////////////////////////////////////////////////////
30 #ifdef __ITaskbarList3_INTERFACE_DEFINED__
35 WinSevenTaskbar(void);
36 ~WinSevenTaskbar(void);
39 enum WinSevenTaskbarState
41 WinSevenTaskbarNoState
= 0,
42 WinSevenTaskbarNormalState
= 1,
43 WinSevenTaskbarIndeterminateState
= 2,
44 WinSevenTaskbarPausedState
= 3,
45 WinSevenTaskbarErrorState
= 4
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
);
55 static ITaskbarList3
*m_ptbl
;
58 #else //__ITaskbarList3_INTERFACE_DEFINED__
60 LAMEXP_COMPILER_WARNING("ITaskbarList3 not defined. Compiling *without* support for Win7 taskbar!")
65 WinSevenTaskbar(void);
66 ~WinSevenTaskbar(void);
69 enum WinSevenTaskbarState
71 WinSevenTaskbarNoState
= 0,
72 WinSevenTaskbarNormalState
= 1,
73 WinSevenTaskbarIndeterminateState
= 2,
74 WinSevenTaskbarPausedState
= 3,
75 WinSevenTaskbarErrorState
= 4
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__