mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Add starter FileProviderEditLocally class
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
5df96b80e0
commit
834e0965ee
@ -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
|
||||
|
||||
32
src/gui/macOS/fileprovidereditlocallyjob.cpp
Normal file
32
src/gui/macOS/fileprovidereditlocallyjob.cpp
Normal 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
|
||||
38
src/gui/macOS/fileprovidereditlocallyjob.h
Normal file
38
src/gui/macOS/fileprovidereditlocallyjob.h
Normal 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;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user