diff options
Diffstat (limited to 'pluginRoutingInterfaceTCP/RoutingSend.h')
-rw-r--r-- | pluginRoutingInterfaceTCP/RoutingSend.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pluginRoutingInterfaceTCP/RoutingSend.h b/pluginRoutingInterfaceTCP/RoutingSend.h new file mode 100644 index 0000000..30518a6 --- /dev/null +++ b/pluginRoutingInterfaceTCP/RoutingSend.h @@ -0,0 +1,44 @@ +/* + * Bus_Interface.h + * + * Created on: Feb 24, 2011 + * Author: demo + */ + +#ifndef BUS_INTERFACE_H_ +#define BUS_INTERFACE_H_ + +#include <qplugin.h> +#include "routinginterface.h" +#include "TcpServer.h" +#include "tcpClient.h" + +#define BUS_NAME "TCP" + +class RoutingSendTcp: public RoutingSendInterface +{ +Q_OBJECT +public: + void startup_interface(RoutingReceiveInterface * audioman); + void return_BusName(char * BusName); + int Connect(int source, int sink); +public slots: + void system_ready(); + +private: + RoutingReceiveInterface *audiomanager; + TcpServer* m_server; + tcpClient* m_client; +}; + +//That is the actual implementation of the Factory Class returning the real Interface + +class SampleRoutingInterfaceTcpFactory: public QObject, public RoutingInterfaceFactory +{ +Q_OBJECT +Q_INTERFACES(RoutingInterfaceFactory) +public: + RoutingSendInterface* returnInstance(); +}; + +#endif /* BUS_INTERFACE_H_ */ |