OpendTect  7.0
Public Member Functions | Public Attributes | Protected Attributes | Friends | List of all members
FileSystemWatcher Class Reference

Class for monitoring a file system. More...

Inheritance diagram for FileSystemWatcher:
[legend]

Public Member Functions

 FileSystemWatcher ()
 
 ~FileSystemWatcher ()
 
void addFile (const char *)
 
void addFiles (const BufferStringSet &)
 
const BufferStringchangedDir () const
 
const BufferStringchangedFile () const
 
void removeFile (const char *)
 
void removeFiles (const BufferStringSet &)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 

Public Attributes

Notifier< FileSystemWatcherdirectoryChanged
 
Notifier< FileSystemWatcherfileChanged
 

Protected Attributes

BufferString chgddir_
 
BufferString chgdfile_
 
QFileSystemWatcher * qfswatcher_
 
QFileSystemWCommqfswatchercomm_
 

Friends

class QFileSystemWComm
 

Additional Inherited Members

- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Detailed Description

Class for monitoring a file system.

<>

Constructor & Destructor Documentation

◆ FileSystemWatcher()

FileSystemWatcher::FileSystemWatcher ( )

◆ ~FileSystemWatcher()

FileSystemWatcher::~FileSystemWatcher ( )

Member Function Documentation

◆ addFile()

void FileSystemWatcher::addFile ( const char *  )

◆ addFiles()

void FileSystemWatcher::addFiles ( const BufferStringSet )

◆ changedDir()

const BufferString& FileSystemWatcher::changedDir ( ) const
inline

◆ changedFile()

const BufferString& FileSystemWatcher::changedFile ( ) const
inline

◆ removeFile()

void FileSystemWatcher::removeFile ( const char *  )

◆ removeFiles()

void FileSystemWatcher::removeFiles ( const BufferStringSet )

Friends And Related Function Documentation

◆ QFileSystemWComm

friend class QFileSystemWComm
friend

Member Data Documentation

◆ chgddir_

BufferString FileSystemWatcher::chgddir_
protected

◆ chgdfile_

BufferString FileSystemWatcher::chgdfile_
protected

◆ directoryChanged

Notifier<FileSystemWatcher> FileSystemWatcher::directoryChanged

◆ fileChanged

Notifier<FileSystemWatcher> FileSystemWatcher::fileChanged

◆ qfswatcher_

QFileSystemWatcher* FileSystemWatcher::qfswatcher_
protected

◆ qfswatchercomm_

QFileSystemWComm* FileSystemWatcher::qfswatchercomm_
protected

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