UploadTimerCallback.h 638 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "Poco/Timer.h"
  3. #include "PhmsDataType.h"
  4. #include <string>
  5. using Poco::Timer;
  6. using namespace std;
  7. class CUploadTimerCallback
  8. {
  9. public:
  10. CUploadTimerCallback(pProgressAndSpeedCallback pCallback, string stringIniFilePath, unsigned long nAlreadyUploadSize, unsigned long nTotalSize, string stringLocalFilePath);
  11. ~CUploadTimerCallback(void);
  12. private:
  13. pProgressAndSpeedCallback m_pCallback;
  14. string m_stringIniFilePath;
  15. unsigned long m_nCurrentUploadFileSize;
  16. unsigned long m_nPreUploadFileSize;
  17. unsigned long m_nTotalSize;
  18. string m_stringLocalFilePath;
  19. int m_nSeconds;
  20. public:
  21. void onTimer(Timer& timer);
  22. };