diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index fde6ac4a0d..8cf5eb9816 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -290,6 +290,8 @@ IF( APPLE ) macOS/fileproviderdomainmanager_mac.mm macOS/fileproviderdomainsyncstatus.h macOS/fileproviderdomainsyncstatus_mac.mm + macOS/fileprovidereditlocallyjob.h + macOS/fileprovidereditlocallyjob.cpp macOS/fileprovideritemmetadata.h macOS/fileprovideritemmetadata.cpp macOS/fileprovideritemmetadata_mac.mm diff --git a/src/gui/macOS/fileprovidereditlocallyjob.cpp b/src/gui/macOS/fileprovidereditlocallyjob.cpp new file mode 100644 index 0000000000..97a089745a --- /dev/null +++ b/src/gui/macOS/fileprovidereditlocallyjob.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 "fileprovidereditlocallyjob.h" + +#include + +namespace OCC::Mac { + +Q_LOGGING_CATEGORY(lcFileProviderEditLocallyJob, "nextcloud.gui.fileprovidereditlocally", QtInfoMsg) + +FileProviderEditLocallyJob::FileProviderEditLocallyJob(const AccountStatePtr &accountState, + const QString &relPath, + QObject *const parent) + : QObject(parent) + , _accountState(accountState) + , _relPath(relPath) +{ +} + +} // namespace OCC::Mac diff --git a/src/gui/macOS/fileprovidereditlocallyjob.h b/src/gui/macOS/fileprovidereditlocallyjob.h new file mode 100644 index 0000000000..5c0c9d85db --- /dev/null +++ b/src/gui/macOS/fileprovidereditlocallyjob.h @@ -0,0 +1,38 @@ +/* + * 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 + +#include "accountstate.h" + +namespace OCC::Mac { + +class FileProviderEditLocallyJob : public QObject +{ + Q_OBJECT + +public: + explicit FileProviderEditLocallyJob(const AccountStatePtr &accountState, + const QString &relPath, + QObject * const parent = nullptr); + +private: + AccountStatePtr _accountState; + QString _relPath; +}; + +}