nextcloud-desktop/src/mirall/syncresult.cpp

60 lines
1.2 KiB
C++
Raw Normal View History

2011-04-08 13:36:53 +04:00
/*
* 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/syncresult.h"
namespace Mirall
{
2011-10-13 18:41:24 +04:00
SyncResult::SyncResult()
: _status( Undefined )
2011-10-13 18:41:24 +04:00
{
}
SyncResult::SyncResult(SyncResult::Status status )
: _status(status)
2011-04-08 13:36:53 +04:00
{
}
SyncResult::Status SyncResult::status() const
2011-04-08 13:36:53 +04:00
{
return _status;
2011-04-08 13:36:53 +04:00
}
2011-09-26 20:19:01 +04:00
void SyncResult::setErrorString( const QString& err )
{
_errorMsg = err;
2011-09-26 20:19:01 +04:00
}
QString SyncResult::errorString() const
{
return _errorMsg;
2011-09-26 20:19:01 +04:00
}
void SyncResult::setSyncChanges(const QHash< QString, QStringList >& changes)
{
_syncChanges = changes;
}
QHash< QString, QStringList > SyncResult::syncChanges() const
{
return _syncChanges;
}
2011-04-08 13:36:53 +04:00
SyncResult::~SyncResult()
{
}
} // ns mirall