• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDECore

Classes | Public Types | Public Slots | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
KDirWatchPrivate Class Reference

#include <kdirwatch_p.h>

Inheritance diagram for KDirWatchPrivate:
QObject

Classes

struct  Client
 
class  Entry
 

Public Types

enum  { NoChange =0 , Changed =1 , Created =2 , Deleted =4 }
 
typedef QMap< QString, Entry > EntryMap
 
enum  entryMode {
  UnknownMode = 0 , StatMode , DNotifyMode , INotifyMode ,
  FAMMode , QFSWatchMode
}
 
enum  entryStatus { Normal = 0 , NonExistent }
 

Public Slots

void famEventReceived ()
 
void fswEventReceived (const QString &path)
 
void inotifyEventReceived ()
 
void slotRemoveDelayed ()
 
void slotRescan ()
 

Public Member Functions

 KDirWatchPrivate ()
 
 ~KDirWatchPrivate ()
 
void addEntry (KDirWatch *instance, const QString &_path, Entry *sub_entry, bool isDir, KDirWatch::WatchModes watchModes=KDirWatch::WatchDirOnly)
 
void addWatch (Entry *entry)
 
bool deref ()
 
void emitEvent (const Entry *e, int event, const QString &fileName=QString())
 
Entry * entry (const QString &)
 
void ref ()
 
void removeEntries (KDirWatch *)
 
bool removeEntry (KDirWatch *, const QString &, Entry *sub_entry)
 
void removeEntry (KDirWatch *, Entry *e, Entry *sub_entry)
 
void removeWatch (Entry *entry)
 
void resetList (KDirWatch *, bool)
 
bool restartEntryScan (KDirWatch *, Entry *, bool)
 
int scanEntry (Entry *e)
 
void startScan (KDirWatch *, bool, bool)
 
void statistics ()
 
bool stopEntryScan (KDirWatch *, Entry *)
 
void stopScan (KDirWatch *)
 
void useFreq (Entry *e, int newFreq)
 
bool useQFSWatch (Entry *e)
 
bool useStat (Entry *)
 

Static Public Member Functions

static bool isNoisyFile (const char *filename)
 

Public Attributes

bool _isStopped
 
bool delayRemove
 
int freq
 
KFileSystemWatcher * fsWatcher
 
EntryMap m_mapEntries
 
int m_nfsPollInterval
 
KDirWatch::Method m_nfsPreferredMethod
 
int m_PollInterval
 
KDirWatch::Method m_preferredMethod
 
int m_ref
 
QSet< Entry * > removeList
 
bool rescan_all
 
QTimer rescan_timer
 
int statEntries
 
QTimer timer
 

Detailed Description

Definition at line 116 of file kdirwatch_p.h.

Member Typedef Documentation

◆ EntryMap

typedef QMap<QString,Entry> KDirWatchPrivate::EntryMap

Definition at line 191 of file kdirwatch_p.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NoChange 
Changed 
Created 
Deleted 

Definition at line 123 of file kdirwatch_p.h.

◆ entryMode

enum KDirWatchPrivate::entryMode
Enumerator
UnknownMode 
StatMode 
DNotifyMode 
INotifyMode 
FAMMode 
QFSWatchMode 

Definition at line 122 of file kdirwatch_p.h.

◆ entryStatus

enum KDirWatchPrivate::entryStatus
Enumerator
Normal 
NonExistent 

Definition at line 121 of file kdirwatch_p.h.

Constructor & Destructor Documentation

◆ KDirWatchPrivate()

KDirWatchPrivate::KDirWatchPrivate ( )

Definition at line 153 of file kdirwatch.cpp.

◆ ~KDirWatchPrivate()

KDirWatchPrivate::~KDirWatchPrivate ( )

Definition at line 250 of file kdirwatch.cpp.

Member Function Documentation

◆ addEntry()

void KDirWatchPrivate::addEntry ( KDirWatch *  instance,
const QString &  _path,
Entry *  sub_entry,
bool  isDir,
KDirWatch::WatchModes  watchModes = KDirWatch::WatchDirOnly 
)

Definition at line 763 of file kdirwatch.cpp.

◆ addWatch()

void KDirWatchPrivate::addWatch ( Entry *  entry)

Definition at line 920 of file kdirwatch.cpp.

◆ deref()

bool KDirWatchPrivate::deref ( )
inline

Definition at line 218 of file kdirwatch_p.h.

◆ emitEvent()

void KDirWatchPrivate::emitEvent ( const Entry *  e,
int  event,
const QString &  fileName = QString() 
)

Definition at line 1315 of file kdirwatch.cpp.

◆ entry()

KDirWatchPrivate::Entry * KDirWatchPrivate::entry ( const QString &  _path)

Definition at line 586 of file kdirwatch.cpp.

◆ famEventReceived

void KDirWatchPrivate::famEventReceived ( )
slot

Definition at line 1659 of file kdirwatch.cpp.

◆ fswEventReceived

void KDirWatchPrivate::fswEventReceived ( const QString &  path)
slot

Definition at line 1707 of file kdirwatch.cpp.

◆ inotifyEventReceived

void KDirWatchPrivate::inotifyEventReceived ( )
slot

Definition at line 271 of file kdirwatch.cpp.

