mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
add accessor for root folder
This commit is contained in:
parent
3bb5869183
commit
d53490c67c
2 changed files with 10 additions and 0 deletions
|
@ -59,6 +59,11 @@ FolderWatcher::~FolderWatcher()
|
|||
|
||||
}
|
||||
|
||||
QString FolderWatcher::root() const
|
||||
{
|
||||
return _root;
|
||||
}
|
||||
|
||||
QStringList FolderWatcher::folders() const
|
||||
{
|
||||
return _inotify->directories();
|
||||
|
|
|
@ -29,6 +29,11 @@ public:
|
|||
*/
|
||||
QStringList folders() const;
|
||||
|
||||
/**
|
||||
* Root path being monitored
|
||||
*/
|
||||
QString FolderWatcher::root() const
|
||||
|
||||
signals:
|
||||
/**
|
||||
* Emitted when one of the paths is changed
|
||||
|
|
Loading…
Reference in a new issue