src/partDownloader.h

changeset 867
557cb07dbe57
parent 865
6d68840fcb26
child 888
7ad8fb667084
equal deleted inserted replaced
866:4951b737f8cb 867:557cb07dbe57
67 67
68 public: 68 public:
69 explicit PartDownloader (QWidget* parent = null); 69 explicit PartDownloader (QWidget* parent = null);
70 virtual ~PartDownloader(); 70 virtual ~PartDownloader();
71 71
72 void addFile (LDDocumentPtr f);
72 void downloadFile (QString dest, QString url, bool primary); 73 void downloadFile (QString dest, QString url, bool primary);
74 void downloadFromPartsTracker (QString file);
73 QPushButton* getButton (Button i); 75 QPushButton* getButton (Button i);
74 QString getURL(); 76 QString getURL();
75 Source getSource() const; 77 Source getSource() const;
78 void setSource (Source src);
76 void modifyDestination (QString& dest) const; 79 void modifyDestination (QString& dest) const;
77 80
78 static QString getDownloadPath(); 81 static QString getDownloadPath();
79 static void staticBegin(); 82 static void staticBegin();
80 83
81 public slots: 84 public slots:
82 void buttonClicked (QAbstractButton* btn); 85 void buttonClicked (QAbstractButton* btn);
83 void checkIfFinished(); 86 void checkIfFinished();
84 void sourceChanged (int i); 87 void sourceChanged (int i);
88
89 private:
90 Source m_source;
91 QList<LDDocumentPtr> m_files;
85 }; 92 };
86 93
87 // ============================================================================= 94 // =============================================================================
88 // 95 //
89 class PartDownloadRequest : public QObject 96 class PartDownloadRequest : public QObject

mercurial