serversocket.h
Go to the documentation of this file.
00001 #ifndef SERVERSOCKET_H
00002 #define SERVERSOCKET_H
00003 
00004 #include <QObject>
00005 #include <QTcpSocket>
00006 #include <QHostAddress>
00007 
00008 class ServerSocket : public QObject
00009 {
00010     Q_OBJECT
00011 public:
00012     explicit ServerSocket(int socketDescriptor, QObject *parent = 0);
00013 
00014     void SendStart();
00015     void SendData( const void *data, int len );
00016     void SendEnd();
00017     void SendCancel();
00018     void SendKeyPressed( int val );
00019     void SendEpdOn();
00020     void SendEpdOff();
00021 
00022     QHostAddress peerAddress() const;
00023 
00024 private slots:
00025     void clientDisconnected();
00026     void readyRead();
00027 
00028 signals:
00029     void disconnected();
00030     void read(const QString &cmd);
00031     void error(QTcpSocket::SocketError socketError);
00032 
00033 private:
00034     QTcpSocket socket;
00035     bool m_bSendingData;
00036 
00037     void _Send( const QString& str );
00038     void _Send( const void *data, int len );
00039 
00040 };
00041 
00042 #endif // SERVERSOCKET_H


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