2014-02-18 14:52:38 +04:00
|
|
|
/*
|
|
|
|
* Copyright (C) by Olivier Goffart <ogoffart@owncloud.com>
|
|
|
|
* Copyright (C) by Klaas Freitag <freitag@owncloud.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 "owncloudpropagator.h"
|
|
|
|
#include <httpbf.h>
|
|
|
|
#include <QFile>
|
|
|
|
#include <qdebug.h>
|
|
|
|
|
2014-11-10 00:34:07 +03:00
|
|
|
namespace OCC {
|
2014-02-18 14:52:38 +04:00
|
|
|
|
|
|
|
class PropagateLocalRemove : public PropagateItemJob {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
PropagateLocalRemove (OwncloudPropagator* propagator,const SyncFileItem& item) : PropagateItemJob(propagator, item) {}
|
2014-07-10 01:22:28 +04:00
|
|
|
void start() Q_DECL_OVERRIDE;
|
2014-02-18 14:52:38 +04:00
|
|
|
};
|
|
|
|
class PropagateLocalMkdir : public PropagateItemJob {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
PropagateLocalMkdir (OwncloudPropagator* propagator,const SyncFileItem& item) : PropagateItemJob(propagator, item) {}
|
2014-07-10 01:22:28 +04:00
|
|
|
void start() Q_DECL_OVERRIDE;
|
2014-05-23 20:54:35 +04:00
|
|
|
|
2014-02-18 14:52:38 +04:00
|
|
|
};
|
|
|
|
class PropagateLocalRename : public PropagateItemJob {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
PropagateLocalRename (OwncloudPropagator* propagator,const SyncFileItem& item) : PropagateItemJob(propagator, item) {}
|
2014-07-10 01:22:28 +04:00
|
|
|
void start() Q_DECL_OVERRIDE;
|
2014-11-18 19:35:31 +03:00
|
|
|
JobParallelism parallelism() Q_DECL_OVERRIDE { return WaitForFinishedInParentDirectory; }
|
2014-04-29 18:47:07 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-02-18 14:52:38 +04:00
|
|
|
}
|