formzxsh.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #ifndef FORMZXSH_H
  2. #define FORMZXSH_H
  3. #include <QWidget>
  4. #include "SNCzxsh_global.h"
  5. #include "formaccountinfo.h"
  6. #include "formcommandarea.h"
  7. #include "formshkjfree.h"
  8. #include "formshkjreserve.h"
  9. #include "formshkjhotarea.h"
  10. #include "formad.h"
  11. #include "autosynczxshdata.h"
  12. #include "autosynczxshsltpackno.h"
  13. namespace Ui {
  14. class FormZxsh;
  15. }
  16. class SNCZXSHSHARED_EXPORT FormZxsh : public QWidget
  17. {
  18. Q_OBJECT
  19. public:
  20. explicit FormZxsh(QWidget *parent = 0);
  21. void updateUserState();
  22. void stopService();
  23. ~FormZxsh();
  24. public slots:
  25. void setAccountInfo(QMap<QString,QString> info);
  26. void onSyncPause();
  27. void onSyncResume();
  28. void onZxshDown();
  29. void onZxshReserve();
  30. private:
  31. void initVariables();
  32. void initUI();
  33. void connectSignals();
  34. void disconnectSignals();
  35. signals:
  36. void buttonLoginClick();
  37. void userStateChanged();
  38. private slots:
  39. void onTimeOut();
  40. private:
  41. Ui::FormZxsh *ui;
  42. FormShkjFree *m_formFree;
  43. FormCommandArea *m_formCmdArea;
  44. FormShkjReserve *m_formReserve;
  45. FormShkjHotArea *m_formHotArea;
  46. FormAccountInfo *m_formAccount;
  47. FormAd *m_formAd;
  48. AutoSyncZxshData *m_synczxsh;
  49. AutoSyncZxshSltPackno *m_syncpackno;
  50. QString m_host;
  51. QString m_port;
  52. QString m_ssoHash;
  53. QString m_userCode;
  54. QString m_userPwd;
  55. QMap<QString,QString> m_account;
  56. QTimer *m_timer;
  57. };
  58. #endif // FORMZXSH_H