diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-11 07:48:43 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-11 07:48:43 +0900 |
commit | c5f469375f7c7b09f5f5c9a13ca07c6cf7c2b68a (patch) | |
tree | 8b24b7a0b32ff0f48367355654953abb6cfd2201 /lib/connection.h | |
parent | b0d1808e2732bbba2782321b2e39ec1cab96d885 (diff) | |
download | libquotient-c5f469375f7c7b09f5f5c9a13ca07c6cf7c2b68a.tar.gz libquotient-c5f469375f7c7b09f5f5c9a13ca07c6cf7c2b68a.zip |
Connection: InFore/Background -> Fore/BackgroundRequest
Diffstat (limited to 'lib/connection.h')
-rw-r--r-- | lib/connection.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/connection.h b/lib/connection.h index 5bf8e5ac..2f1b0950 100644 --- a/lib/connection.h +++ b/lib/connection.h @@ -53,7 +53,7 @@ namespace QMatrixClient * * \sa Connection::callApi */ - enum RunningPolicy { InForeground = 0x0, InBackground = 0x1 }; + enum RunningPolicy { ForegroundRequest = 0x0, BackgroundRequest = 0x1 }; class Connection: public QObject { Q_OBJECT @@ -222,7 +222,7 @@ namespace QMatrixClient { auto job = new JobT(std::forward<JobArgTs>(jobArgs)...); connect(job, &BaseJob::failure, this, &Connection::requestFailed); - job->start(connectionData(), runningPolicy&InBackground); + job->start(connectionData(), runningPolicy&BackgroundRequest); return job; } @@ -233,7 +233,7 @@ namespace QMatrixClient template <typename JobT, typename... JobArgTs> JobT* callApi(JobArgTs&&... jobArgs) const { - return callApi<JobT>(InForeground, + return callApi<JobT>(ForegroundRequest, std::forward<JobArgTs>(jobArgs)...); } @@ -278,12 +278,12 @@ namespace QMatrixClient void stopSync(); virtual MediaThumbnailJob* getThumbnail(const QString& mediaId, - QSize requestedSize, RunningPolicy policy = InBackground) const; + QSize requestedSize, RunningPolicy policy = BackgroundRequest) const; MediaThumbnailJob* getThumbnail(const QUrl& url, - QSize requestedSize, RunningPolicy policy = InBackground) const; + QSize requestedSize, RunningPolicy policy = BackgroundRequest) const; MediaThumbnailJob* getThumbnail(const QUrl& url, int requestedWidth, int requestedHeight, - RunningPolicy policy = InBackground) const; + RunningPolicy policy = BackgroundRequest) const; // QIODevice* should already be open UploadContentJob* uploadContent(QIODevice* contentSource, |