◆ isNoisyFile()

bool KDirWatchPrivate::isNoisyFile ( const char *  filename)
static

Definition at line 1502 of file kdirwatch.cpp.

◆ ref()

void KDirWatchPrivate::ref ( )
inline

Definition at line 217 of file kdirwatch_p.h.

◆ removeEntries()

void KDirWatchPrivate::removeEntries ( KDirWatch *  instance)

Definition at line 1061 of file kdirwatch.cpp.

◆ removeEntry() [1/2]

bool KDirWatchPrivate::removeEntry ( KDirWatch *  instance,
const QString &  _path,
Entry *  sub_entry 
)

Definition at line 995 of file kdirwatch.cpp.

◆ removeEntry() [2/2]

void KDirWatchPrivate::removeEntry ( KDirWatch *  instance,
Entry *  e,
Entry *  sub_entry 
)

Definition at line 1011 of file kdirwatch.cpp.

◆ removeWatch()

void KDirWatchPrivate::removeWatch ( Entry *  entry)

Definition at line 968 of file kdirwatch.cpp.

◆ resetList()

void KDirWatchPrivate::resetList ( KDirWatch *  ,
bool  skippedToo 
)

Definition at line 1206 of file kdirwatch.cpp.

◆ restartEntryScan()

bool KDirWatchPrivate::restartEntryScan ( KDirWatch *  instance,
Entry *  e,
bool  notify 
)

Definition at line 1122 of file kdirwatch.cpp.

◆ scanEntry()

int KDirWatchPrivate::scanEntry ( Entry *  e)

Definition at line 1220 of file kdirwatch.cpp.

◆ slotRemoveDelayed

void KDirWatchPrivate::slotRemoveDelayed ( )
slot

Definition at line 1373 of file kdirwatch.cpp.

◆ slotRescan

void KDirWatchPrivate::slotRescan ( )
slot

Definition at line 1388 of file kdirwatch.cpp.

◆ startScan()

void KDirWatchPrivate::startScan ( KDirWatch *  instance,
bool  notify,
bool  skippedToo 
)

Definition at line 1191 of file kdirwatch.cpp.

◆ statistics()

void KDirWatchPrivate::statistics ( )

Definition at line 1666 of file kdirwatch.cpp.

◆ stopEntryScan()

bool KDirWatchPrivate::stopEntryScan ( KDirWatch *  instance,
Entry *  e 
)

Definition at line 1096 of file kdirwatch.cpp.

◆ stopScan()

void KDirWatchPrivate::stopScan ( KDirWatch *  instance)

Definition at line 1183 of file kdirwatch.cpp.

◆ useFreq()

void KDirWatchPrivate::useFreq ( Entry *  e,
int  newFreq 
)

Definition at line 606 of file kdirwatch.cpp.

◆ useQFSWatch()

bool KDirWatchPrivate::useQFSWatch ( Entry *  e)

Definition at line 713 of file kdirwatch.cpp.

◆ useStat()

bool KDirWatchPrivate::useStat ( Entry *  e)

Definition at line 734 of file kdirwatch.cpp.

Member Data Documentation

◆ _isStopped

bool KDirWatchPrivate::_isStopped

Definition at line 268 of file kdirwatch_p.h.

◆ delayRemove

bool KDirWatchPrivate::delayRemove

Definition at line 242 of file kdirwatch_p.h.

◆ freq

int KDirWatchPrivate::freq

Definition at line 234 of file kdirwatch_p.h.

◆ fsWatcher

KFileSystemWatcher* KDirWatchPrivate::fsWatcher

Definition at line 264 of file kdirwatch_p.h.

◆ m_mapEntries

EntryMap KDirWatchPrivate::m_mapEntries

Definition at line 231 of file kdirwatch_p.h.

◆ m_nfsPollInterval

int KDirWatchPrivate::m_nfsPollInterval

Definition at line 236 of file kdirwatch_p.h.

◆ m_nfsPreferredMethod

KDirWatch::Method KDirWatchPrivate::m_nfsPreferredMethod

Definition at line 233 of file kdirwatch_p.h.

◆ m_PollInterval

int KDirWatchPrivate::m_PollInterval

Definition at line 236 of file kdirwatch_p.h.

◆ m_preferredMethod

KDirWatch::Method KDirWatchPrivate::m_preferredMethod

Definition at line 233 of file kdirwatch_p.h.

◆ m_ref

int KDirWatchPrivate::m_ref

Definition at line 237 of file kdirwatch_p.h.

◆ removeList

QSet<Entry *> KDirWatchPrivate::removeList

Definition at line 241 of file kdirwatch_p.h.

◆ rescan_all

bool KDirWatchPrivate::rescan_all

Definition at line 244 of file kdirwatch_p.h.

◆ rescan_timer

QTimer KDirWatchPrivate::rescan_timer

Definition at line 245 of file kdirwatch_p.h.

◆ statEntries

int KDirWatchPrivate::statEntries

Definition at line 235 of file kdirwatch_p.h.

◆ timer

QTimer KDirWatchPrivate::timer

Definition at line 230 of file kdirwatch_p.h.


The documentation for this class was generated from the following files:
  • kdirwatch_p.h
  • kdirwatch.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal