Changeset 2961 in vbox
- Timestamp:
- May 31, 2007 11:46:15 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 21653
- Location:
- trunk/src/VBox/Main
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r2805 r2961 6522 6522 6523 6523 Bstr logFolder; 6524 hrc = console->m Control->GetLogFolder(logFolder.asOutParam());6524 hrc = console->mMachine->COMGETTER(LogFolder) (logFolder.asOutParam()); 6525 6525 CheckComRCBreakRC (hrc); 6526 6526 -
trunk/src/VBox/Main/HostDVDDriveImpl.cpp
r2957 r2961 44 44 * 45 45 * @param aName Name of the drive. 46 * @param aUdi Universal device identifier (currently may be NULL). 46 47 * @param aDescription Human-readable drive description (may be NULL). 47 48 * … … 101 102 } 102 103 103 /**104 * Returns a human readable description of the host drive105 *106 * @returns COM status code107 * @param driveDescription address of result pointer108 */109 104 STDMETHODIMP HostDVDDrive::COMGETTER(Description) (BSTR *aDescription) 110 105 { … … 122 117 } 123 118 124 /**125 * Returns the universal device identifier of the host drive126 *127 * @returns COM status code128 * @param driveDescription address of result pointer129 */130 119 STDMETHODIMP HostDVDDrive::COMGETTER(Udi) (BSTR *aUdi) 131 120 { … … 136 125 CheckComRCReturnRC (autoCaller.rc()); 137 126 138 /* m Descriptionis constant during life time, no need to lock */127 /* mUdi is constant during life time, no need to lock */ 139 128 140 129 mUdi.cloneTo (aUdi); -
trunk/src/VBox/Main/HostFloppyDriveImpl.cpp
r2957 r2961 44 44 * 45 45 * @param aName Name of the drive. 46 * @param aUdi Universal device identifier (currently may be NULL). 46 47 * @param aDescription Human-readable drive description (may be NULL). 47 48 * … … 101 102 } 102 103 103 /**104 * Returns a human readable description of the host drive105 *106 * @returns COM status code107 * @param driveDescription address of result pointer108 */109 104 STDMETHODIMP HostFloppyDrive::COMGETTER(Description) (BSTR *aDescription) 110 105 { … … 122 117 } 123 118 124 /**125 * Returns the universal device identifier of the host drive126 *127 * @returns COM status code128 * @param driveDescription address of result pointer129 */130 119 STDMETHODIMP HostFloppyDrive::COMGETTER(Udi) (BSTR *aUdi) 131 120 { … … 136 125 CheckComRCReturnRC (autoCaller.rc()); 137 126 138 /* m Descriptionis constant during life time, no need to lock */127 /* mUdi is constant during life time, no need to lock */ 139 128 140 129 mUdi.cloneTo (aUdi); -
trunk/src/VBox/Main/MachineImpl.cpp
r2804 r2961 1348 1348 1349 1349 mSSData->mStateFilePath.cloneTo (aStateFilePath); 1350 1351 return S_OK; 1352 } 1353 1354 STDMETHODIMP 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); 1350 1368 1351 1369 return S_OK; … … 2470 2488 { 2471 2489 AutoCaller autoCaller (this); 2472 AssertComRCReturn (autoCaller.rc(), (void) 0);2490 AssertComRCReturnVoid (autoCaller.rc()); 2473 2491 2474 2492 AutoReaderLock alock (this); … … 7665 7683 7666 7684 /** 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 /**7685 7685 * Goes through the USB filters of the given machine to see if the given 7686 7686 * device matches any filter or not. -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r2957 r2961 1600 1600 <interface 1601 1601 name="IInternalMachineControl" extends="$unknown" 1602 uuid=" F466BF2E-BD6B-4af0-9C08-46DD42B28A44"1602 uuid="e780b585-585d-47e2-ab53-e94dc552353c" 1603 1603 internal="yes" 1604 1604 wsmap="suppress" … … 1618 1618 <method name="getIPCId"> 1619 1619 <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 store1625 log files created during this machine's executoin.1626 </desc>1627 <param name="logFolder" type="wstring" dir="return"/>1628 1620 </method> 1629 1621 … … 1902 1894 <interface 1903 1895 name="IMachine" extends="$unknown" 1904 uuid="0 63ad473-992d-479f-ba7e-7a9ae294368c"1896 uuid="0332de0e-ce75-461f-8c6f-0fa42616404a" 1905 1897 wsmap="managed" 1906 1898 > … … 2218 2210 </attribute> 2219 2211 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 2220 2222 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes"> 2221 2223 <desc> … … 3493 3495 <interface 3494 3496 name="IHostDVDDrive" extends="$unknown" 3495 uuid=" c2308775-85f3-45ab-ade5-97f02d1e61e0"3497 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c" 3496 3498 wsmap="managed" 3497 3499 > 3498 3500 <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> 3500 3506 </attribute> 3501 3507 <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> 3503 3513 </attribute> 3504 3514 <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> 3506 3521 </attribute> 3507 3522 … … 3538 3553 <interface 3539 3554 name="IHostFloppyDrive" extends="$unknown" 3540 uuid=" 2b2ad1ab-2ea9-4cf8-be3c-2a76677d8725"3555 uuid="b6a4d1a9-4221-43c3-bd52-021a5daa9ed2" 3541 3556 wsmap="managed" 3542 3557 > 3543 3558 <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> 3545 3564 </attribute> 3546 3565 <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> 3548 3571 </attribute> 3549 3572 <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> 3551 3579 </attribute> 3552 3580 </interface> -
trunk/src/VBox/Main/include/HostDVDDriveImpl.h
r2957 r2961 53 53 54 54 // 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); 56 57 void uninit(); 57 58 … … 65 66 /* @note Must be called from under the object read lock. */ 66 67 const Bstr &name() const { return mName; } 68 69 /* @note Must be called from under the object read lock. */ 67 70 const Bstr &udi() const { return mUdi; } 71 72 /* @note Must be called from under the object read lock. */ 68 73 const Bstr &description() const { return mDescription; } 69 74 -
trunk/src/VBox/Main/include/HostFloppyDriveImpl.h
r2957 r2961 53 53 54 54 // 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); 56 57 void uninit(); 57 58 … … 65 66 /* @note Must be called from under the object read lock. */ 66 67 const Bstr &name() const { return mName; } 68 69 /* @note Must be called from under the object read lock. */ 67 70 const Bstr &udi() const { return mUdi; } 71 72 /* @note Must be called from under the object read lock. */ 68 73 const Bstr &description() const { return mDescription; } 69 74 -
trunk/src/VBox/Main/include/MachineImpl.h
r2804 r2961 436 436 STDMETHOD(COMGETTER(LastStateChange))(LONG64 *aLastStateChange); 437 437 STDMETHOD(COMGETTER(StateFilePath)) (BSTR *aStateFilePath); 438 STDMETHOD(COMGETTER(LogFolder)) (BSTR *aLogFolder); 438 439 STDMETHOD(COMGETTER(CurrentSnapshot)) (ISnapshot **aCurrentSnapshot); 439 440 STDMETHOD(COMGETTER(SnapshotCount)) (ULONG *aSnapshotCount); … … 725 726 STDMETHOD(UpdateState)(MachineState_T machineState); 726 727 STDMETHOD(GetIPCId)(BSTR *id); 727 STDMETHOD(GetLogFolder) (BSTR *aLogFolder);728 728 STDMETHOD(RunUSBDeviceFilters) (IUSBDevice *aUSBDevice, BOOL *aMatched); 729 729 STDMETHOD(CaptureUSBDevice) (INPTR GUIDPARAM aId, IUSBDevice **aHostDevice);
Note:
See TracChangeset
for help on using the changeset viewer.