random ai stuff
This commit is contained in:
41
telldus-core/service/ClientCommunicationHandler.h
Normal file
41
telldus-core/service/ClientCommunicationHandler.h
Normal file
@@ -0,0 +1,41 @@
|
||||
//
|
||||
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
|
||||
//
|
||||
// Copyright: See COPYING file that comes with this distribution
|
||||
//
|
||||
//
|
||||
#ifndef TELLDUS_CORE_SERVICE_CLIENTCOMMUNICATIONHANDLER_H_
|
||||
#define TELLDUS_CORE_SERVICE_CLIENTCOMMUNICATIONHANDLER_H_
|
||||
|
||||
#include <string>
|
||||
#include "common/Thread.h"
|
||||
#include "common/Socket.h"
|
||||
#include "common/Event.h"
|
||||
#include "service/DeviceManager.h"
|
||||
#include "service/ControllerManager.h"
|
||||
|
||||
class ClientCommunicationHandler : public TelldusCore::Thread {
|
||||
public:
|
||||
ClientCommunicationHandler();
|
||||
ClientCommunicationHandler(
|
||||
TelldusCore::Socket *clientSocket,
|
||||
TelldusCore::EventRef event,
|
||||
DeviceManager *deviceManager,
|
||||
TelldusCore::EventRef deviceUpdateEvent,
|
||||
ControllerManager *controllerManager
|
||||
);
|
||||
~ClientCommunicationHandler(void);
|
||||
|
||||
bool isDone();
|
||||
|
||||
protected:
|
||||
void run();
|
||||
|
||||
private:
|
||||
class PrivateData;
|
||||
PrivateData *d;
|
||||
void parseMessage(const std::wstring &clientMessage, int *intReturn, std::wstring *wstringReturn);
|
||||
void sendDeviceSignal(int deviceId, int eventDeviceChanges, int eventChangeType);
|
||||
};
|
||||
|
||||
#endif // TELLDUS_CORE_SERVICE_CLIENTCOMMUNICATIONHANDLER_H_
|
||||
Reference in New Issue
Block a user