LeechCraft
0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
Toggle main menu visibility
Loading...
Searching...
No Matches
deviceroles.h
Go to the documentation of this file.
1
/**********************************************************************
2
* LeechCraft - modular cross-platform feature rich internet client.
3
* Copyright (C) 2006-2014 Georg Rudoy
4
*
5
* Distributed under the Boost Software License, Version 1.0.
6
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7
**********************************************************************/
8
9
#pragma once
10
11
#include <Qt>
12
#include "
devicetypes.h
"
13
14
namespace
LC
15
{
23
enum
PartitionType
24
{
27
NonPartition
= -1,
28
31
Empty
= 0x00,
32
35
Win95FAT32
= 0x0b,
36
39
Win95FAT32LBA
= 0x0c
40
};
41
44
enum
CommonDevRole
45
{
52
DevType
= Qt::UserRole + 1,
53
58
DevID
,
59
66
DevParentID
,
67
70
DevPersistentID
,
71
72
CommonDevRoleMax
73
};
74
79
enum
USBDeviceRole
80
{
83
ID
=
CommonDevRole::CommonDevRoleMax
+ 1,
84
87
Busnum
,
88
91
Devnum
,
92
95
VendorID
,
96
99
Vendor
,
100
103
ModelID
,
104
107
Model
,
108
114
SysFile
,
115
116
USBDeviceRoleMax
117
};
118
123
enum
MassStorageRole
124
{
129
DevFile
=
USBDeviceRole::USBDeviceRoleMax
+ 1,
130
138
PartType
,
139
142
IsRemovable
,
143
146
IsPartition
,
147
150
IsMountable
,
151
154
IsMounted
,
155
160
IsMediaAvailable
,
161
164
VisibleName
,
165
172
AvailableSize
,
173
180
TotalSize
,
181
185
MountPoints
,
186
187
MassStorageRoleMax
188
};
189
}
devicetypes.h
LC
Definition
constants.h:15
LC::USBDeviceRole
USBDeviceRole
Roles specific to generic USB devices.
Definition
deviceroles.h:80
LC::ID
@ ID
The general USB ID of the role (QByteArray).
Definition
deviceroles.h:83
LC::SysFile
@ SysFile
The system file representing the device (QString).
Definition
deviceroles.h:114
LC::Vendor
@ Vendor
The human-readable name of the vendor (QString).
Definition
deviceroles.h:99
LC::Devnum
@ Devnum
The device number on the given bus (int).
Definition
deviceroles.h:91
LC::USBDeviceRoleMax
@ USBDeviceRoleMax
Definition
deviceroles.h:116
LC::Model
@ Model
The human-readable name of the device model (QString).
Definition
deviceroles.h:107
LC::ModelID
@ ModelID
The ID of the model (QString).
Definition
deviceroles.h:103
LC::VendorID
@ VendorID
The ID of the vendor (QString).
Definition
deviceroles.h:95
LC::Busnum
@ Busnum
The bus this device is attached to (int).
Definition
deviceroles.h:87
LC::CommonDevRole
CommonDevRole
Roles for both USB Mass Storage and generic USB devices.
Definition
deviceroles.h:45
LC::DevPersistentID
@ DevPersistentID
The persistent unique device ID (QString).
Definition
deviceroles.h:70
LC::DevType
@ DevType
The type of the device.
Definition
deviceroles.h:52
LC::CommonDevRoleMax
@ CommonDevRoleMax
Definition
deviceroles.h:72
LC::DevID
@ DevID
The unique device ID (QString).
Definition
deviceroles.h:58
LC::DevParentID
@ DevParentID
The parent's device ID (QString).
Definition
deviceroles.h:66
LC::PartitionType
PartitionType
Describes the various common partition types.
Definition
deviceroles.h:24
LC::Empty
@ Empty
Empty partition without a type.
Definition
deviceroles.h:31
LC::NonPartition
@ NonPartition
Something other than a partition.
Definition
deviceroles.h:27
LC::Win95FAT32LBA
@ Win95FAT32LBA
FAT32 partition with LBA.
Definition
deviceroles.h:39
LC::Win95FAT32
@ Win95FAT32
FAT32 partition.
Definition
deviceroles.h:35
LC::MassStorageRole
MassStorageRole
Roles specific to mass storage USB devices.
Definition
deviceroles.h:124
LC::IsPartition
@ IsPartition
Whether this item is a partition (bool).
Definition
deviceroles.h:146
LC::VisibleName
@ VisibleName
Human-readable name of the device (QString).
Definition
deviceroles.h:164
LC::MassStorageRoleMax
@ MassStorageRoleMax
Definition
deviceroles.h:187
LC::PartType
@ PartType
The type of the partition.
Definition
deviceroles.h:138
LC::IsMediaAvailable
@ IsMediaAvailable
Whether this item contains media (bool).
Definition
deviceroles.h:160
LC::IsRemovable
@ IsRemovable
Whether this item is removable (bool).
Definition
deviceroles.h:142
LC::IsMounted
@ IsMounted
Whether this item is currently mounted (bool).
Definition
deviceroles.h:154
LC::MountPoints
@ MountPoints
The list of directories this item is mounted to (QStringList).
Definition
deviceroles.h:185
LC::AvailableSize
@ AvailableSize
Available size in bytes (qint64).
Definition
deviceroles.h:172
LC::TotalSize
@ TotalSize
Total size in bytes (qint64).
Definition
deviceroles.h:180
LC::IsMountable
@ IsMountable
Whether this item could be mounted (bool).
Definition
deviceroles.h:150
LC::DevFile
@ DevFile
The device file representing the device (QString).
Definition
deviceroles.h:129
src
interfaces
devices
deviceroles.h
Generated by
1.17.0