Solid

fstabwatcher.h
1/*
2 SPDX-FileCopyrightText: 2010 Mario Bensi <mbensi@ipsquad.net>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef SOLID_BACKENDS_FSTAB_WATCHER_H
8#define SOLID_BACKENDS_FSTAB_WATCHER_H
9
10#include <QObject>
11
13class QFile;
14class QSocketNotifier;
15
16namespace Solid
17{
18namespace Backends
19{
20namespace Fstab
21{
22class FstabWatcher : public QObject
23{
25public:
26 FstabWatcher();
27 ~FstabWatcher() override;
28
29 static FstabWatcher *instance();
30
32 void mtabChanged();
33 void fstabChanged();
34
35private Q_SLOTS:
36 void onFileChanged(const QString &path);
37 void orphanFileSystemWatcher();
38
39private:
40 bool m_isRoutineInstalled;
41 QFileSystemWatcher *m_fileSystemWatcher;
42 QSocketNotifier *m_mtabSocketNotifier;
43 QFile *m_mtabFile;
44 bool m_isFstabWatched;
45};
46}
47}
48}
49#endif // SOLID_BACKENDS_FSTAB_WATCHER_H
The single responsibility of this class is to create arguments valid for logind Inhibit call.
Definition fakebattery.h:16
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:12 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.