OpendTect  6.3
filemonitor.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bert
8  Date: Oct 2016
9  RCS: $Id: $
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "basicmod.h"
15 #include "notify.h"
16 class BufferStringSet;
18 
19 
20 namespace File
21 {
22 
25 mExpClass(Basic) Monitor : public CallBacker
26 {
27 public:
28 
29  Monitor();
30  ~Monitor();
31 
32  void watch(const char*);
33  void watch(const BufferStringSet&);
34  void forget(const char*);
35 
38 
39 protected:
40 
42  friend class mQtclass(i_QFileSystemWatcher);
43 
44 };
45 
46 } // namespace File
#define mExpClass(module)
Definition: commondefs.h:157
Interface for several file and directory related services.
Definition: file.h:29
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
#define mQtclass(cls)
Definition: commondefs.h:232
Set of BufferString objects.
Definition: bufstringset.h:25
CNotifier< Monitor, BufferString > fileChanged
Definition: filemonitor.h:37
Monitors files and directories for changes.
Definition: filemonitor.h:25
Definition: i_qfilesystemwatcher.h:23
CNotifier< Monitor, BufferString > dirChanged
Definition: filemonitor.h:36
::i_QFileSystemWatcher & watcher_
Definition: filemonitor.h:41
#define mFDQtclass(cls)
Definition: commondefs.h:231
Notifier with automatic capsule creation.
Definition: notify.h:166

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017