random ai stuff
This commit is contained in:
39
telldus-core/common/EventHandler.h
Normal file
39
telldus-core/common/EventHandler.h
Normal file
@@ -0,0 +1,39 @@
|
||||
//
|
||||
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
|
||||
//
|
||||
// Copyright: See COPYING file that comes with this distribution
|
||||
//
|
||||
//
|
||||
#ifndef TELLDUS_CORE_COMMON_EVENTHANDLER_H_
|
||||
#define TELLDUS_CORE_COMMON_EVENTHANDLER_H_
|
||||
|
||||
#ifdef _MSC_VER
|
||||
typedef unsigned __int64 uint64_t;
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
#include "common/Event.h"
|
||||
|
||||
namespace TelldusCore {
|
||||
|
||||
class EventHandler {
|
||||
public:
|
||||
EventHandler();
|
||||
virtual ~EventHandler(void);
|
||||
|
||||
EventRef addEvent();
|
||||
|
||||
bool waitForAny();
|
||||
|
||||
protected:
|
||||
void signal(Event *event);
|
||||
|
||||
private:
|
||||
class PrivateData;
|
||||
PrivateData *d;
|
||||
bool listIsSignalled();
|
||||
friend class Event;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // TELLDUS_CORE_COMMON_EVENTHANDLER_H_
|
||||
Reference in New Issue
Block a user