summaryrefslogtreecommitdiff
path: root/PluginControlInterface
diff options
context:
space:
mode:
authorChristian Mueller <christian@lmuc329619u.(none)>2011-12-08 18:43:48 +0100
committerChristian Mueller <christian@lmuc329619u.(none)>2011-12-08 18:43:48 +0100
commit5773404eb801e27179b7c3c7803a990145d6e94a (patch)
tree4bb9db13fbfb3f72479fd7e6ce342768f299d073 /PluginControlInterface
parent9826492b0066d47cfa9ba68d6efe737cc3c317a3 (diff)
downloadaudiomanager-5773404eb801e27179b7c3c7803a990145d6e94a.tar.gz
total rework
no more QT
Diffstat (limited to 'PluginControlInterface')
-rw-r--r--PluginControlInterface/CMakeLists.txt46
-rw-r--r--PluginControlInterface/ControlSender.cpp260
-rw-r--r--PluginControlInterface/ControlSender.h60
3 files changed, 366 insertions, 0 deletions
diff --git a/PluginControlInterface/CMakeLists.txt b/PluginControlInterface/CMakeLists.txt
new file mode 100644
index 0000000..aa3e52a
--- /dev/null
+++ b/PluginControlInterface/CMakeLists.txt
@@ -0,0 +1,46 @@
+cmake_minimum_required(VERSION 2.6)
+
+PROJECT(PluginControlInterface)
+
+set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xlinker -export-dynamic")
+set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic")
+set(CMAKE_CXX_FLAGS "-g -pipe -g -Wall -W -D_REENTRANT")
+
+set(STD_INCLUDE_DIRS "/usr/include")
+set(EXECUTABLE_OUTPUT_PATH ../../bin/)
+set(LIBRARY_OUTPUT_PATH ../plugins/control)
+set(DOC_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/../doc/PluginControl)
+set(AUDIO_INCLUDES_FOLDER ${CMAKE_SOURCE_DIR}/../includes)
+set(DOCUMENT $ENV{gendoc})
+FIND_PACKAGE(PkgConfig)
+pkg_check_modules(DLT REQUIRED automotive-dlt)
+
+file(MAKE_DIRECTORY ${DOC_OUTPUT_PATH})
+
+INCLUDE_DIRECTORIES(
+ ${CMAKE_SOURCE_DIR}
+ ${STD_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${AUDIO_INCLUDES_FOLDER}
+)
+
+# all source files go here
+SET(PLUGIN_STANDARD_HOOKS_SRCS_CXX
+ ControlSender.cpp
+)
+
+add_library(PluginControlInterface SHARED ${PLUGIN_STANDARD_HOOKS_SRCS_CXX})
+
+TARGET_LINK_LIBRARIES(PluginControlInterface ${DLT_LIBRARIES} )
+
+#add a target to generate API documentation with Doxygen
+find_package(Doxygen)
+if(DOXYGEN_FOUND)
+if(DOCUMENT)
+ configure_file(Doxyfile.in ${PROJECT_BINARY_DIR}/Doxyfile @ONLY IMMEDIATE)
+ add_custom_target (Docs ALL
+ COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile WORKING_DIRECTORY ${DOC_OUTPUT_PATH}
+ SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)
+endif(DOCUMENT)
+endif(DOXYGEN_FOUND)
+
diff --git a/PluginControlInterface/ControlSender.cpp b/PluginControlInterface/ControlSender.cpp
new file mode 100644
index 0000000..90cbf91
--- /dev/null
+++ b/PluginControlInterface/ControlSender.cpp
@@ -0,0 +1,260 @@
+/*
+ * ControlSender.cpp
+ *
+ * Created on: Oct 25, 2011
+ * Author: christian
+ */
+
+#include "ControlSender.h"
+
+extern "C" ControlSendInterface* PluginControlInterfaceFactory() {
+ return new ControlSender();
+}
+
+extern "C" void destroyControlPluginInterface(ControlSendInterface* controlSendInterface) {
+ delete controlSendInterface;
+}
+
+ControlSender::ControlSender() {
+ // TODO Auto-generated constructor stub
+
+}
+
+ControlSender::~ControlSender() {
+ // TODO Auto-generated destructor stub
+}
+
+am_Error_e ControlSendInterface::startupController(ControlReceiveInterface* controlreceiveinterface)
+{
+}
+
+
+
+am_Error_e ControlSender::stopController()
+{
+}
+
+
+
+void ControlSender::hookAllPluginsLoaded()
+{
+}
+
+
+
+am_Error_e ControlSender::hookUserConnectionRequest(const am_sourceID_t sourceID, const am_sinkID_t sinkID, am_mainConnectionID_t & mainConnectionID)
+{
+}
+
+
+
+am_Error_e ControlSender::hookUserDisconnectionRequest(const am_mainConnectionID_t connectionID)
+{
+}
+
+
+
+am_Error_e ControlSender::hookUserSetMainSinkSoundProperty(const am_sinkID_t sinkID, const am_MainSoundProperty_s & soundProperty)
+{
+}
+
+
+
+am_Error_e ControlSender::hookUserSetMainSourceSoundProperty(const am_sourceID_t sourceID, const am_MainSoundProperty_s & soundProperty)
+{
+}
+
+
+
+am_Error_e ControlSender::hookUserSetSystemProperty(const am_SystemProperty_s & property)
+{
+}
+
+
+
+am_Error_e ControlSender::hookUserVolumeChange(const am_sinkID_t SinkID, const am_mainVolume_t newVolume)
+{
+}
+
+
+
+am_Error_e ControlSender::hookUserVolumeStep(const am_sinkID_t SinkID, const int16_t increment)
+{
+}
+
+
+
+am_Error_e ControlSender::hookUserSetSinkMuteState(const am_sinkID_t sinkID, const am_MuteState_e muteState)
+{
+}
+
+
+
+am_Error_e ControlSender::hookSystemRegisterDomain(const am_Domain_s & domainData, am_domainID_t & domainID)
+{
+}
+
+
+
+am_Error_e ControlSender::hookSystemDeregisterDomain(const am_domainID_t domainID)
+{
+}
+
+
+
+void ControlSender::hookSystemDomainRegistrationComplete(const am_domainID_t domainID)
+{
+}
+
+
+
+am_Error_e ControlSender::hookSystemRegisterSink(const am_Sink_s & sinkData, am_sinkID_t & sinkID)
+{
+}
+
+
+
+am_Error_e ControlSender::hookSystemDeregisterSink(const am_sinkID_t sinkID)
+{
+}
+
+
+
+am_Error_e ControlSender::hookSystemRegisterSource(const am_Source_s & sourceData, am_sourceID_t & sourceID)
+{
+}
+
+
+
+am_Error_e ControlSender::hookSystemDeregisterSource(const am_sourceID_t sourceID)
+{
+}
+
+
+
+am_Error_e ControlSender::hookSystemRegisterGateway(const am_Gateway_s & gatewayData, am_gatewayID_t & gatewayID)
+{
+}
+
+
+
+am_Error_e ControlSender::hookSystemDeregisterGateway(const am_gatewayID_t gatewayID)
+{
+}
+
+
+
+am_Error_e ControlSender::hookSystemRegisterCrossfader(const am_Crossfader_s & crossfaderData, am_crossfaderID_t & crossfaderID)
+{
+}
+
+
+
+am_Error_e ControlSender::hookSystemDeregisterCrossfader(const am_crossfaderID_t crossfaderID)
+{
+}
+
+
+
+void ControlSender::hookSystemSinkVolumeTick(const am_Handle_s handle, const am_sinkID_t sinkID, const am_volume_t volume)
+{
+}
+
+
+
+void ControlSender::hookSystemSourceVolumeTick(const am_Handle_s handle, const am_sourceID_t sourceID, const am_volume_t volume)
+{
+}
+
+
+
+void ControlSender::hookSystemInterruptStateChange(const am_sourceID_t sourceID, const am_InterruptState_e interruptState)
+{
+}
+
+
+
+void ControlSender::hookSystemSinkAvailablityStateChange(const am_sinkID_t sinkID, const am_Availability_s & availability)
+{
+}
+
+
+
+void ControlSender::hookSystemSourceAvailablityStateChange(const am_sourceID_t sourceID, const am_Availability_s & availability)
+{
+}
+
+
+
+void ControlSender::hookSystemDomainStateChange(const am_domainID_t domainID, const am_DomainState_e state)
+{
+}
+
+
+
+void ControlSender::hookSystemReceiveEarlyData(const std::vector<am_EarlyData_s> & data)
+{
+}
+
+
+
+void ControlSender::hookSystemSpeedChange(const am_speed_t speed)
+{
+}
+
+
+
+void ControlSender::hookSystemTimingInformationChanged(const am_mainConnectionID_t mainConnectionID, const am_timeSync_t time)
+{
+}
+
+
+
+void ControlSender::cbAckConnect(const am_Handle_s handle, const am_Error_e errorID)
+{
+}
+
+
+
+void ControlSender::cbAckDisconnect(const am_Handle_s handle, const am_Error_e errorID)
+{
+}
+
+
+
+void ControlSender::cbAckCrossFade(const am_Handle_s handle, const am_HotSink_e hostsink, const am_Error_e error)
+{
+}
+
+
+
+void ControlSender::cbAckSetSinkVolumeChange(const am_Handle_s handle, const am_volume_t volume, const am_Error_e error)
+{
+}
+
+
+
+void ControlSender::cbAckSetSourceVolumeChange(const am_Handle_s handle, const am_volume_t voulme, const am_Error_e error)
+{
+}
+
+
+
+void ControlSender::cbAckSetSourceState(const am_Handle_s handle, const am_Error_e error)
+{
+}
+
+
+
+void ControlSender::cbAckSetSourceSoundProperty(const am_Handle_s handle, const am_Error_e error)
+{
+}
+
+
+
+void ControlSender::cbAckSetSinkSoundProperty(const am_Handle_s handle, const am_Error_e error)
+{
+}
+
+
+
diff --git a/PluginControlInterface/ControlSender.h b/PluginControlInterface/ControlSender.h
new file mode 100644
index 0000000..caeebd2
--- /dev/null
+++ b/PluginControlInterface/ControlSender.h
@@ -0,0 +1,60 @@
+/*
+ * ControlSender.h
+ *
+ * Created on: Oct 25, 2011
+ * Author: christian
+ */
+
+#ifndef CONTROLSENDER_H_
+#define CONTROLSENDER_H_
+
+#include <control/ControlSendInterface.h>
+
+using namespace am;
+
+class ControlSender: public ControlSendInterface {
+public:
+ ControlSender();
+ virtual ~ControlSender();
+ am_Error_e startupController(ControlReceiveInterface* controlreceiveinterface) ;
+ am_Error_e stopController() ;
+ void hookAllPluginsLoaded() ;
+ am_Error_e hookUserConnectionRequest(const am_sourceID_t sourceID, const am_sinkID_t sinkID, am_mainConnectionID_t& mainConnectionID) ;
+ am_Error_e hookUserDisconnectionRequest(const am_mainConnectionID_t connectionID) ;
+ am_Error_e hookUserSetMainSinkSoundProperty(const am_sinkID_t sinkID, const am_MainSoundProperty_s& soundProperty) ;
+ am_Error_e hookUserSetMainSourceSoundProperty(const am_sourceID_t sourceID, const am_MainSoundProperty_s& soundProperty) ;
+ am_Error_e hookUserSetSystemProperty(const am_SystemProperty_s& property) ;
+ am_Error_e hookUserVolumeChange(const am_sinkID_t SinkID, const am_mainVolume_t newVolume) ;
+ am_Error_e hookUserVolumeStep(const am_sinkID_t SinkID, const int16_t increment) ;
+ am_Error_e hookUserSetSinkMuteState(const am_sinkID_t sinkID, const am_MuteState_e muteState) ;
+ am_Error_e hookSystemRegisterDomain(const am_Domain_s& domainData, am_domainID_t& domainID) ;
+ am_Error_e hookSystemDeregisterDomain(const am_domainID_t domainID) ;
+ void hookSystemDomainRegistrationComplete(const am_domainID_t domainID) ;
+ am_Error_e hookSystemRegisterSink(const am_Sink_s& sinkData, am_sinkID_t& sinkID) ;
+ am_Error_e hookSystemDeregisterSink(const am_sinkID_t sinkID) ;
+ am_Error_e hookSystemRegisterSource(const am_Source_s& sourceData, am_sourceID_t& sourceID) ;
+ am_Error_e hookSystemDeregisterSource(const am_sourceID_t sourceID) ;
+ am_Error_e hookSystemRegisterGateway(const am_Gateway_s& gatewayData, am_gatewayID_t& gatewayID) ;
+ am_Error_e hookSystemDeregisterGateway(const am_gatewayID_t gatewayID) ;
+ am_Error_e hookSystemRegisterCrossfader(const am_Crossfader_s& crossfaderData, am_crossfaderID_t& crossfaderID) ;
+ am_Error_e hookSystemDeregisterCrossfader(const am_crossfaderID_t crossfaderID) ;
+ void hookSystemSinkVolumeTick(const am_Handle_s handle, const am_sinkID_t sinkID, const am_volume_t volume) ;
+ void hookSystemSourceVolumeTick(const am_Handle_s handle, const am_sourceID_t sourceID, const am_volume_t volume) ;
+ void hookSystemInterruptStateChange(const am_sourceID_t sourceID, const am_InterruptState_e interruptState) ;
+ void hookSystemSinkAvailablityStateChange(const am_sinkID_t sinkID, const am_Availability_s& availability) ;
+ void hookSystemSourceAvailablityStateChange(const am_sourceID_t sourceID, const am_Availability_s& availability) ;
+ void hookSystemDomainStateChange(const am_domainID_t domainID, const am_DomainState_e state) ;
+ void hookSystemReceiveEarlyData(const std::vector<am_EarlyData_s>& data) ;
+ void hookSystemSpeedChange(const am_speed_t speed) ;
+ void hookSystemTimingInformationChanged(const am_mainConnectionID_t mainConnectionID, const am_timeSync_t time) ;
+ void cbAckConnect(const am_Handle_s handle, const am_Error_e errorID) ;
+ void cbAckDisconnect(const am_Handle_s handle, const am_Error_e errorID) ;
+ void cbAckCrossFade(const am_Handle_s handle, const am_HotSink_e hostsink, const am_Error_e error) ;
+ void cbAckSetSinkVolumeChange(const am_Handle_s handle, const am_volume_t volume, const am_Error_e error) ;
+ void cbAckSetSourceVolumeChange(const am_Handle_s handle, const am_volume_t voulme, const am_Error_e error) ;
+ void cbAckSetSourceState(const am_Handle_s handle, const am_Error_e error) ;
+ void cbAckSetSourceSoundProperty(const am_Handle_s handle, const am_Error_e error) ;
+ void cbAckSetSinkSoundProperty(const am_Handle_s handle, const am_Error_e error) ;
+};
+
+#endif /* CONTROLSENDER_H_ */