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
14namespace Lima
15{
16
17class LimaFileSystemWatcher;
18class LimaFileSystemWatcherPrivate : public QObject
19{
20 Q_OBJECT
21public:
22 LimaFileSystemWatcherPrivate ( LimaFileSystemWatcher* q, QObject* parent = 0 );
24
25private Q_SLOTS:
26 void slotDirectoryChanged ( const QString & path );
27 void slotFileChanged ( const QString & path );
28
29Q_SIGNALS:
30 void fileChanged ( const QString & path );
31
32private:
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
void fileChanged(const QString &path)
LimaFileSystemWatcher extends QFileSystemWatcher to work on replaced files
NAUTITIA.