Changeset 85929 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Aug 28, 2020 2:40:55 PM (4 years ago)
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/AutoCaller.h
r82968 r85929 333 333 334 334 /** 335 * Sets the initialization status to Succeeded to indicate limited 336 * (partly successful) initialization but also adds the initialization 337 * error if required for further reporting. The AutoInitSpan destructor 338 * will place the managed VirtualBoxBase object to the Limited state. 339 */ 340 void setLimited(HRESULT rc) 341 { 342 mResult = Limited; 343 mFailedRC = rc; 344 mpFailedEI = new ErrorInfo(); 345 } 346 347 /** 335 348 * Sets the initialization status to Failure to indicates failed 336 349 * initialization. The AutoInitSpan destructor will place the managed -
trunk/src/VBox/Main/include/HostHardwareLinux.h
r82968 r85929 69 69 * @returns iprt status code 70 70 */ 71 int updateFloppies() ;71 int updateFloppies() RT_NOEXCEPT; 72 72 73 73 /** … … 76 76 * @returns iprt status code 77 77 */ 78 int updateDVDs(); 78 int updateDVDs() RT_NOEXCEPT; 79 80 /** 81 * Search for fixed disks (HDDs) and rebuild the list, which remains empty until 82 * the first time this method is called. 83 * @returns iprt status code 84 */ 85 int updateFixedDrives() RT_NOEXCEPT; 79 86 80 87 /** Get the first element in the list of floppy drives. */ … … 101 108 return mDVDList.end(); 102 109 } 110 111 /** Get the first element in the list of fixed drives. */ 112 DriveInfoList::const_iterator FixedDriveBegin() 113 { 114 return mFixedDriveList.begin(); 115 } 116 117 /** Get the last element in the list of fixed drives. */ 118 DriveInfoList::const_iterator FixedDriveEnd() 119 { 120 return mFixedDriveList.end(); 121 } 103 122 private: 104 123 /** The list of currently available floppy drives */ … … 106 125 /** The list of currently available DVD drives */ 107 126 DriveInfoList mDVDList; 127 /** The list of currently available fixed drives */ 128 DriveInfoList mFixedDriveList; 108 129 }; 109 130 -
trunk/src/VBox/Main/include/HostImpl.h
r85683 r85929 29 29 class Progress; 30 30 class PerformanceCollector; 31 class HostDrive; 32 class HostDrivePartition; 31 33 32 34 namespace settings … … 109 111 HRESULT getProcessorCoreCount(ULONG *aProcessorCoreCount); 110 112 HRESULT getProcessorOnlineCoreCount(ULONG *aProcessorOnlineCoreCount); 113 HRESULT getHostDrives(std::vector<ComPtr<IHostDrive> > &aHostDrives); 111 114 HRESULT getMemorySize(ULONG *aMemorySize); 112 115 HRESULT getMemoryAvailable(ULONG *aMemoryAvailable); … … 177 180 bool i_getDVDInfoFromHal(std::list< ComObjPtr<Medium> > &list); 178 181 bool i_getFloppyInfoFromHal(std::list< ComObjPtr<Medium> > &list); 182 HRESULT i_getFixedDrivesFromHal(std::list<std::pair<com::Utf8Str, com::Utf8Str> > &list) RT_NOEXCEPT; 179 183 #endif 180 184 … … 183 187 void i_parseMountTable(char *mountTable, std::list< ComObjPtr<Medium> > &list); 184 188 bool i_validateDevice(const char *deviceNode, bool isCDROM); 189 HRESULT i_getFixedDrivesFromDevTree(std::list<std::pair<com::Utf8Str, com::Utf8Str> > &list) RT_NOEXCEPT; 185 190 #endif 186 191 … … 199 204 #endif /* VBOX_WITH_RESOURCE_USAGE_API */ 200 205 206 HRESULT i_getDrivesPathsList(std::list<std::pair<com::Utf8Str, com::Utf8Str> > &aDriveList) RT_NOEXCEPT; 207 201 208 struct Data; // opaque data structure, defined in HostImpl.cpp 202 209 Data *m;
Note:
See TracChangeset
for help on using the changeset viewer.