Changeset 35517 in vbox
- Timestamp:
- Jan 13, 2011 10:47:12 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
include/VBox/com/ErrorInfo.h (modified) (1 diff)
-
src/VBox/Frontends/VBoxHeadless/testcase/tstHeadless.cpp (modified) (1 diff)
-
src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp (modified) (1 diff)
-
src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/ErrorInfo.h
r32718 r35517 123 123 init(pObj, aIID); 124 124 } 125 126 /** Specialization for the IVirtualBoxErrorInfo smart pointer */ 127 ErrorInfo (const ComPtr <IVirtualBoxErrorInfo> &aPtr) 128 : mIsBasicAvailable (false), mIsFullAvailable (false) 129 , mResultCode (S_OK) 130 { init (aPtr); } 131 132 /** 133 * Constructs a new ErrorInfo instance from the IVirtualBoxErrorInfo 134 * interface pointer. If this pointer is not NULL, both #isFullAvailable() 135 * and #isBasicAvailable() will return |true|. 136 * 137 * @param aInfo pointer to the IVirtualBoxErrorInfo interface that 138 * holds error info to be fetched by this instance 139 */ 140 ErrorInfo (IVirtualBoxErrorInfo *aInfo) 141 : mIsBasicAvailable (false), mIsFullAvailable (false) 142 , mResultCode (S_OK) 143 { init (aInfo); } 125 144 126 145 ErrorInfo(const ErrorInfo &x) -
trunk/src/VBox/Frontends/VBoxHeadless/testcase/tstHeadless.cpp
r32718 r35517 137 137 if (FAILED (resultCode)) 138 138 { 139 ComPtr<IVirtualBoxErrorInfo> errorInfo; 140 CHECK_ERROR_BREAK(progress, 141 COMGETTER(ErrorInfo) (errorInfo.asOutParam())); 142 ErrorInfo info(errorInfo, COM_IIDOF(IVirtualBoxErrorInfo)); 139 ProgressErrorInfo info(progress); 143 140 com::GluePrintErrorInfo(info); 144 141 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r35146 r35517 170 170 rc = machine->COMGETTER(AccessError)(accessError.asOutParam()); 171 171 RTPrintf("Access error details:\n"); 172 ErrorInfo ei(accessError , COM_IIDOF(IVirtualBoxErrorInfo));172 ErrorInfo ei(accessError); 173 173 GluePrintErrorInfo(ei); 174 174 RTPrintf("\n"); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r35273 r35517 372 372 if (FAILED(iRc)) 373 373 { 374 ComPtr<IVirtualBoxErrorInfo> errorInfo; 375 CHECK_ERROR_RET(progress, COMGETTER(ErrorInfo)(errorInfo.asOutParam()), 1); 376 ErrorInfo info(errorInfo, COM_IIDOF(IVirtualBoxErrorInfo)); 374 ProgressErrorInfo info(progress); 377 375 com::GluePrintErrorInfo(info); 378 376 }
Note:
See TracChangeset
for help on using the changeset viewer.

