mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
added clearError and flag to indicate local run methods.
This commit is contained in:
parent
e521d0f53c
commit
3c3bdeec5b
2 changed files with 23 additions and 0 deletions
|
@ -19,11 +19,13 @@ namespace Mirall
|
|||
|
||||
SyncResult::SyncResult()
|
||||
: _status( Undefined )
|
||||
, _localRunOnly(false)
|
||||
{
|
||||
}
|
||||
|
||||
SyncResult::SyncResult(SyncResult::Status status )
|
||||
: _status(status)
|
||||
, _localRunOnly(false)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -58,6 +60,11 @@ QString SyncResult::errorString() const
|
|||
return _errors.first();
|
||||
}
|
||||
|
||||
void SyncResult::clearErrors()
|
||||
{
|
||||
_errors.clear();
|
||||
}
|
||||
|
||||
void SyncResult::setSyncChanges(const QHash< QString, QStringList >& changes)
|
||||
{
|
||||
_syncChanges = changes;
|
||||
|
@ -68,6 +75,16 @@ QHash< QString, QStringList > SyncResult::syncChanges() const
|
|||
return _syncChanges;
|
||||
}
|
||||
|
||||
bool SyncResult::localRunOnly() const
|
||||
{
|
||||
return _localRunOnly;
|
||||
}
|
||||
|
||||
void SyncResult::setLocalRunOnly( bool lor )
|
||||
{
|
||||
_localRunOnly = lor;
|
||||
}
|
||||
|
||||
SyncResult::~SyncResult()
|
||||
{
|
||||
}
|
||||
|
|
|
@ -42,12 +42,16 @@ public:
|
|||
void setErrorStrings( const QStringList& );
|
||||
QString errorString() const;
|
||||
QStringList errorStrings() const;
|
||||
void clearErrors();
|
||||
|
||||
void setSyncChanges( const QHash<QString, QStringList> &changes );
|
||||
QHash<QString, QStringList> syncChanges() const;
|
||||
|
||||
void setStatus( Status );
|
||||
Status status() const;
|
||||
|
||||
bool localRunOnly() const;
|
||||
void setLocalRunOnly( bool );
|
||||
private:
|
||||
Status _status;
|
||||
QHash<QString, QStringList> _syncChanges;
|
||||
|
@ -58,6 +62,8 @@ private:
|
|||
QStringList _deletedSource;
|
||||
QStringList _deletedDestination;
|
||||
QStringList _errors;
|
||||
|
||||
bool _localRunOnly;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue