author | mickeyl <mickeyl> | 2004-04-19 13:56:14 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-04-19 13:56:14 (UTC) |
commit | 13b62b4e8c613b9f876bd70d519a2a85186dba7a (patch) (unidiff) | |
tree | c52e051c23dca89efc3bb3e468f9033d342f15e8 /libopie2/opiecore/ofilenotify.h | |
parent | 2add0a39efab1af658ab3515090b31fba30df0d5 (diff) | |
download | opie-13b62b4e8c613b9f876bd70d519a2a85186dba7a.zip opie-13b62b4e8c613b9f876bd70d519a2a85186dba7a.tar.gz opie-13b62b4e8c613b9f876bd70d519a2a85186dba7a.tar.bz2 |
First milestone reached:
File notification now works for Access and Modify of existing files.
Next milestone: Rename and Attrib on existing files.
Diffstat (limited to 'libopie2/opiecore/ofilenotify.h') (more/less context) (ignore 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 | |||
@@ -72,23 +72,25 @@ class OFileNotification : public QObject | |||
72 | bool isActive() const; | 72 | bool isActive() const; |
73 | 73 | ||
74 | signals: | 74 | signals: |
75 | void triggered(); | 75 | void triggered(); |
76 | 76 | ||
77 | protected: | 77 | protected: |
78 | void activate(); | 78 | bool activate(); |
79 | bool hasChanged(); | ||
79 | static bool registerSignalHandler(); | 80 | static bool registerSignalHandler(); |
80 | static void unregisterSignalHandler(); | 81 | static void unregisterSignalHandler(); |
81 | static void __signalHandler( int sig, siginfo_t *si, void *data ); | 82 | static void __signalHandler( int sig, siginfo_t *si, void *data ); |
82 | 83 | ||
83 | private: | 84 | private: |
84 | QString _path; | 85 | QString _path; |
85 | OFileNotificationType _type; | 86 | OFileNotificationType _type; |
86 | QSignal _signal; | 87 | QSignal _signal; |
87 | int _fd; | 88 | int _fd; |
88 | bool _active; | 89 | bool _active; |
90 | struct stat _stat; | ||
89 | }; | 91 | }; |
90 | 92 | ||
91 | } | 93 | } |
92 | } | 94 | } |
93 | 95 | ||
94 | #endif | 96 | #endif |