Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qfilesystemwatcher_inotify_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QFILESYSTEMWATCHER_INOTIFY_P_H
6
#
define
QFILESYSTEMWATCHER_INOTIFY_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
"qfilesystemwatcher_p.h"
20
21
QT_REQUIRE_CONFIG
(
filesystemwatcher
);
22
23
#
include
<
QtCore
/
qhash
.
h
>
24
#
include
<
QtCore
/
qmutex
.
h
>
25
#
include
<
QtCore
/
qsocketnotifier
.
h
>
26
27
QT_BEGIN_NAMESPACE
28
29
class
QInotifyFileSystemWatcherEngine :
public
QFileSystemWatcherEngine
30
{
31
Q_OBJECT
32
33
public
:
34
~QInotifyFileSystemWatcherEngine();
35
36
static
QInotifyFileSystemWatcherEngine *create(QObject *parent);
37
38
QStringList addPaths(
const
QStringList &paths, QStringList *files, QStringList *directories) override;
39
QStringList removePaths(
const
QStringList &paths, QStringList *files, QStringList *directories) override;
40
41
private
Q_SLOTS:
42
void
readFromInotify();
43
44
private
:
45
QString getPathFromID(
int
id)
const
;
46
47
private
:
48
QInotifyFileSystemWatcherEngine(
int
fd, QObject *parent);
49
int
inotifyFd;
50
QHash<QString,
int
> pathToID;
51
QMultiHash<
int
, QString> idToPath;
52
QSocketNotifier notifier;
53
};
54
55
56
QT_END_NAMESPACE
57
#
endif
// QFILESYSTEMWATCHER_INOTIFY_P_H
QVarLengthArray
Definition
qvarlengtharray.h:291
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(animation)
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(filesystemwatcher)
find_last_in_equal_range
Hash::const_iterator find_last_in_equal_range(const Hash &c, const Key &key)
Definition
qfilesystemwatcher_inotify.cpp:395
qtbase
src
corelib
io
qfilesystemwatcher_inotify_p.h
Generated on
for Qt by
1.18.0