Add folder alias to sync result structure.

This commit is contained in:
Klaas Freitag 2013-08-06 18:04:42 +02:00
parent 9c289334e9
commit 01fd3242c4
3 changed files with 15 additions and 0 deletions

View file

@ -82,6 +82,7 @@ Folder::Folder(const QString &alias, const QString &path, const QString& secondP
QObject::connect(&_pollTimer, SIGNAL(timeout()), this, SLOT(slotPollTimerTimeout()));
_pollTimer.start();
_syncResult.setFolder(alias);
}
bool Folder::init()

View file

@ -125,8 +125,19 @@ void SyncResult::clearErrors()
_errors.clear();
}
void SyncResult::setFolder(const QString& folder)
{
_folder = folder;
}
QString SyncResult::folder() const
{
return _folder;
}
SyncResult::~SyncResult()
{
}
} // ns mirall

View file

@ -59,11 +59,14 @@ public:
Status status() const;
QString statusString() const;
QDateTime syncTime() const;
void setFolder(const QString& folder);
QString folder() const;
private:
Status _status;
SyncFileItemVector _syncItems;
QDateTime _syncTime;
QString _folder;
/**
* when the sync tool support this...
*/