Diffstat (limited to 'libopie2/opiecore/ofilenotify.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiecore/ofilenotify.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libopie2/opiecore/ofilenotify.h b/libopie2/opiecore/ofilenotify.h index 3bc141d..5315896 100644 --- a/libopie2/opiecore/ofilenotify.h +++ b/libopie2/opiecore/ofilenotify.h @@ -66,30 +66,32 @@ class OFileNotification : public QObject int start( const QString& path, bool sshot = false, OFileNotificationType type = Modify ); void stop(); OFileNotificationType type() const; QString path() const; int fileno() const; bool isActive() const; signals: void triggered(); protected: - void activate(); + bool activate(); + bool hasChanged(); static bool registerSignalHandler(); static void unregisterSignalHandler(); static void __signalHandler( int sig, siginfo_t *si, void *data ); private: QString _path; OFileNotificationType _type; QSignal _signal; int _fd; bool _active; + struct stat _stat; }; } } #endif |