Solid

winstoragevolume.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 WINSTORAGEVOLUME_H
8#define WINSTORAGEVOLUME_H
9
10#include <solid/devices/ifaces/storagevolume.h>
11
12#include "winblock.h"
13#include "wininterface.h"
14
15namespace Solid
16{
17namespace Backends
18{
19namespace Win
20{
21class WinStorageVolume : public WinBlock, public virtual Solid::Ifaces::StorageVolume
22{
25
26public:
27 WinStorageVolume(WinDevice *device);
28 ~WinStorageVolume();
29
30 virtual bool isIgnored() const;
31
32 virtual Solid::StorageVolume::UsageType usage() const;
33 virtual QString fsType() const;
34 virtual QString label() const;
35 virtual QString uuid() const;
36 virtual qulonglong size() const;
37 virtual QString encryptedContainerUdi() const;
38
39private:
40 QString m_fs;
41 QString m_label;
42 QString m_uuid;
43 qulonglong m_size;
44
45 void updateCache();
46};
47
48}
49}
50}
51
52#endif // WINVOLUME_H
This device interface is available on volume devices.
UsageType
This enum type defines the how a volume is used.
The single responsibility of this class is to create arguments valid for logind Inhibit call.
Definition fakebattery.h:16
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:47:59 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.