DownloadThreadCallback.h 692 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "Poco/Runnable.h"
  3. #include "InternalNetIntetface.h"
  4. using Poco::Runnable;
  5. class CDownloadThreadCallback :
  6. public Runnable
  7. {
  8. public:
  9. CDownloadThreadCallback(void);
  10. CDownloadThreadCallback(string, string, unsigned long, unsigned long, CInternalNetIntetface*);
  11. ~CDownloadThreadCallback(void);
  12. public:
  13. void SetUri(string);
  14. void SetLocalFile(string);
  15. void SetStart(unsigned long);
  16. void SetEnd(unsigned long);
  17. void SetNet(CInternalNetIntetface*);
  18. unsigned long GetStart();
  19. unsigned long GetEnd();
  20. protected:
  21. void run();
  22. private:
  23. string m_stringUri;
  24. string m_stringLocalFile;
  25. unsigned long m_nStart;
  26. unsigned long m_nEnd;
  27. CInternalNetIntetface* m_pNet;
  28. };