summaryrefslogtreecommitdiff
path: root/PluginControlInterface/include
diff options
context:
space:
mode:
authorchristian mueller <christian.ei.mueller@bmw.de>2012-02-09 17:20:18 +0100
committerchristian mueller <christian.ei.mueller@bmw.de>2012-02-09 17:20:18 +0100
commite124310a45e6e7798a077fa44ef3ee518193b2cf (patch)
tree5fb3b14934438d567ee76f9dc978a326542ddbd7 /PluginControlInterface/include
parent2ddacca29eccd4192add2b17ad6af357b52ea29b (diff)
downloadaudiomanager-e124310a45e6e7798a077fa44ef3ee518193b2cf.tar.gz
* modify RoutingSender Async to match with TestHMI
* modify ControlSenderPlugin to have dummy behaviour
Diffstat (limited to 'PluginControlInterface/include')
-rw-r--r--PluginControlInterface/include/ControlSender.h39
1 files changed, 34 insertions, 5 deletions
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<mainConnectionSet> mListOpenConnections;
- ;
};
#endif /* CONTROLSENDER_H_ */