Solid

winstoragedrive.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#ifndef WINSTORAGEDRIVE_H
7#define WINSTORAGEDRIVE_H
8
9#include <solid/devices/ifaces/storagedrive.h>
10
11#include "winblock.h"
12#include "windevice.h"
13
14namespace Solid
15{
16namespace Backends
17{
18namespace Win
19{
20class WinStorageDrive : public WinBlock, public virtual Solid::Ifaces::StorageDrive
21{
24public:
25 WinStorageDrive(WinDevice *device);
26 ~WinStorageDrive();
27
28 virtual Solid::StorageDrive::Bus bus() const;
29
30 virtual Solid::StorageDrive::DriveType driveType() const;
31
32 virtual bool isRemovable() const;
33
34 virtual bool isHotpluggable() const;
35
36 virtual qulonglong size() const;
37
38private:
39 void updateCache();
40
42 qulonglong m_size;
43 bool m_isHotplugges;
44 bool m_isRemovable;
45};
46}
47}
48}
49
50#endif // WINSTORAGEDRIVE_H
This device interface is available on storage devices.
DriveType
This enum type defines the type of drive a storage device can be.
Bus
This enum type defines the type of bus a storage device is attached to.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.