Advertisement
PlotnikovPhilipp

Untitled

Apr 14th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <QtNetwork>
  4.  
  5. using namespace Qt;
  6.  
  7. class Client :public QObject {
  8. Q_OBJECT
  9. private:
  10. QTcpSocket* pTcpSocket;
  11. int sizeOfData, number;
  12. QByteArray imgs;
  13. QList<QString> str;
  14. QString name, password;
  15. public:
  16. Client(QObject* pointer = nullptr);
  17. ~Client();
  18. signals:
  19. void somethingEmpty(QString name);
  20. void accesSigningIn(QString name, int number);
  21. void accesSigningUp(QString name, int number);
  22. void notAccesSigningIn(QString name);
  23. void notAccesSigningUp(QString name);
  24. private slots:
  25. void slotReadyRead();
  26. void slotSendToServer(QString argName, QString argPassword);
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement