DownloadTimerCallback.h 760 B

12345678910111213141516171819202122232425262728
  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 CDownloadTimerCallback
  8. {
  9. public:
  10. CDownloadTimerCallback(pProgressAndSpeedCallback pCallback, unsigned long nFileSize, string stringLocalFilePath,
  11. string stringTempDirectory, unsigned long nAlreadyDownloadFileSize, int nThreadCount, string stringServerFilePath);
  12. ~CDownloadTimerCallback(void);
  13. private:
  14. pProgressAndSpeedCallback m_pCallback;
  15. unsigned long m_nFileSize;
  16. string m_stringLocalFilePath;
  17. string m_stringTempDirectory;
  18. unsigned long m_nCurrentDownloadFileSize;
  19. unsigned long m_nPreDownloadFileSize;
  20. int m_nThreadCount;
  21. string m_stringServerFilePath;
  22. int m_nSeconds;
  23. public:
  24. void onTimer(Timer& timer);
  25. };