Solid

fstabmanager.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_FSTABMANAGER_H
8#define SOLID_BACKENDS_FSTAB_FSTABMANAGER_H
9
10#include <QSet>
11#include <QStringList>
12#include <solid/deviceinterface.h>
13#include <solid/devices/ifaces/devicemanager.h>
14
15namespace Solid
16{
17namespace Backends
18{
19namespace Fstab
20{
21class AbstractDeviceFactory;
22
23class FstabManager : public Solid::Ifaces::DeviceManager
24{
26
27public:
28 explicit FstabManager(QObject *parent);
29 ~FstabManager() override;
30
31 QString udiPrefix() const override;
32 QSet<Solid::DeviceInterface::Type> supportedInterfaces() const override;
33 QStringList allDevices() override;
34 QStringList devicesFromQuery(const QString &parentUdi, Solid::DeviceInterface::Type type) override;
35 QObject *createDevice(const QString &udi) override;
36
38 void mtabChanged(const QString &device);
39
40private Q_SLOTS:
41 void onFstabChanged();
42 void onMtabChanged();
43
44private:
45 QSet<Solid::DeviceInterface::Type> m_supportedInterfaces;
46 QStringList m_deviceList;
47 void _k_updateDeviceList();
48};
49
50}
51}
52}
53
54#endif
Type
This enum type defines the type of device interface that a Device can have.
This class specifies the interface a backend will have to implement in order to be used in the system...
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:01:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.