diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 290e16e944..fde6ac4a0d 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -76,6 +76,8 @@ set(client_SRCS editlocallyjob.cpp editlocallymanager.h editlocallymanager.cpp + editlocallyverificationjob.h + editlocallyverificationjob.cpp filetagmodel.h filetagmodel.cpp folder.h diff --git a/src/gui/editlocallyverificationjob.cpp b/src/gui/editlocallyverificationjob.cpp new file mode 100644 index 0000000000..b67c16fe7a --- /dev/null +++ b/src/gui/editlocallyverificationjob.cpp @@ -0,0 +1,32 @@ +/* + * Copyright (C) by Claudio Cambra + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +#include "editlocallyverificationjob.h" + +#include + +namespace OCC +{ + +Q_LOGGING_CATEGORY(lcEditLocallyVerificationJob, "nextcloud.gui.editlocallyverificationjob", QtInfoMsg) + +EditLocallyVerificationJob::EditLocallyVerificationJob(const AccountStatePtr &accountState, const QString &relPath, const QString &token, QObject *const parent) + : QObject(parent) + , _accountState(accountState) + , _relPath(relPath) + , _token(token) +{ +} + +} diff --git a/src/gui/editlocallyverificationjob.h b/src/gui/editlocallyverificationjob.h new file mode 100644 index 0000000000..bc53fd14e1 --- /dev/null +++ b/src/gui/editlocallyverificationjob.h @@ -0,0 +1,43 @@ +/* + * Copyright (C) by Claudio Cambra + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +#pragma once + +#include + +#include "accountstate.h" + +namespace OCC { + +class EditLocallyVerificationJob : public QObject +{ + Q_OBJECT + +public: + explicit EditLocallyVerificationJob(const AccountStatePtr &accountState, + const QString &relPath, + const QString &token, + QObject *const parent = nullptr); + +signals: + void error(const QString &message, const QString &informativeText); + void finished(); + +private: + AccountStatePtr _accountState; + QString _relPath; // full remote path for a file (as on the server) + QString _token; +}; + +}