VirtualBox

Changeset 85929 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Aug 28, 2020 2:40:55 PM (4 years ago)
Author:
vboxsync
Message:

Main: bugref:9224: Main+VBoxManageDisk+doc part

Location:
trunk/src/VBox/Main/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/AutoCaller.h

    r82968 r85929  
    333333
    334334    /**
     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    /**
    335348     * Sets the initialization status to Failure to indicates failed
    336349     * initialization. The AutoInitSpan destructor will place the managed
  • trunk/src/VBox/Main/include/HostHardwareLinux.h

    r82968 r85929  
    6969     * @returns iprt status code
    7070     */
    71     int updateFloppies();
     71    int updateFloppies() RT_NOEXCEPT;
    7272
    7373    /**
     
    7676     * @returns iprt status code
    7777     */
    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;
    7986
    8087    /** Get the first element in the list of floppy drives. */
     
    101108        return mDVDList.end();
    102109    }
     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    }
    103122private:
    104123    /** The list of currently available floppy drives */
     
    106125    /** The list of currently available DVD drives */
    107126    DriveInfoList mDVDList;
     127    /** The list of currently available fixed drives */
     128    DriveInfoList mFixedDriveList;
    108129};
    109130
  • trunk/src/VBox/Main/include/HostImpl.h

    r85683 r85929  
    2929class Progress;
    3030class PerformanceCollector;
     31class HostDrive;
     32class HostDrivePartition;
    3133
    3234namespace settings
     
    109111    HRESULT getProcessorCoreCount(ULONG *aProcessorCoreCount);
    110112    HRESULT getProcessorOnlineCoreCount(ULONG *aProcessorOnlineCoreCount);
     113    HRESULT getHostDrives(std::vector<ComPtr<IHostDrive> > &aHostDrives);
    111114    HRESULT getMemorySize(ULONG *aMemorySize);
    112115    HRESULT getMemoryAvailable(ULONG *aMemoryAvailable);
     
    177180    bool i_getDVDInfoFromHal(std::list< ComObjPtr<Medium> > &list);
    178181    bool i_getFloppyInfoFromHal(std::list< ComObjPtr<Medium> > &list);
     182    HRESULT i_getFixedDrivesFromHal(std::list<std::pair<com::Utf8Str, com::Utf8Str> > &list) RT_NOEXCEPT;
    179183#endif
    180184
     
    183187    void i_parseMountTable(char *mountTable, std::list< ComObjPtr<Medium> > &list);
    184188    bool i_validateDevice(const char *deviceNode, bool isCDROM);
     189    HRESULT i_getFixedDrivesFromDevTree(std::list<std::pair<com::Utf8Str, com::Utf8Str> > &list) RT_NOEXCEPT;
    185190#endif
    186191
     
    199204#endif /* VBOX_WITH_RESOURCE_USAGE_API */
    200205
     206    HRESULT i_getDrivesPathsList(std::list<std::pair<com::Utf8Str, com::Utf8Str> > &aDriveList) RT_NOEXCEPT;
     207
    201208    struct Data;        // opaque data structure, defined in HostImpl.cpp
    202209    Data *m;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette