source: trunk/synergy/lib/platform/CMSWindowsEventQueueBuffer.h

Last change on this file was 2749, checked in by bird, 19 years ago

synergy v1.3.1 sources (zip).

File size: 1.3 KB
Line 
1/*
2 * synergy -- mouse and keyboard sharing utility
3 * Copyright (C) 2004 Chris Schoeneman
4 *
5 * This package is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * found in the file COPYING that should have accompanied this file.
8 *
9 * This package is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#ifndef CMSWINDOWSEVENTQUEUEBUFFER_H
16#define CMSWINDOWSEVENTQUEUEBUFFER_H
17
18#include "IEventQueueBuffer.h"
19#define WIN32_LEAN_AND_MEAN
20#include <windows.h>
21
22//! Event queue buffer for Win32
23class CMSWindowsEventQueueBuffer : public IEventQueueBuffer {
24public:
25 CMSWindowsEventQueueBuffer();
26 virtual ~CMSWindowsEventQueueBuffer();
27
28 // IEventQueueBuffer overrides
29 virtual void waitForEvent(double timeout);
30 virtual Type getEvent(CEvent& event, UInt32& dataID);
31 virtual bool addEvent(UInt32 dataID);
32 virtual bool isEmpty() const;
33 virtual CEventQueueTimer*
34 newTimer(double duration, bool oneShot) const;
35 virtual void deleteTimer(CEventQueueTimer*) const;
36
37private:
38 DWORD m_thread;
39 UINT m_userEvent;
40 MSG m_event;
41 UINT m_daemonQuit;
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.