Solid

winstorageaccess.h
1/*
2 SPDX-FileCopyrightText: 2013 Patrick von Reth <vonreth@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef WINSTORAGEACCESS_H
8#define WINSTORAGEACCESS_H
9
10#include <solid/devices/ifaces/storageaccess.h>
11
12#include "windevice.h"
13#include "wininterface.h"
14
15namespace Solid
16{
17namespace Backends
18{
19namespace Win
20{
21class WinStorageAccess : public WinInterface, public virtual Solid::Ifaces::StorageAccess
22{
25public:
26 WinStorageAccess(WinDevice *device);
27 ~WinStorageAccess();
28
29 virtual bool isAccessible() const;
30
31 virtual QString filePath() const;
32
33 virtual bool isIgnored() const;
34
35 virtual bool isEncrypted() const;
36
37 virtual bool setup();
38
39 virtual bool teardown();
40
42 void accessibilityChanged(bool accessible, const QString &udi);
43
44 void setupDone(Solid::ErrorType error, QVariant resultData, const QString &udi);
45
46 void teardownDone(Solid::ErrorType error, QVariant resultData, const QString &udi);
47
48 void setupRequested(const QString &udi);
49
50 void teardownRequested(const QString &udi);
51};
52}
53}
54}
55
56#endif // WINSTORAGEACCESS_H
This device interface is available on volume devices.
The single responsibility of this class is to create arguments valid for logind Inhibit call.
Definition fakebattery.h:16
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
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.