From e124310a45e6e7798a077fa44ef3ee518193b2cf Mon Sep 17 00:00:00 2001 From: christian mueller Date: Thu, 9 Feb 2012 17:20:18 +0100 Subject: * modify RoutingSender Async to match with TestHMI * modify ControlSenderPlugin to have dummy behaviour --- PluginControlInterface/include/ControlSender.h | 39 ++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 5 deletions(-) (limited to 'PluginControlInterface/include') diff --git a/PluginControlInterface/include/ControlSender.h b/PluginControlInterface/include/ControlSender.h index d21856b..bd8d88f 100644 --- a/PluginControlInterface/include/ControlSender.h +++ b/PluginControlInterface/include/ControlSender.h @@ -96,20 +96,49 @@ private: class findHandle { - am_Handle_s mHandle; + handleStatus mHandle; public: - explicit findHandle(am_Handle_s handle) : + explicit findHandle(handleStatus handle) : mHandle(handle) { } - bool operator()(handleStatus* handle) const + bool operator()(const handleStatus& handle) const { - return (handle->handle.handle == mHandle.handle); + return (handle.handle.handle == mHandle.handle.handle); + } + }; + + struct checkHandle + { + + handleStatus mHandleStatus; + explicit checkHandle(const handleStatus& value) : + mHandleStatus(value) + { + } + + bool operator()(const handleStatus &value) + { + return !value.status; + } + }; + + struct checkMainConnectionID + { + am_MainConnection_s mMainConnection; + explicit checkMainConnectionID(const am_MainConnection_s& mainConnection) : + mMainConnection(mainConnection) + { + } + bool operator()(const am_MainConnection_s& mainConnection) + { + if (mMainConnection.connectionID == mainConnection.connectionID) + return true; + return false; } }; std::vector mListOpenConnections; - ; }; #endif /* CONTROLSENDER_H_ */ -- cgit v1.2.1