diff options
author | GENIVI Audio Manager Maintainer <genivi-maint-audiomanager@smtp1.genivi.org> | 2017-03-07 10:44:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-07 10:44:54 +0100 |
commit | 71eab93f9cd67b2e0343700552adf988c420f174 (patch) | |
tree | 9f08492872ce7de767f66535178bd0575b72a5b7 /AudioManagerCore/include/CAmCommandSender.h | |
parent | 41b1249b1fc3b211dd56333bdc01f7eb8977f674 (diff) | |
parent | ff7a091bd6500413853f381d14be55de2e3affa3 (diff) | |
download | audiomanager-71eab93f9cd67b2e0343700552adf988c420f174.tar.gz |
Merge pull request #14 from GENIVI/Router_adaptions
after phoneconference merged
Diffstat (limited to 'AudioManagerCore/include/CAmCommandSender.h')
-rw-r--r-- | AudioManagerCore/include/CAmCommandSender.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/AudioManagerCore/include/CAmCommandSender.h b/AudioManagerCore/include/CAmCommandSender.h index 82363de..caa72ad 100644 --- a/AudioManagerCore/include/CAmCommandSender.h +++ b/AudioManagerCore/include/CAmCommandSender.h @@ -29,21 +29,24 @@ #endif #include "IAmCommand.h" +#include "CAmDatabaseHandlerMap.h" +#include "CAmSerializer.h" namespace am { class CAmCommandReceiver; +class CAmCommandSender; /** * This class is used to send data to the CommandInterface. * All loaded plugins will be called when a callback is invoked. */ -class CAmCommandSender +class CAmCommandSender: public CAmDatabaseHandlerMap::AmDatabaseObserverCallbacks { public: - CAmCommandSender(const std::vector<std::string>& listOfPluginDirectories); + CAmCommandSender(const std::vector<std::string>& listOfPluginDirectories, CAmSocketHandler *iSocketHandler); ~CAmCommandSender(); am_Error_e startupInterfaces(CAmCommandReceiver* iCommandReceiver); void setCommandReady(); @@ -78,14 +81,18 @@ public: friend class IAmCommandBackdoor; //this is to get access to the loaded plugins and be able to exchange the interfaces #endif private: + void unloadLibraries(void); //!< unload the shared libraries std::vector<IAmCommandSend*> mListInterfaces; //!< list of all interfaces std::vector<void*> mListLibraryHandles; //!< list of all library handles. This information is used to unload the plugins correctly. std::vector<std::string> mListLibraryNames; //!< list of all library names. This information is used for getListPlugins. - + CAmCommandReceiver *mCommandReceiver; + CAmSerializer mSerializer; }; + + } #endif /* COMMANDSENDER_H_ */ |