summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/ofilenotify.h
Side-by-side diff
Diffstat (limited to 'libopie2/opiecore/ofilenotify.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/ofilenotify.h10
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
@@ -76,7 +76,7 @@ class OFileNotification : public QObject
protected:
bool activate();
- bool hasChanged();
+ virtual bool hasChanged();
static bool registerSignalHandler();
static void unregisterSignalHandler();
static void __signalHandler( int sig, siginfo_t *si, void *data );
@@ -90,6 +90,14 @@ class OFileNotification : public QObject
struct stat _stat;
};
+
+class ODirectoryNotification : public OFileNotification
+{
+ public:
+ virtual bool hasChanged() { return true; };
+};
+
+
}
}