Changeset 21436 in vbox for trunk/src/VBox/Main/include/HostHardwareLinux.h
- Timestamp:
- Jul 9, 2009 12:24:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/HostHardwareLinux.h
r21394 r21436 26 26 27 27 #include <iprt/err.h> 28 #include < string>28 #include <iprt/ministring_cpp.h> 29 29 #include <vector> 30 30 … … 48 48 { 49 49 /** The device node of the drive. */ 50 std::string mDevice;50 iprt::MiniString mDevice; 51 51 /** The hal unique device identifier, if available. */ 52 std::string mUdi;52 iprt::MiniString mUdi; 53 53 /** A textual description of the drive. */ 54 std::string mDescription;54 iprt::MiniString mDescription; 55 55 56 56 /** Constructors */ 57 DriveInfo (std::string aDevice, std::string aUdi, std::string aDescription) 58 : mDevice (aDevice), mUdi (aUdi), mDescription (aDescription) {} 59 DriveInfo (std::string aDevice, std::string aUdi, 60 const char *aDescription = NULL) 61 : mDevice (aDevice), mUdi (aUdi), 62 mDescription (aDescription != NULL ? aDescription : std::string ()) {} 63 DriveInfo (std::string aDevice, const char *aUdi = NULL, 64 const char *aDescription = NULL) 65 : mDevice (aDevice), mUdi (aUdi != NULL ? aUdi : std::string ()), 66 mDescription (aDescription != NULL ? aDescription : std::string ()) {} 57 DriveInfo(const iprt::MiniString &aDevice, 58 const iprt::MiniString &aUdi = "", 59 const iprt::MiniString &aDescription = "") 60 : mDevice(aDevice), 61 mUdi(aUdi), 62 mDescription(aDescription) 63 { } 67 64 }; 68 65 69 66 /** List (resp vector) holding drive information */ 70 typedef std::vector 67 typedef std::vector<DriveInfo> DriveInfoList; 71 68 72 69 /** … … 75 72 * @returns iprt status code 76 73 */ 77 int updateFloppies 74 int updateFloppies(); 78 75 79 76 /** … … 82 79 * @returns iprt status code 83 80 */ 84 int updateDVDs 81 int updateDVDs(); 85 82 86 83 /** Get the first element in the list of floppy drives. */ … … 131 128 { 132 129 /** The device node of the device. */ 133 std::string mDevice;130 iprt::MiniString mDevice; 134 131 /** The sysfs path of the device. */ 135 std::string mSysfsPath;132 iprt::MiniString mSysfsPath; 136 133 /** Type for the list of interfaces. */ 137 typedef std::vector <std::string> InterfaceList;134 typedef std::vector<iprt::MiniString> InterfaceList; 138 135 /** The sysfs paths of the device's interfaces. */ 139 136 InterfaceList mInterfaces; 140 137 141 138 /** Constructors */ 142 USBDeviceInfo (std::string aDevice, std::string aSysfsPath) 143 : mDevice (aDevice), mSysfsPath (aSysfsPath) {} 144 USBDeviceInfo () {} 139 USBDeviceInfo(const iprt::MiniString &aDevice, 140 const iprt::MiniString &aSysfsPath) 141 : mDevice(aDevice), 142 mSysfsPath(aSysfsPath) 143 { } 145 144 }; 146 145 147 146 /** List (resp vector) holding drive information */ 148 typedef std::vector 147 typedef std::vector<USBDeviceInfo> DeviceInfoList; 149 148 150 149 /**
Note:
See TracChangeset
for help on using the changeset viewer.