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 |