LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
LimaFileSystemWatcher_p.h
Go to the documentation of this file.
1
// Copyright 2015 CEA LIST
2
// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3
//
4
// SPDX-License-Identifier: MIT
5
6
#ifndef LIMAFILESYSTEMWATCHER_PRIVATE_H
7
#define LIMAFILESYSTEMWATCHER_PRIVATE_H
8
9
#include <QtCore/qglobal.h>
10
#include <QFileSystemWatcher>
11
#include <QMultiMap>
12
#include <QMutex>
13
14
namespace
Lima
15
{
16
17
class
LimaFileSystemWatcher;
18
class
LimaFileSystemWatcherPrivate
:
public
QObject
19
{
20
Q_OBJECT
21
public
:
22
LimaFileSystemWatcherPrivate
(
LimaFileSystemWatcher
* q, QObject* parent = 0 );
23
virtual
~LimaFileSystemWatcherPrivate
();
24
25
private
Q_SLOTS:
26
void
slotDirectoryChanged (
const
QString & path );
27
void
slotFileChanged (
const
QString & path );
28
29
Q_SIGNALS:
30
void
fileChanged
(
const
QString & path );
31
32
private
:
33
void
delay(
int
millisecondsToWait );
34
35
LimaFileSystemWatcher
*
const
q_ptr;
36
Q_DECLARE_PUBLIC (
LimaFileSystemWatcher
)
37
38
QFileSystemWatcher m_watcher;
39
QMultiMap<QString,QString> m_pathToDeletedFileMap;
40
QMutex m_pathToDeletedFileMapMutex;
41
};
42
43
}
// Lima
44
45
#endif
// LIMAFILESYSTEMWATCHER_PRIVATE_H
Lima::LimaFileSystemWatcherPrivate
Definition
LimaFileSystemWatcher_p.h:19
Lima::LimaFileSystemWatcherPrivate::~LimaFileSystemWatcherPrivate
virtual ~LimaFileSystemWatcherPrivate()
Definition
LimaFileSystemWatcher.cpp:34
Lima::LimaFileSystemWatcherPrivate::fileChanged
void fileChanged(const QString &path)
Lima::LimaFileSystemWatcher
LimaFileSystemWatcher extends QFileSystemWatcher to work on replaced files
Definition
LimaFileSystemWatcher.h:27
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
lima_common
src
common
tools
LimaFileSystemWatcher_p.h
Generated by
1.9.8