From 01fd3242c479da8fb3af0242de4700a8dc931b25 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Tue, 6 Aug 2013 18:04:42 +0200 Subject: [PATCH] Add folder alias to sync result structure. --- src/mirall/folder.cpp | 1 + src/mirall/syncresult.cpp | 11 +++++++++++ src/mirall/syncresult.h | 3 +++ 3 files changed, 15 insertions(+) diff --git a/src/mirall/folder.cpp b/src/mirall/folder.cpp index 3e693f25b..355ff8dce 100644 --- a/src/mirall/folder.cpp +++ b/src/mirall/folder.cpp @@ -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() diff --git a/src/mirall/syncresult.cpp b/src/mirall/syncresult.cpp index 6884e05c9..4a76b6676 100644 --- a/src/mirall/syncresult.cpp +++ b/src/mirall/syncresult.cpp @@ -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 diff --git a/src/mirall/syncresult.h b/src/mirall/syncresult.h index 439f1cfc9..0ed7b1301 100644 --- a/src/mirall/syncresult.h +++ b/src/mirall/syncresult.h @@ -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... */