VirtualBox

Changeset 2961 in vbox


Ignore:
Timestamp:
May 31, 2007 11:46:15 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
21653
Message:

Main: Added the IMachine::logFolder property and corrected changeset:21642.

Location:
trunk/src/VBox/Main
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r2805 r2961  
    65226522
    65236523        Bstr logFolder;
    6524         hrc = console->mControl->GetLogFolder (logFolder.asOutParam());
     6524        hrc = console->mMachine->COMGETTER(LogFolder) (logFolder.asOutParam());
    65256525        CheckComRCBreakRC (hrc);
    65266526
  • trunk/src/VBox/Main/HostDVDDriveImpl.cpp

    r2957 r2961  
    4444 *
    4545 * @param aName         Name of the drive.
     46 * @param aUdi          Universal device identifier (currently may be NULL).
    4647 * @param aDescription  Human-readable drive description (may be NULL).
    4748 *
     
    101102}
    102103
    103 /**
    104  * Returns a human readable description of the host drive
    105  *
    106  * @returns COM status code
    107  * @param driveDescription address of result pointer
    108  */
    109104STDMETHODIMP HostDVDDrive::COMGETTER(Description) (BSTR *aDescription)
    110105{
     
    122117}
    123118
    124 /**
    125  * Returns the universal device identifier of the host drive
    126  *
    127  * @returns COM status code
    128  * @param driveDescription address of result pointer
    129  */
    130119STDMETHODIMP HostDVDDrive::COMGETTER(Udi) (BSTR *aUdi)
    131120{
     
    136125    CheckComRCReturnRC (autoCaller.rc());
    137126
    138     /* mDescription is constant during life time, no need to lock */
     127    /* mUdi is constant during life time, no need to lock */
    139128
    140129    mUdi.cloneTo (aUdi);
  • trunk/src/VBox/Main/HostFloppyDriveImpl.cpp

    r2957 r2961  
    4444 *
    4545 * @param aName         Name of the drive.
     46 * @param aUdi          Universal device identifier (currently may be NULL).
    4647 * @param aDescription  Human-readable drive description (may be NULL).
    4748 *
     
    101102}
    102103
    103 /**
    104  * Returns a human readable description of the host drive
    105  *
    106  * @returns COM status code
    107  * @param driveDescription address of result pointer
    108  */
    109104STDMETHODIMP HostFloppyDrive::COMGETTER(Description) (BSTR *aDescription)
    110105{
     
    122117}
    123118
    124 /**
    125  * Returns the universal device identifier of the host drive
    126  *
    127  * @returns COM status code
    128  * @param driveDescription address of result pointer
    129  */
    130119STDMETHODIMP HostFloppyDrive::COMGETTER(Udi) (BSTR *aUdi)
    131120{
     
    136125    CheckComRCReturnRC (autoCaller.rc());
    137126
    138     /* mDescription is constant during life time, no need to lock */
     127    /* mUdi is constant during life time, no need to lock */
    139128
    140129    mUdi.cloneTo (aUdi);
  • trunk/src/VBox/Main/MachineImpl.cpp

    r2804 r2961  
    13481348
    13491349    mSSData->mStateFilePath.cloneTo (aStateFilePath);
     1350
     1351    return S_OK;
     1352}
     1353
     1354STDMETHODIMP Machine::COMGETTER(LogFolder) (BSTR *aLogFolder)
     1355{
     1356    if (!aLogFolder)
     1357        return E_POINTER;
     1358
     1359    AutoCaller autoCaller (this);
     1360    AssertComRCReturnRC (autoCaller.rc());
     1361
     1362    AutoReaderLock alock (this);
     1363
     1364    Utf8Str logFolder;
     1365    getLogFolder (logFolder);
     1366
     1367    Bstr (logFolder).cloneTo (aLogFolder);
    13501368
    13511369    return S_OK;
     
    24702488{
    24712489    AutoCaller autoCaller (this);
    2472     AssertComRCReturn (autoCaller.rc(), (void) 0);
     2490    AssertComRCReturnVoid (autoCaller.rc());
    24732491
    24742492    AutoReaderLock alock (this);
     
    76657683
    76667684/**
    7667  *  @note Locks this object for reading.
    7668  */
    7669 STDMETHODIMP SessionMachine::GetLogFolder (BSTR *aLogFolder)
    7670 {
    7671     AutoCaller autoCaller (this);
    7672     AssertComRCReturn (autoCaller.rc(), autoCaller.rc());
    7673 
    7674     AutoReaderLock alock (this);
    7675 
    7676     Utf8Str logFolder;
    7677     getLogFolder (logFolder);
    7678 
    7679     Bstr (logFolder).cloneTo (aLogFolder);
    7680 
    7681     return S_OK;
    7682 }
    7683 
    7684 /**
    76857685 *  Goes through the USB filters of the given machine to see if the given
    76867686 *  device matches any filter or not.
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r2957 r2961  
    16001600    <interface
    16011601        name="IInternalMachineControl" extends="$unknown"
    1602         uuid="F466BF2E-BD6B-4af0-9C08-46DD42B28A44"
     1602        uuid="e780b585-585d-47e2-ab53-e94dc552353c"
    16031603        internal="yes"
    16041604        wsmap="suppress"
     
    16181618        <method name="getIPCId">
    16191619            <param name="id" type="wstring" dir="return"/>
    1620         </method>
    1621 
    1622         <method name="getLogFolder">
    1623             <desc>
    1624                 Returns the full name of the directory where to store
    1625                 log files created during this machine's executoin.
    1626             </desc>
    1627             <param name="logFolder" type="wstring" dir="return"/>
    16281620        </method>
    16291621
     
    19021894    <interface
    19031895        name="IMachine" extends="$unknown"
    1904         uuid="063ad473-992d-479f-ba7e-7a9ae294368c"
     1896        uuid="0332de0e-ce75-461f-8c6f-0fa42616404a"
    19051897        wsmap="managed"
    19061898    >
     
    22182210        </attribute>
    22192211
     2212        <attribute name="logFolder" type="wstring" readonly="yes">
     2213            <desc>
     2214                Full path to the folder that stores a set of rotated log files
     2215                recorded during machine execution. The most recent log file is
     2216                named <tt>VBox.log</tt>, the previous log file is
     2217                named <tt>VBox.log.1</tt> and so on (upto <tt>VBox.log.3</tt>
     2218                in the current version).
     2219            </desc>
     2220        </attribute>
     2221
    22202222        <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
    22212223            <desc>
     
    34933495    <interface
    34943496        name="IHostDVDDrive" extends="$unknown"
    3495         uuid="c2308775-85f3-45ab-ade5-97f02d1e61e0"
     3497        uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
    34963498        wsmap="managed"
    34973499    >
    34983500        <attribute name="name" type="wstring" readonly="yes">
    3499             <desc>Returns the platform device identifier.</desc>
     3501            <desc>
     3502                Returns the platform-specific device identifier.
     3503                On DOS-like platforms, it is a drive name (e.g. R:).
     3504                On Unix-like platforms, it is a device name (e.g. /dev/hdc).
     3505            </desc>
    35003506        </attribute>
    35013507        <attribute name="description" type="wstring" readonly="yes">
    3502             <desc>Returns a human readable description for the drive.</desc>
     3508            <desc>
     3509                Returns a human readable description for the drive.  This
     3510                description usually contains the product and vendor name.  A
     3511                @c null string is returned if the description is not available.
     3512            </desc>
    35033513        </attribute>
    35043514        <attribute name="udi" type="wstring" readonly="yes">
    3505             <desc>Returns the unique device identifier for the drive.</desc>
     3515            <desc>
     3516                Returns the unique device identifier for the drive.  This
     3517                attribute is reserved for future use instead of
     3518                <link to="#name"/>. Currently it is not used and may return
     3519                @c null on some platforms.
     3520            </desc>
    35063521        </attribute>
    35073522
     
    35383553    <interface
    35393554        name="IHostFloppyDrive" extends="$unknown"
    3540         uuid="2b2ad1ab-2ea9-4cf8-be3c-2a76677d8725"
     3555        uuid="b6a4d1a9-4221-43c3-bd52-021a5daa9ed2"
    35413556        wsmap="managed"
    35423557    >
    35433558        <attribute name="name" type="wstring" readonly="yes">
    3544             <desc>Returns the platform device identifier.</desc>
     3559            <desc>
     3560                Returns the platform-specific device identifier.
     3561                On DOS-like platforms, it is a drive name (e.g. A:).
     3562                On Unix-like platforms, it is a device name (e.g. /dev/fd0).
     3563            </desc>
    35453564        </attribute>
    35463565        <attribute name="description" type="wstring" readonly="yes">
    3547             <desc>Returns a human readable description for the drive.</desc>
     3566            <desc>
     3567                Returns a human readable description for the drive.  This
     3568                description usually contains the product and vendor name.  A
     3569                @c null string is returned if the description is not available.
     3570            </desc>
    35483571        </attribute>
    35493572        <attribute name="udi" type="wstring" readonly="yes">
    3550             <desc>Returns the unique device identifier for the drive.</desc>
     3573            <desc>
     3574                Returns the unique device identifier for the drive.  This
     3575                attribute is reserved for future use instead of
     3576                <link to="#name"/>. Currently it is not used and may return
     3577                @c null on some platforms.
     3578            </desc>
    35513579        </attribute>
    35523580    </interface>
  • trunk/src/VBox/Main/include/HostDVDDriveImpl.h

    r2957 r2961  
    5353
    5454    // public initializer/uninitializer for internal purposes only
    55     HRESULT init (INPTR BSTR aName, INPTR BSTR aUdi = NULL, INPTR BSTR aDescription = NULL);
     55    HRESULT init (INPTR BSTR aName, INPTR BSTR aUdi = NULL,
     56                  INPTR BSTR aDescription = NULL);
    5657    void uninit();
    5758
     
    6566    /* @note Must be called from under the object read lock. */
    6667    const Bstr &name() const { return mName; }
     68
     69    /* @note Must be called from under the object read lock. */
    6770    const Bstr &udi() const { return mUdi; }
     71
     72    /* @note Must be called from under the object read lock. */
    6873    const Bstr &description() const { return mDescription; }
    6974
  • trunk/src/VBox/Main/include/HostFloppyDriveImpl.h

    r2957 r2961  
    5353
    5454    // public initializer/uninitializer for internal purposes only
    55     HRESULT init (INPTR BSTR aName, INPTR BSTR aUdi = NULL, INPTR BSTR aDescription = NULL);
     55    HRESULT init (INPTR BSTR aName, INPTR BSTR aUdi = NULL,
     56                  INPTR BSTR aDescription = NULL);
    5657    void uninit();
    5758
     
    6566    /* @note Must be called from under the object read lock. */
    6667    const Bstr &name() const { return mName; }
     68
     69    /* @note Must be called from under the object read lock. */
    6770    const Bstr &udi() const { return mUdi; }
     71
     72    /* @note Must be called from under the object read lock. */
    6873    const Bstr &description() const { return mDescription; }
    6974
  • trunk/src/VBox/Main/include/MachineImpl.h

    r2804 r2961  
    436436    STDMETHOD(COMGETTER(LastStateChange))(LONG64 *aLastStateChange);
    437437    STDMETHOD(COMGETTER(StateFilePath)) (BSTR *aStateFilePath);
     438    STDMETHOD(COMGETTER(LogFolder)) (BSTR *aLogFolder);
    438439    STDMETHOD(COMGETTER(CurrentSnapshot)) (ISnapshot **aCurrentSnapshot);
    439440    STDMETHOD(COMGETTER(SnapshotCount)) (ULONG *aSnapshotCount);
     
    725726    STDMETHOD(UpdateState)(MachineState_T machineState);
    726727    STDMETHOD(GetIPCId)(BSTR *id);
    727     STDMETHOD(GetLogFolder) (BSTR *aLogFolder);
    728728    STDMETHOD(RunUSBDeviceFilters) (IUSBDevice *aUSBDevice, BOOL *aMatched);
    729729    STDMETHOD(CaptureUSBDevice) (INPTR GUIDPARAM aId, IUSBDevice **aHostDevice);
Note: See TracChangeset for help on using the changeset viewer.

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