1 /** 2 * Copyright Mikael H�gdahl - triyana@users.sourceforge.net 3 * 4 * This source is distributed under the terms of the Q Public License version 1.0, 5 * created by Trolltech (www.trolltech.com). 6 */ 7 8 #ifndef DownloadThread_h 9 #define DownloadThread_h 10 11 #include <pasync.h> 12 13 class MHVector; 14 class BaseDownload; 15 16 17 18 /** 19 * Run download in a thread 20 */ 21 class DownloadThread : public pt::thread { 22 public: 23 DownloadThread (); 24 25 int aDownloadType; 26 const char* aStart; 27 const char* aStop; 28 MHVector* aSecs; 29 BaseDownload* aLoad; 30 const char* aFileName; 31 int aStatus; 32 33 protected: 34 virtual void execute (); 35 36 private: 37 }; 38 39 #endif 40