blob: 30518a6c38032cd23085da3fc0426d6b45d97acb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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_ */
|