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.

servermanager.h 468B

1234567891011121314151617181920212223242526
  1. #ifndef SERVERMANAGER_H
  2. #define SERVERMANAGER_H
  3. #include <QObject>
  4. #include <QPair>
  5. #include <ptsocket/ptserver.h>
  6. class ServerManager : public QObject
  7. {
  8. Q_OBJECT
  9. public:
  10. explicit ServerManager(QObject *parent = 0);
  11. signals:
  12. public slots:
  13. bool init(const QHostAddress& addr, const int& port);
  14. void sendData(const QList<QPair<QVariant, QVariant> > &values, const qint64& timestamp);
  15. private:
  16. PTServer* m_server;
  17. };
  18. #endif // SERVERMANAGER_H