From 3fb65729e122d85a27b2a6194f96e37eaed3edd1 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Tue, 20 Apr 2004 14:34:17 +0000 Subject: 2nd milestone reached: Notification now works with deleted, renamed, and inode-modified files. Next milestone: Make it work for files which are not yet there (DN_CREATE) --- (limited to 'libopie2/opiecore/ofilenotify.h') 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; }; +}; + + } } -- cgit v0.9.0.2