Changeset 41184 in vbox for trunk/src/VBox/Main/src-all
- Timestamp:
- May 7, 2012 1:28:04 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 77810
- Location:
- trunk/src/VBox/Main/src-all
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/ProgressImpl.cpp
r40257 r41184 1235 1235 * Marks the operation as complete and attaches full error info. 1236 1236 * 1237 * See com::SupportErrorInfoImpl::setError(HRESULT, const GUID &, const wchar_t1237 * See VirtualBoxBase::setError(HRESULT, const GUID &, const wchar_t 1238 1238 * *, const char *, ...) for more info. 1239 1239 * -
trunk/src/VBox/Main/src-all/VirtualBoxBase.cpp
r41104 r41184 739 739 740 740 /** 741 * Places the managed VirtualBoxBase object to 741 * Places the managed VirtualBoxBase object to Ready/Limited state if the 742 742 * initialization succeeded or partly succeeded, or places it to InitFailed 743 743 * state and calls the object's uninit() method. -
trunk/src/VBox/Main/src-all/VirtualBoxErrorInfoImpl.cpp
r38533 r41184 1 1 /** @file 2 2 * 3 * VirtualBoxErrorInfo COM class eimplementation3 * VirtualBoxErrorInfo COM class implementation 4 4 */ 5 5 6 6 /* 7 * Copyright (C) 2006-201 0Oracle Corporation7 * Copyright (C) 2006-2012 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 66 66 //////////////////////////////////////////////////////////////////////////////// 67 67 68 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(ResultCode) 68 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(ResultCode)(LONG *aResultCode) 69 69 { 70 70 CheckComArgOutPointerValid(aResultCode); … … 74 74 } 75 75 76 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(InterfaceID) 76 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(InterfaceID)(BSTR *aIID) 77 77 { 78 78 CheckComArgOutPointerValid(aIID); … … 82 82 } 83 83 84 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(Component) 84 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(Component)(BSTR *aComponent) 85 85 { 86 86 CheckComArgOutPointerValid(aComponent); … … 90 90 } 91 91 92 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(Text) 92 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(Text)(BSTR *aText) 93 93 { 94 94 CheckComArgOutPointerValid(aText); … … 98 98 } 99 99 100 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(Next) 100 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(Next)(IVirtualBoxErrorInfo **aNext) 101 101 { 102 102 CheckComArgOutPointerValid(aNext); … … 112 112 * object. 113 113 */ 114 HRESULT VirtualBoxErrorInfo::init 114 HRESULT VirtualBoxErrorInfo::init(IErrorInfo *aInfo) 115 115 { 116 116 AssertReturn(aInfo, E_FAIL); … … 124 124 m_resultCode = S_OK; 125 125 rc = aInfo->GetGUID(m_IID.asOutParam()); 126 AssertComRC 126 AssertComRC(rc); 127 127 Bstr bstrComponent; 128 128 rc = aInfo->GetSource(bstrComponent.asOutParam()); 129 AssertComRC 129 AssertComRC(rc); 130 130 m_strComponent = bstrComponent; 131 131 Bstr bstrText; 132 132 rc = aInfo->GetDescription(bstrText.asOutParam()); 133 AssertComRC 133 AssertComRC(rc); 134 134 m_strText = bstrText; 135 135 … … 140 140 //////////////////////////////////////////////////////////////////////////////// 141 141 142 STDMETHODIMP VirtualBoxErrorInfo::GetDescription 143 { 144 return COMGETTER(Text) 145 } 146 147 STDMETHODIMP VirtualBoxErrorInfo::GetGUID 142 STDMETHODIMP VirtualBoxErrorInfo::GetDescription(BSTR *description) 143 { 144 return COMGETTER(Text)(description); 145 } 146 147 STDMETHODIMP VirtualBoxErrorInfo::GetGUID(GUID *guid) 148 148 { 149 149 Bstr iid; 150 HRESULT rc = COMGETTER(InterfaceID) 150 HRESULT rc = COMGETTER(InterfaceID)(iid.asOutParam()); 151 151 if (SUCCEEDED(rc)) 152 152 *guid = Guid(iid).ref(); … … 154 154 } 155 155 156 STDMETHODIMP VirtualBoxErrorInfo::GetHelpContext 156 STDMETHODIMP VirtualBoxErrorInfo::GetHelpContext(DWORD *pdwHelpContext) 157 157 { 158 158 return E_NOTIMPL; 159 159 } 160 160 161 STDMETHODIMP VirtualBoxErrorInfo::GetHelpFile 161 STDMETHODIMP VirtualBoxErrorInfo::GetHelpFile(BSTR *pbstrHelpFile) 162 162 { 163 163 return E_NOTIMPL; 164 164 } 165 165 166 STDMETHODIMP VirtualBoxErrorInfo::GetSource 167 { 168 return COMGETTER(Component) 166 STDMETHODIMP VirtualBoxErrorInfo::GetSource(BSTR *source) 167 { 168 return COMGETTER(Component)(source); 169 169 } 170 170 … … 206 206 207 207 /* readonly attribute string message; */ 208 NS_IMETHODIMP VirtualBoxErrorInfo::GetMessage 208 NS_IMETHODIMP VirtualBoxErrorInfo::GetMessage(char **aMessage) 209 209 { 210 210 CheckComArgOutPointerValid(aMessage); … … 215 215 216 216 /* readonly attribute nsresult result; */ 217 NS_IMETHODIMP VirtualBoxErrorInfo::GetResult 217 NS_IMETHODIMP VirtualBoxErrorInfo::GetResult(nsresult *aResult) 218 218 { 219 219 if (!aResult) … … 221 221 222 222 PRInt32 lrc; 223 nsresult rc = COMGETTER(ResultCode) 223 nsresult rc = COMGETTER(ResultCode)(&lrc); 224 224 if (SUCCEEDED(rc)) 225 225 *aResult = lrc; … … 228 228 229 229 /* readonly attribute string name; */ 230 NS_IMETHODIMP VirtualBoxErrorInfo::GetName 230 NS_IMETHODIMP VirtualBoxErrorInfo::GetName(char ** /* aName */) 231 231 { 232 232 return NS_ERROR_NOT_IMPLEMENTED; … … 234 234 235 235 /* readonly attribute string filename; */ 236 NS_IMETHODIMP VirtualBoxErrorInfo::GetFilename 236 NS_IMETHODIMP VirtualBoxErrorInfo::GetFilename(char ** /* aFilename */) 237 237 { 238 238 return NS_ERROR_NOT_IMPLEMENTED; … … 240 240 241 241 /* readonly attribute PRUint32 lineNumber; */ 242 NS_IMETHODIMP VirtualBoxErrorInfo::GetLineNumber 242 NS_IMETHODIMP VirtualBoxErrorInfo::GetLineNumber(PRUint32 * /* aLineNumber */) 243 243 { 244 244 return NS_ERROR_NOT_IMPLEMENTED; … … 246 246 247 247 /* readonly attribute PRUint32 columnNumber; */ 248 NS_IMETHODIMP VirtualBoxErrorInfo::GetColumnNumber 248 NS_IMETHODIMP VirtualBoxErrorInfo::GetColumnNumber(PRUint32 * /*aColumnNumber */) 249 249 { 250 250 return NS_ERROR_NOT_IMPLEMENTED; … … 252 252 253 253 /* readonly attribute nsIStackFrame location; */ 254 NS_IMETHODIMP VirtualBoxErrorInfo::GetLocation 254 NS_IMETHODIMP VirtualBoxErrorInfo::GetLocation(nsIStackFrame ** /* aLocation */) 255 255 { 256 256 return NS_ERROR_NOT_IMPLEMENTED; … … 258 258 259 259 /* readonly attribute nsIException inner; */ 260 NS_IMETHODIMP VirtualBoxErrorInfo::GetInner 260 NS_IMETHODIMP VirtualBoxErrorInfo::GetInner(nsIException **aInner) 261 261 { 262 262 ComPtr<IVirtualBoxErrorInfo> info; 263 nsresult rv = COMGETTER(Next) 263 nsresult rv = COMGETTER(Next)(info.asOutParam()); 264 264 if (FAILED(rv)) return rv; 265 265 return info.queryInterfaceTo(aInner); … … 267 267 268 268 /* readonly attribute nsISupports data; */ 269 NS_IMETHODIMP VirtualBoxErrorInfo::GetData 270 { 271 return NS_ERROR_NOT_IMPLEMENTED; 272 } 273 274 /* string toString 275 NS_IMETHODIMP VirtualBoxErrorInfo::ToString 276 { 277 return NS_ERROR_NOT_IMPLEMENTED; 278 } 279 280 NS_IMPL_THREADSAFE_ISUPPORTS2 281 269 NS_IMETHODIMP VirtualBoxErrorInfo::GetData(nsISupports ** /* aData */) 270 { 271 return NS_ERROR_NOT_IMPLEMENTED; 272 } 273 274 /* string toString(); */ 275 NS_IMETHODIMP VirtualBoxErrorInfo::ToString(char ** /* retval */) 276 { 277 return NS_ERROR_NOT_IMPLEMENTED; 278 } 279 280 NS_IMPL_THREADSAFE_ISUPPORTS2(VirtualBoxErrorInfo, 281 nsIException, IVirtualBoxErrorInfo) 282 282 283 283 #endif // defined(VBOX_WITH_XPCOM)
Note:
See TracChangeset
for help on using the changeset viewer.