autosyncdata.h 764 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef AUTOSYNCDATA_H
  2. #define AUTOSYNCDATA_H
  3. #include <QThread>
  4. #include <QtCore>
  5. #include "wscube2.h"
  6. class AutoSyncData : public QThread
  7. {
  8. Q_OBJECT
  9. public:
  10. explicit AutoSyncData();
  11. ~AutoSyncData();
  12. void abort();
  13. void setSkip(bool skip);
  14. public slots:
  15. void setAccountInfo(QMap<QString,QString> accountInfo);
  16. protected:
  17. void run();
  18. signals:
  19. void dataSync();
  20. private:
  21. void sync();
  22. bool checkSynCondition();
  23. public slots:
  24. private:
  25. QMap<QString,QString> m_account;
  26. QString m_clientID;
  27. QString m_moduleID;
  28. int m_errCode;
  29. QString m_errMsg;
  30. QString m_errDetail;
  31. bool m_stop;
  32. bool m_first;
  33. bool m_skip;
  34. WSCube2 *m_cubeWs;
  35. };
  36. #endif // AUTOSYNCDATA_H