summaryrefslogtreecommitdiff
path: root/AudioManagerDeamon/routinginterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'AudioManagerDeamon/routinginterface.h')
-rw-r--r--AudioManagerDeamon/routinginterface.h131
1 files changed, 58 insertions, 73 deletions
diff --git a/AudioManagerDeamon/routinginterface.h b/AudioManagerDeamon/routinginterface.h
index c627179..d8a063e 100644
--- a/AudioManagerDeamon/routinginterface.h
+++ b/AudioManagerDeamon/routinginterface.h
@@ -23,7 +23,6 @@
*
*/
-
#ifndef ROUTINGINTERFACE_H_
#define ROUTINGINTERFACE_H_
@@ -35,55 +34,50 @@ class RoutingSendInterface;
/** Routing Receive sendInterface description.
* This class implements everything from RoutingAdapter -> Audiomanager
*/
-class RoutingReceiveInterface
-{
+class RoutingReceiveInterface {
public:
/** destructor*/
- virtual ~RoutingReceiveInterface() {}
+ virtual ~RoutingReceiveInterface() {
+ }
/** Registers a Domain at the Audiomanager.
* \return a unique ID of the domain */
- virtual domain_t registerDomain(
- char* name, /**< the name of the domain. Must be unique in the system*/
- char* busname, /**< the name of the bus that is used laster to talk to the domain*/
- char* node, /**< the nonde of the bus*/
- bool earlymode /**< true if the domain is in earlymode*/
- )=0;
+ virtual domain_t registerDomain(char* name, /**< the name of the domain. Must be unique in the system*/
+ char* busname, /**< the name of the bus that is used laster to talk to the domain*/
+ char* node, /**< the nonde of the bus*/
+ bool earlymode /**< true if the domain is in earlymode*/
+ )=0;
/** Registers a Gateway at the Audiomanager
* \return a unique ID of the gateway */
- virtual gateway_t registerGateway(
- char* name, /**< the name of the gateway. Should be unique in the system*/
- char* sink, /**< the name of the sink (on the emitting side)*/
- char* source, /**< the name of the source (on the receiving side)*/
- char *domainSource, /**< the domain of the source*/
- char* domainSink, /**< the domain of the sink*/
- char* controlDomain /**< the controlling domain*/
- )=0;
+ virtual gateway_t registerGateway(char* name, /**< the name of the gateway. Should be unique in the system*/
+ char* sink, /**< the name of the sink (on the emitting side)*/
+ char* source, /**< the name of the source (on the receiving side)*/
+ char *domainSource, /**< the domain of the source*/
+ char* domainSink, /**< the domain of the sink*/
+ char* controlDomain /**< the controlling domain*/
+ )=0;
/** registers a Sink at the Audiomanager
* \return a unique ID of the sink.*/
- virtual sink_t registerSink(
- char* name, /**< the name of the sink to be registered. Sink names must be unique within a Domain*/
- char* sinkclass, /**< the name of the class. Must be valid otherwise registration fails*/
- char* domain /**< the domain name of the sink*/
- )=0;
+ virtual sink_t registerSink(char* name, /**< the name of the sink to be registered. Sink names must be unique within a Domain*/
+ char* sinkclass, /**< the name of the class. Must be valid otherwise registration fails*/
+ char* domain /**< the domain name of the sink*/
+ )=0;
/** registers a Source at the Audiomanager *
* \return unique ID of the source */
- virtual source_t registerSource(
- char* name, /**< the name of the source to be registered. Source names must be unique wihin the Domain*/
- char* audioclass, /**< the name of the class. If not existend, default will be used.*/
- char* domain /**< the domain of the sink*/
- )=0;
+ virtual source_t registerSource(char* name, /**< the name of the source to be registered. Source names must be unique wihin the Domain*/
+ char* audioclass, /**< the name of the class. If not existend, default will be used.*/
+ char* domain /**< the domain of the sink*/
+ )=0;
/** just get the ID of a domain without registering it. This is used to register Gateways.
* During the time of registration it is unclear if the other Domain already exists. This function will either
* return the already existing ID or reserve an ID with is then used later when the domain is registered. *
* \return the unique Id of the domain. */
- virtual domain_t peekDomain(
- char* name /**< the name of the domain*/
- )=0;
+ virtual domain_t peekDomain(char* name /**< the name of the domain*/
+ )=0;
/**Acknowledgement of a connect. This function shall be called when a connect event is finished
*
@@ -97,95 +91,85 @@ public:
/** Routing Send sendInterface
* This class implements everything from Audiomanager -> RoutingAdapter
*/
-class RoutingSendInterface: public QObject
-{
+class RoutingSendInterface: public QObject {
public:
/** destructor*/
- virtual ~RoutingSendInterface() {}
+ virtual ~RoutingSendInterface() {
+ }
/** starts up the interface. In the implementations, here is the best place for
* init routines.
*/
- virtual void startup_interface(
- RoutingReceiveInterface * action /**< hands over the handle to the receive object. */
- )=0;
+ virtual void startup_interface(RoutingReceiveInterface * action /**< hands over the handle to the receive object. */
+ )=0;
/** connect a source to a sink
* \return the unique ID of the connection.
*/
- virtual connection_t connect(
- source_t source, /**< the ID of the source*/
- sink_t sink, /**< the ID of the sink*/
- connection_t con_ID /**< the ID of the connection*/
- )=0;
+ virtual connection_t connect(source_t source, /**< the ID of the source*/
+ sink_t sink, /**< the ID of the sink*/
+ connection_t con_ID /**< the ID of the connection*/
+ )=0;
/** disconnect a connection
* \return true on success
*/
- virtual bool disconnect(
- connection_t connection_ID /**< the ID of the connection*/
- )=0;
+ virtual bool disconnect(connection_t connection_ID /**< the ID of the connection*/
+ )=0;
/** this method is used to retrieve the busname during startup of the plugin.
* Needs to be implemented
*/
- virtual void return_BusName(
- char* BusName /**< pointer to the Busname that needs to be returned*/
- )=0;
+ virtual void return_BusName(char* BusName /**< pointer to the Busname that needs to be returned*/
+ )=0;
/** this method is used to set the volume of a sink
* \return returns the new value or -1 on error or impossible.
* It is not mandatory that a Plugin implements this feature.
*/
- virtual volume_t setSinkVolume(
- volume_t volume, /**< new volume */
- sink_t sinkID /**< sinkID to change */
- )=0;
+ virtual volume_t setSinkVolume(volume_t volume, /**< new volume */
+ sink_t sinkID /**< sinkID to change */
+ )=0;
/** this method is used to set the volume of a source
* \return returns the new value or -1 on error or impossible.
* It is not mandatory that a Plugin implements this feature.
*/
- virtual volume_t setSourceVolume(
- volume_t volume, /**< new volume */
- source_t sourceID /**< sourceID to change */
- )=0;
+ virtual volume_t setSourceVolume(volume_t volume, /**< new volume */
+ source_t sourceID /**< sourceID to change */
+ )=0;
/** this method is used to mute a source
*
* \return true if succeeded
* \todo add error codes to answers
*/
- virtual bool muteSource(
- source_t sourceID /**< SourceID to be muted */
- )=0;
+ virtual bool muteSource(source_t sourceID /**< SourceID to be muted */
+ )=0;
/** this method is used to mute a sink
*
* \return true if succeeded
* \todo add error codes to answers
*/
- virtual bool muteSink(
- sink_t sinkID /**< SinkID to be muted */
- )=0;
+ virtual bool muteSink(sink_t sinkID /**< SinkID to be muted */
+ )=0;
/** this method is used to unmute a source
*
* \return true if succeeded
* \todo add error codes to answers
*/
- virtual bool unmuteSource(
- source_t sourceID /**< SourceID to be unmuted */
- )=0;
+ virtual bool unmuteSource(source_t sourceID /**< SourceID to be unmuted */
+ )=0;
/** this method is used to unmute a sink
*
* \return true if succeeded
* \todo add error codes to answers
*/
- virtual bool unmuteSink(
- sink_t sinkID /**< SinkID to be unmuted */
- )=0;
+ virtual bool unmuteSink(sink_t sinkID /**< SinkID to be unmuted */
+ )=0;
public slots:
/** signal that tells the plugin that the system is ready. Is used to trigger a registration of Domains, etc..*/
@@ -196,17 +180,18 @@ public slots:
* This is used for the Qt Plugin mechanism. The factory creates and returns a pointer to the
* RoutingSendInterface.
*/
-class RoutingInterfaceFactory
-{
+class RoutingInterfaceFactory {
public:
- virtual ~RoutingInterfaceFactory() {}
+ virtual ~RoutingInterfaceFactory() {
+ }
/** returns an Instance of RoutingSendInterface.
* \return pointer to the instance.
*/
- virtual RoutingSendInterface* returnInstance()=0;
+ virtual RoutingSendInterface* returnInstance()=0;
};
-Q_DECLARE_INTERFACE(RoutingInterfaceFactory,"RoutingInterfaceFactory/1.0");
+Q_DECLARE_INTERFACE(RoutingInterfaceFactory,"RoutingInterfaceFactory/1.0")
+;
#endif /* ROUTINGINTERFACE_H_ */