You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

netsoullistusers.h 540B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef NETSOULLISTUSERS_H
  2. #define NETSOULLISTUSERS_H
  3. #include <QObject>
  4. #include <QTcpSocket>
  5. #include <QList>
  6. #include <QStringList>
  7. class NetSoulListUsers : public QObject
  8. {
  9. Q_OBJECT
  10. public:
  11. NetSoulListUsers(QObject* parent);
  12. public slots:
  13. void list();
  14. private slots:
  15. void connectedToNS();
  16. void sockError(QAbstractSocket::SocketError);
  17. void readyRead();
  18. signals:
  19. void listed(QList<QList<QString> >);
  20. void NSError();
  21. private:
  22. QTcpSocket* socket;
  23. QString buf;
  24. };
  25. #endif // NETSOULLISTUSERS_H