LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
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 
40  };
41 
44  enum CommonDevRole
45  {
52  DevType = Qt::UserRole + 1,
53 
56  DevID,
57 
61 
63  };
64 
69  enum USBDeviceRole
70  {
74 
77  Busnum,
78 
81  Devnum,
82 
85  VendorID,
86 
89  Vendor,
90 
93  ModelID,
94 
97  Model,
98 
104  SysFile,
105 
107  };
108 
113  enum MassStorageRole
114  {
120 
128  PartType,
129 
132  IsRemovable,
133 
136  IsPartition,
137 
140  IsMountable,
141 
144  IsMounted,
145 
151 
154  VisibleName,
155 
163 
170  TotalSize,
171 
175  MountPoints,
176 
178  };
179 }
LC::PartitionType
PartitionType
Describes the various common partition types.
Definition: deviceroles.h:29
LC::ModelID
@ ModelID
The ID of the model (QString).
Definition: deviceroles.h:99
LC::Busnum
@ Busnum
The bus this device is attached to (int).
Definition: deviceroles.h:83
LC::IsMountable
@ IsMountable
Whether this item could be mounted (bool).
Definition: deviceroles.h:146
LC::USBDeviceRole
USBDeviceRole
Roles specific to generic USB devices.
Definition: deviceroles.h:75
LC::Win95FAT32
@ Win95FAT32
FAT32 partition.
Definition: deviceroles.h:47
LC::DevID
@ DevID
The unique device ID (QString).
Definition: deviceroles.h:62
LC::IsMounted
@ IsMounted
Whether this item is currently mounted (bool).
Definition: deviceroles.h:150
LC::DevPersistentID
@ DevPersistentID
The persistent unique device ID (QString).
Definition: deviceroles.h:66
LC::MassStorageRole
MassStorageRole
Roles specific to mass storage USB devices.
Definition: deviceroles.h:119
LC::MassStorageRoleMax
@ MassStorageRoleMax
Definition: deviceroles.h:183
LC::Vendor
@ Vendor
The human-readable name of the vendor (QString).
Definition: deviceroles.h:95
LC::IsRemovable
@ IsRemovable
Whether this item is removable (bool).
Definition: deviceroles.h:138
LC::VendorID
@ VendorID
The ID of the vendor (QString).
Definition: deviceroles.h:91
LC::IsPartition
@ IsPartition
Whether this item is a partition (bool).
Definition: deviceroles.h:142
LC::IsMediaAvailable
@ IsMediaAvailable
Whether this item contains media (bool).
Definition: deviceroles.h:156
devicetypes.h
LC::CommonDevRole
CommonDevRole
Roles for both USB Mass Storage and generic USB devices.
Definition: deviceroles.h:50
LC::Empty
@ Empty
Empty partition without a type.
Definition: deviceroles.h:43
LC::TotalSize
@ TotalSize
Total size in bytes (qint64).
Definition: deviceroles.h:176
LC::USBDeviceRoleMax
@ USBDeviceRoleMax
Definition: deviceroles.h:112
LC::CommonDevRoleMax
@ CommonDevRoleMax
Definition: deviceroles.h:68
LC::NonPartition
@ NonPartition
Something other than a partition.
Definition: deviceroles.h:39
LC::MountPoints
@ MountPoints
The list of directories this item is mounted to (QStringList).
Definition: deviceroles.h:181
LC
Definition: constants.h:14
LC::Devnum
@ Devnum
The device number on the given bus (int).
Definition: deviceroles.h:87
LC::DevFile
@ DevFile
The device file representing the device (QString).
Definition: deviceroles.h:125
LC::PartType
@ PartType
The type of the partition.
Definition: deviceroles.h:134
LC::SysFile
@ SysFile
The system file representing the device (QString).
Definition: deviceroles.h:110
LC::DevType
@ DevType
The type of the device.
Definition: deviceroles.h:58
LC::VisibleName
@ VisibleName
Human-readable name of the device (QString).
Definition: deviceroles.h:160
LC::AvailableSize
@ AvailableSize
Available size in bytes (qint64).
Definition: deviceroles.h:168
LC::Win95FAT32LBA
@ Win95FAT32LBA
FAT32 partition with LBA.
Definition: deviceroles.h:51
LC::ID
@ ID
The general USB ID of the role (QByteArray).
Definition: deviceroles.h:79
LC::Model
@ Model
The human-readable name of the device model (QString).
Definition: deviceroles.h:103