Diffstat (limited to 'libopie2/opiecore/ofilenotify.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/ofilenotify.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libopie2/opiecore/ofilenotify.h b/libopie2/opiecore/ofilenotify.h index 5315896..13b5a6b 100644 --- a/libopie2/opiecore/ofilenotify.h +++ b/libopie2/opiecore/ofilenotify.h @@ -73,13 +73,13 @@ class OFileNotification : public QObject signals: void triggered(); protected: bool activate(); - bool hasChanged(); + virtual bool hasChanged(); static bool registerSignalHandler(); static void unregisterSignalHandler(); static void __signalHandler( int sig, siginfo_t *si, void *data ); private: QString _path; @@ -87,11 +87,19 @@ class OFileNotification : public QObject QSignal _signal; int _fd; bool _active; struct stat _stat; }; + +class ODirectoryNotification : public OFileNotification +{ + public: + virtual bool hasChanged() { return true; }; +}; + + } } #endif |