soundserver.h
Go to the documentation of this file.
00001 #ifndef SOUNDSERVER_H
00002 #define SOUNDSERVER_H
00003 
00004 #include <QTcpServer>
00005 #include <QList>
00006 #include "serversocket.h"
00007 
00008 class SoundServer : public QTcpServer
00009 {
00010     Q_OBJECT
00011 public:
00012     explicit SoundServer(QObject *parent = 0);
00013 
00014     void SendStart();
00015     void SendData( const void *data, int len );
00016     void SendEnd();
00017     void SendCancel();
00018     void SendEpdOn();
00019     void SendEpdOff();
00020     void SendKeyPressed( int val );
00021 
00022 protected:
00023     virtual void incomingConnection(int socketDescriptor);
00024 
00025 signals:
00026     void onCmd(const QString &cmd);
00027     void clientConnected(const QHostAddress &addr);
00028 
00029 private slots:
00030     void socketFinished();
00031     void read(const QString &cmd);
00032 
00033 private:
00034     QList<ServerSocket*> sockets;
00035 };
00036 
00037 #endif // SOUNDSERVER_H


rospeex_audiomonitor
Author(s): Komei Sugiura
autogenerated on Thu Apr 20 2017 03:08:48