Remove unused gitfolder class for now

This commit is contained in:
Daniel Molkentin 2013-02-14 12:04:35 +01:00
parent 804aef6548
commit 2ba20369ea
3 changed files with 0 additions and 91 deletions

View file

@ -64,7 +64,6 @@ set(libsync_SRCS
mirall/folderman.cpp
mirall/folder.cpp
mirall/folderwatcher.cpp
mirall/gitfolder.cpp
mirall/syncresult.cpp
mirall/unisonfolder.cpp
mirall/networklocation.cpp
@ -85,7 +84,6 @@ set(libsync_HEADERS
mirall/folderman.h
mirall/folder.h
mirall/folderwatcher.h
mirall/gitfolder.h
mirall/unisonfolder.h
mirall/csyncfolder.h
mirall/owncloudfolder.h

View file

@ -1,43 +0,0 @@
/*
* Copyright (C) by Duncan Mac-Vicar P. <duncan@kde.org>
*
* 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 "mirall/gitfolder.h"
#include <QMutexLocker>
#include <QProcess>
namespace Mirall {
GitFolder::GitFolder(const QString &alias,
const QString &path,
const QString &secondPath,
QObject *parent)
: Folder(alias, path, secondPath, parent)
{
_syncProcess = new QProcess();
}
GitFolder::~GitFolder()
{
}
void GitFolder::startSync()
{
QMutexLocker locker(&_syncMutex);
emit syncStarted();
emit syncFinished(SyncResult(SyncResult::Success));
}
} // ns

View file

@ -1,46 +0,0 @@
/*
* Copyright (C) by Duncan Mac-Vicar P. <duncan@kde.org>
*
* 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.
*/
#ifndef MIRALL_GITFOLDER_H
#define MIRALL_GITFOLDER_H
#include <QMutex>
#include "mirall/folder.h"
class QProcess;
namespace Mirall {
class GitFolder : public Folder
{
Q_OBJECT
public:
/**
* path : Local folder to be keep in sync
* remote: git repo url to sync from/to
*/
GitFolder(const QString &alias,
const QString &path,
const QString &secondPath, QObject *parent = 0L);
virtual ~GitFolder();
virtual void startSync();
private:
QMutex _syncMutex;
QProcess *_syncProcess;
};
}
#endif