mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
Add folder alias to sync result structure.
This commit is contained in:
parent
9c289334e9
commit
01fd3242c4
3 changed files with 15 additions and 0 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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...
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue