Flush current work
[desktopswitcher.git] / desktopswitcher.h
blobddfd001efd346f2d9779ee8e648c4f54e1dabfd1
1 // $Id: desktopswitcher.h,v 1.1 2002/05/29 22:06:50 nedko Exp $
2 //
3 // Desktop Switcher
4 // Copyright (C) 2000,2001,2002 Nedko Arnaudov <nedko@users.sourceforge.net>
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef _DESKTOP_SWITCHER_H_05586d56_2e6c_4b3f_8199_9e1e5f680410__INCLUEDED
21 #define _DESKTOP_SWITCHER_H_05586d56_2e6c_4b3f_8199_9e1e5f680410__INCLUEDED
23 class CDesktop;
25 class CDesktopSwitcher
27 public:
28 CDesktopSwitcher();
29 ~CDesktopSwitcher();
30 HRESULT Go(unsigned int nDesktops);
31 void Exit();
32 CDesktop * GetDefaultDesktop();
33 void RegisterHotKeys(HWND hWnd);
34 HRESULT HotKeyPressed(WORD wVKey, WORD wModifiers);
35 private:
36 CDesktop **m_ppDesktops;
37 HANDLE m_hExitEvent;
38 unsigned int m_nDesktops;
39 unsigned int m_nCurrentDesktopIndex;
42 #endif // #ifndef _DESKTOP_SWITCHER_H_05586d56_2e6c_4b3f_8199_9e1e5f680410__INCLUEDED