dialog.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef DIALOG_H
  2. #define DIALOG_H
  3. #include <QDialog>
  4. #include "dhnetsdk.h"
  5. namespace Ui {
  6. class Dialog;
  7. }
  8. class Dialog : public QDialog
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit Dialog(QWidget *parent = 0);
  13. ~Dialog();
  14. void Init();
  15. void PlaybackPos( DWORD dwTotalSize, DWORD dwDownLoadSize);
  16. void ConvertLoginError2String(int nErrorCode , QString &strErrorCode);
  17. bool setType();
  18. void OnDisconnect();
  19. private:
  20. bool eventFilter(QObject *obj, QEvent *event);//message filter
  21. private slots:
  22. void on_pushButton_loginAndLogout_clicked();
  23. void on_pushButton_playBack_clicked();
  24. void on_pushButton_rewind_clicked();
  25. void on_pushButton_download_clicked();
  26. void keyPressEvent(QKeyEvent* event);
  27. public:
  28. unsigned int m_nTotalRange;
  29. unsigned int m_nCurrnetPos;
  30. Ui::Dialog *ui;
  31. LLONG m_lLoginId;
  32. LLONG m_lPlayBackId;
  33. LLONG m_lRewindBackId;
  34. LLONG m_lDownLoadId;
  35. LLONG m_lPlayHandle;
  36. bool m_bStop;
  37. };
  38. #endif // DIALOG_H