/test_net_client/test_net_client/socketclient.h

http://cupsfilter.googlecode.com/ · C Header · 18 lines · 14 code · 4 blank · 0 comment · 0 complexity · 6cd45baf2ea803440fcc6575ba88a4c5 MD5 · raw file

  1. #ifndef SOCKETCLIENT_H
  2. #define SOCKETCLIENT_H
  3. #include <QTcpSocket>
  4. #include <QString>
  5. class SocketClient : public QTcpSocket
  6. {
  7. Q_OBJECT
  8. public:
  9. SocketClient();
  10. protected slots:
  11. void onConnected();
  12. void onReadyRead();
  13. };
  14. #endif // SOCKETCLIENT_H