OpendTect  6.6
filesystemwatcher.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3 ________________________________________________________________________
4 
5  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
6  Author: Nanne Hemstra
7  Date: March 2009
8  RCS: $Id$
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "basicmod.h"
14 #include "callback.h"
15 #include "bufstring.h"
16 #include "commondefs.h"
17 
18 class BufferStringSet;
19 class QFileSystemWatcher;
20 class QFileSystemWComm;
21 
27 {
28 public:
29  friend class QFileSystemWComm;
30 
33 
34  void addFile(const char*);
35  void addFiles(const BufferStringSet&);
36  void removeFile(const char*);
38 
39  const BufferString& changedDir() const { return chgddir_; }
40  const BufferString& changedFile() const { return chgdfile_; }
41 
44 
45 protected:
46 
49 
50  QFileSystemWatcher* qfswatcher_;
52 
53 };
54 
FileSystemWatcher::changedFile
const BufferString & changedFile() const
Definition: filesystemwatcher.h:40
FileSystemWatcher::qfswatchercomm_
QFileSystemWComm * qfswatchercomm_
Definition: filesystemwatcher.h:51
FileSystemWatcher::chgdfile_
BufferString chgdfile_
Definition: filesystemwatcher.h:48
FileSystemWatcher::qfswatcher_
QFileSystemWatcher * qfswatcher_
Definition: filesystemwatcher.h:50
FileSystemWatcher::removeFile
void removeFile(const char *)
FileSystemWatcher::directoryChanged
Notifier< FileSystemWatcher > directoryChanged
Definition: filesystemwatcher.h:42
mGlobal
#define mGlobal(module)
Definition: commondefs.h:180
BufferStringSet
Set of BufferString objects.
Definition: bufstringset.h:26
commondefs.h
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
callback.h
FileSystemWatcher::addFiles
void addFiles(const BufferStringSet &)
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
bufstring.h
FSW
FileSystemWatcher & FSW()
FileSystemWatcher::FileSystemWatcher
FileSystemWatcher()
FileSystemWatcher::~FileSystemWatcher
~FileSystemWatcher()
FileSystemWatcher::changedDir
const BufferString & changedDir() const
Definition: filesystemwatcher.h:39
Notifier< FileSystemWatcher >
QFileSystemWComm
QFileSystemWatcher communication class.
Definition: qfilesystemcomm.h:27
FileSystemWatcher
Class for monitoring a file system.
Definition: filesystemwatcher.h:27
FileSystemWatcher::fileChanged
Notifier< FileSystemWatcher > fileChanged
Definition: filesystemwatcher.h:43
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
FileSystemWatcher::chgddir_
BufferString chgddir_
Definition: filesystemwatcher.h:47
FileSystemWatcher::addFile
void addFile(const char *)
FileSystemWatcher::removeFiles
void removeFiles(const BufferStringSet &)

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