Add starter EditLocallyVerificationJob

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-05-23 23:56:45 +08:00
parent 8b22f91704
commit 5a3dccdc4a
No known key found for this signature in database
GPG Key ID: C839200C384636B0
3 changed files with 77 additions and 0 deletions

View File

@ -76,6 +76,8 @@ set(client_SRCS
editlocallyjob.cpp
editlocallymanager.h
editlocallymanager.cpp
editlocallyverificationjob.h
editlocallyverificationjob.cpp
filetagmodel.h
filetagmodel.cpp
folder.h

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 "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)
{
}
}

View 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;
};
}