add accessor for root folder

This commit is contained in:
Duncan Mac-Vicar P 2011-03-20 22:18:38 +01:00
parent 3bb5869183
commit d53490c67c
2 changed files with 10 additions and 0 deletions

View file

@ -59,6 +59,11 @@ FolderWatcher::~FolderWatcher()
}
QString FolderWatcher::root() const
{
return _root;
}
QStringList FolderWatcher::folders() const
{
return _inotify->directories();

View file

@ -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