VirtualBox

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


Ignore:
Timestamp:
May 31, 2007 10:09:04 AM (18 years ago)
Author:
vboxsync
Message:

Made IHostFloppyDrive use libhal on Linux and added UDI strings to the host floppy and DVD devices

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

Legend:

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

    r2929 r2957  
    5353
    5454    // public initializer/uninitializer for internal purposes only
    55     HRESULT init (INPTR BSTR aName, INPTR BSTR aDescription = NULL);
     55    HRESULT init (INPTR BSTR aName, INPTR BSTR aUdi = NULL, INPTR BSTR aDescription = NULL);
    5656    void uninit();
    5757
    5858    // IHostDVDDrive properties
    5959    STDMETHOD(COMGETTER(Name)) (BSTR *aName);
     60    STDMETHOD(COMGETTER(Udi)) (BSTR *aUdi);
    6061    STDMETHOD(COMGETTER(Description)) (BSTR *aDescription);
    6162
     
    6465    /* @note Must be called from under the object read lock. */
    6566    const Bstr &name() const { return mName; }
     67    const Bstr &udi() const { return mUdi; }
     68    const Bstr &description() const { return mDescription; }
    6669
    6770    // for VirtualBoxSupportErrorInfoImpl
     
    7275    const Bstr mName;
    7376    const Bstr mDescription;
     77    const Bstr mUdi;
    7478};
    7579
  • trunk/src/VBox/Main/include/HostFloppyDriveImpl.h

    r2929 r2957  
    5353
    5454    // public initializer/uninitializer for internal purposes only
    55     HRESULT init (INPTR BSTR aName);
     55    HRESULT init (INPTR BSTR aName, INPTR BSTR aUdi = NULL, INPTR BSTR aDescription = NULL);
    5656    void uninit();
    5757
    58     // IHostDVDDrive properties
     58    // IHostFloppyDrive properties
    5959    STDMETHOD(COMGETTER(Name)) (BSTR *aName);
     60    STDMETHOD(COMGETTER(Description)) (BSTR *aDescription);
     61    STDMETHOD(COMGETTER(Udi)) (BSTR *aUdi);
    6062
    6163    // public methods for internal purposes only
     
    6365    /* @note Must be called from under the object read lock. */
    6466    const Bstr &name() const { return mName; }
     67    const Bstr &udi() const { return mUdi; }
     68    const Bstr &description() const { return mDescription; }
    6569
    6670    // for VirtualBoxSupportErrorInfoImpl
     
    7074
    7175    const Bstr mName;
     76    const Bstr mDescription;
     77    const Bstr mUdi;
    7278};
    7379
  • trunk/src/VBox/Main/include/HostImpl.h

    r2917 r2957  
    3636class SessionMachine;
    3737class HostDVDDrive;
     38class HostFloppyDrive;
    3839class Progress;
    3940
     
    133134# ifdef VBOX_USE_LIBHAL
    134135    bool getDVDInfoFromHal(std::list <ComObjPtr <HostDVDDrive> > &list);
     136    bool getFloppyInfoFromHal(std::list <ComObjPtr <HostFloppyDrive> > &list);
    135137# endif
    136138    void parseMountTable(char *mountTable, std::list <ComObjPtr <HostDVDDrive> > &list);
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