Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QFILESYSTEMWATCHER_INOTIFY_P_H
5#define QFILESYSTEMWATCHER_INOTIFY_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
19
20QT_REQUIRE_CONFIG(filesystemwatcher);
21
22#include <QtCore/qhash.h>
23#include <QtCore/qmutex.h>
24#include <QtCore/qsocketnotifier.h>
25
27
29{
31
32public:
34
36
37 QStringList addPaths(const QStringList &paths, QStringList *files, QStringList *directories) override;
38 QStringList removePaths(const QStringList &paths, QStringList *files, QStringList *directories) override;
39
40private Q_SLOTS:
41 void readFromInotify();
42
43private:
44 QString getPathFromID(int id) const;
45
46private:
48 int inotifyFd;
49 QHash<QString, int> pathToID;
50 QMultiHash<int, QString> idToPath;
51 QSocketNotifier notifier;
52};
53
54
56#endif // QFILESYSTEMWATCHER_INOTIFY_P_H
QStringList removePaths(const QStringList &paths, QStringList *files, QStringList *directories) override
QStringList addPaths(const QStringList &paths, QStringList *files, QStringList *directories) override
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
\inmodule QtCore
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLsizei const GLuint * paths
GLuint64 GLenum GLint fd
#define QT_REQUIRE_CONFIG(feature)
#define Q_OBJECT
#define Q_SLOTS
QStringList files
[8]
view create()