LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::LimaFileSystemWatcher Class Reference

LimaFileSystemWatcher extends QFileSystemWatcher to work on replaced files More...

#include <common/tools/LimaFileSystemWatcher.h>

Inheritance diagram for Lima::LimaFileSystemWatcher:

Signals

void fileChanged (const QString &path)
 This signal is emited whenever path change, either modified, suppressed or recreated.

Public Member Functions

 LimaFileSystemWatcher (QObject *parent=0)
 LimaFileSystemWatcher (const LimaFileSystemWatcher &other)
 ~LimaFileSystemWatcher ()
LimaFileSystemWatcher & operator= (const LimaFileSystemWatcher &other)
bool operator== (const LimaFileSystemWatcher &other)
void addPath (const QString &path)
void removePath (const QString &path)

Detailed Description

LimaFileSystemWatcher extends QFileSystemWatcher to work on replaced files

QFileSystemWatcher stops monitoring a file when it is suppressed. @ref LimaFileSystemWatcher watch the deleted file directory to watch again the former when it is created again.

The public API is a subpart of those of QFileSystemWatcher.

Todo
Complete the API to implement all the QFileSystemWatcher one

Definition at line 26 of file LimaFileSystemWatcher.h.

Constructor & Destructor Documentation

◆ LimaFileSystemWatcher() [1/2]

Lima::LimaFileSystemWatcher::LimaFileSystemWatcher ( QObject * parent = 0)

Definition at line 104 of file LimaFileSystemWatcher.cpp.

◆ LimaFileSystemWatcher() [2/2]

Lima::LimaFileSystemWatcher::LimaFileSystemWatcher ( const LimaFileSystemWatcher & other)

Definition at line 113 of file LimaFileSystemWatcher.cpp.

◆ ~LimaFileSystemWatcher()

Lima::LimaFileSystemWatcher::~LimaFileSystemWatcher ( )

Definition at line 126 of file LimaFileSystemWatcher.cpp.

Member Function Documentation

◆ addPath()

void Lima::LimaFileSystemWatcher::addPath ( const QString & path)

Definition at line 131 of file LimaFileSystemWatcher.cpp.

◆ fileChanged

void Lima::LimaFileSystemWatcher::fileChanged ( const QString & path)
signal

This signal is emited whenever path change, either modified, suppressed or recreated.

◆ operator=()

LimaFileSystemWatcher & Lima::LimaFileSystemWatcher::operator= ( const LimaFileSystemWatcher & other)

Definition at line 142 of file LimaFileSystemWatcher.cpp.

◆ operator==()

bool Lima::LimaFileSystemWatcher::operator== ( const LimaFileSystemWatcher & other)

Definition at line 151 of file LimaFileSystemWatcher.cpp.

◆ removePath()

void Lima::LimaFileSystemWatcher::removePath ( const QString & path)

Definition at line 137 of file LimaFileSystemWatcher.cpp.


The documentation for this class was generated from the following files: