summaryrefslogtreecommitdiffstats
path: root/libutil/include/dlqueue.h
diff options
context:
space:
mode:
authorTakSuyu <taksuyu@gmail.com>2013-07-27 12:55:51 -0700
committerTakSuyu <taksuyu@gmail.com>2013-07-27 12:55:51 -0700
commitdc39d093396c9a0ed4f03d81f95fcc8fa5705b65 (patch)
treeb88bf5fa692de82ce3418bdf5c55e9cd9eff37bc /libutil/include/dlqueue.h
parent44498f98945b7501486da35c5fdc32f94a2be080 (diff)
parenta7a84d4dbb58565f108cb0886da6cb786e34d10d (diff)
downloadMultiMC-dc39d093396c9a0ed4f03d81f95fcc8fa5705b65.tar
MultiMC-dc39d093396c9a0ed4f03d81f95fcc8fa5705b65.tar.gz
MultiMC-dc39d093396c9a0ed4f03d81f95fcc8fa5705b65.tar.lz
MultiMC-dc39d093396c9a0ed4f03d81f95fcc8fa5705b65.tar.xz
MultiMC-dc39d093396c9a0ed4f03d81f95fcc8fa5705b65.zip
Merge remote-tracking branch 'upstream/master'
Conflicts: gui/mainwindow.cpp
Diffstat (limited to 'libutil/include/dlqueue.h')
-rw-r--r--libutil/include/dlqueue.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/libutil/include/dlqueue.h b/libutil/include/dlqueue.h
index 9041e762..69fc22a6 100644
--- a/libutil/include/dlqueue.h
+++ b/libutil/include/dlqueue.h
@@ -5,13 +5,16 @@
/**
* A single file for the downloader/cache to process.
*/
-class DownloadJob : public Job
+class LIBUTIL_EXPORT DownloadJob : public Job
{
Q_OBJECT
public:
DownloadJob(QUrl url, QString rel_target_path = QString(), QString expected_md5 = QString());
static JobPtr create(QUrl url, QString rel_target_path = QString(), QString expected_md5 = QString());
+
+public:
+ static bool ensurePathExists(QString filenamepath);
public slots:
virtual void start();
@@ -37,8 +40,10 @@ public:
/// save to file?
bool m_save_to_file;
+ /// is the saving file already open?
+ bool m_opened_for_saving;
/// if saving to file, use the one specified in this string
- QString m_rel_target_path;
+ QString m_target_path;
/// this is the output file, if any
QFile m_output_file;
/// if not saving to file, downloaded data is placed here