mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Add starter EditLocallyVerificationJob
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
8b22f91704
commit
5a3dccdc4a
@ -76,6 +76,8 @@ set(client_SRCS
|
||||
editlocallyjob.cpp
|
||||
editlocallymanager.h
|
||||
editlocallymanager.cpp
|
||||
editlocallyverificationjob.h
|
||||
editlocallyverificationjob.cpp
|
||||
filetagmodel.h
|
||||
filetagmodel.cpp
|
||||
folder.h
|
||||
|
||||
32
src/gui/editlocallyverificationjob.cpp
Normal file
32
src/gui/editlocallyverificationjob.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 "editlocallyverificationjob.h"
|
||||
|
||||
#include <QLoggingCategory>
|
||||
|
||||
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)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
43
src/gui/editlocallyverificationjob.h
Normal file
43
src/gui/editlocallyverificationjob.h
Normal file
@ -0,0 +1,43 @@
|
||||
/*
|
||||
* 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 "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;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user