mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
add some documentation
This commit is contained in:
parent
ad90a6c05e
commit
3bb5869183
1 changed files with 13 additions and 1 deletions
|
@ -11,22 +11,34 @@ class INotify;
|
|||
|
||||
namespace Mirall {
|
||||
|
||||
/**
|
||||
* Watches a folder and sub folders for changes
|
||||
*/
|
||||
class FolderWatcher : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
/**
|
||||
* @param root Path of the root of the folder
|
||||
*/
|
||||
FolderWatcher(const QString &root, QObject *parent = 0L);
|
||||
~FolderWatcher();
|
||||
|
||||
/**
|
||||
* All watched folders and subfolders
|
||||
*/
|
||||
QStringList folders() const;
|
||||
|
||||
signals:
|
||||
/**
|
||||
* Emitted when one of the paths is changed
|
||||
*/
|
||||
void folderChanged(const QString &path);
|
||||
|
||||
protected slots:
|
||||
void slotINotifyEvent(int mask, int cookie, const QString &path);
|
||||
void slotAddFolderRecursive(const QString &path);
|
||||
private:
|
||||
|
||||
QMutex _mutex;
|
||||
INotify *_inotify;
|
||||
QString _root;
|
||||
|
|
Loading…
Reference in a new issue