diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-07-09 00:52:03 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-07-09 00:52:03 +0200 |
commit | dd86061f0ff6d19482e9a43af99156a55e60cf00 (patch) | |
tree | 7a943fb95037a7777315d8f6cead00c118e1bc17 /libutil/include | |
parent | ee5583251d92d47f96b03c3b447c115bab901c17 (diff) | |
download | MultiMC-dd86061f0ff6d19482e9a43af99156a55e60cf00.tar MultiMC-dd86061f0ff6d19482e9a43af99156a55e60cf00.tar.gz MultiMC-dd86061f0ff6d19482e9a43af99156a55e60cf00.tar.lz MultiMC-dd86061f0ff6d19482e9a43af99156a55e60cf00.tar.xz MultiMC-dd86061f0ff6d19482e9a43af99156a55e60cf00.zip |
Piddle-farting with 1.6 instances. Now with more json!
Diffstat (limited to 'libutil/include')
-rw-r--r-- | libutil/include/dlqueue.h | 5 | ||||
-rw-r--r-- | libutil/include/jobqueue.h | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/libutil/include/dlqueue.h b/libutil/include/dlqueue.h index 5fb9409c..14fa6e60 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(); diff --git a/libutil/include/jobqueue.h b/libutil/include/jobqueue.h index 061686f6..26f49307 100644 --- a/libutil/include/jobqueue.h +++ b/libutil/include/jobqueue.h @@ -1,5 +1,6 @@ #pragma once #include <QtCore> +#include "libutil_config.h" enum JobStatus { @@ -11,7 +12,7 @@ enum JobStatus class JobList; -class Job : public QObject +class LIBUTIL_EXPORT Job : public QObject { Q_OBJECT protected: @@ -30,7 +31,7 @@ typedef QSharedPointer<Job> JobPtr; /** * A list of jobs, to be processed one by one. */ -class JobList : public QObject +class LIBUTIL_EXPORT JobList : public QObject { friend class JobListQueue; Q_OBJECT @@ -127,7 +128,7 @@ typedef QSharedPointer<JobList> JobListPtr; /** * A queue of job lists! The job lists fail or finish as units. */ -class JobListQueue : public QObject +class LIBUTIL_EXPORT JobListQueue : public QObject { Q_OBJECT public: |