summaryrefslogtreecommitdiff
path: root/include/svtools/filechangedchecker.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/svtools/filechangedchecker.hxx')
-rw-r--r--include/svtools/filechangedchecker.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/svtools/filechangedchecker.hxx b/include/svtools/filechangedchecker.hxx
index d63d146688c6..9800654678fa 100644
--- a/include/svtools/filechangedchecker.hxx
+++ b/include/svtools/filechangedchecker.hxx
@@ -35,7 +35,11 @@ private:
public:
void resetTimer();
- bool hasFileChanged();
+ // bUpdate = true when file has changed, get the return and the object get the new time
+ // = false when file has changed, only get the return, not change the object
+ bool hasFileChanged(bool bUpdate = true);
FileChangedChecker(const OUString& rFilename,
const ::std::function<void ()>& rCallback);
+ // with out Timer function
+ FileChangedChecker(const OUString& rFilename);
};