Add starter FileProviderEditLocally class

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-05-28 16:03:19 +08:00
parent 5df96b80e0
commit 834e0965ee
No known key found for this signature in database
GPG Key ID: C839200C384636B0
3 changed files with 72 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,32 @@
/*
* Copyright (C) by Claudio Cambra <claudio.cambra@nextcloud.com>
*
* 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 <QLoggingCategory>
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

View File

@ -0,0 +1,38 @@
/*
* Copyright (C) by Claudio Cambra <claudio.cambra@nextcloud.com>
*
* 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 <QObject>
#include <QString>
#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;
};
}