Changeset 2671 in vbox for trunk/src/VBox/Frontends/VirtualBox/include
- Timestamp:
- May 16, 2007 2:15:41 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 21222
- Location:
- trunk/src/VBox/Frontends/VirtualBox/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/COMDefs.h
r933 r2671 32 32 #include <quuid.h> 33 33 34 #include <iprt/memory> // for auto_copy_ptr 35 34 36 /* 35 37 * common COM / XPCOM includes and defines … … 171 173 QString text() const { return mText; } 172 174 175 const COMErrorInfo *next() const { return mNext.get(); } 176 173 177 QString interfaceName() const { return mInterfaceName; } 174 178 QUuid calleeIID() const { return mCalleeIID; } … … 190 194 QString mComponent; 191 195 QString mText; 196 197 cppx::auto_copy_ptr <COMErrorInfo> mNext; 192 198 193 199 QString mInterfaceName; -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h
r2044 r2671 216 216 const QString &errorMsg); 217 217 218 static QString formatErrorInfo (const COMErrorInfo &info, 219 HRESULT wrapperRC = S_OK); 220 static QString formatErrorInfo (const CVirtualBoxErrorInfo &info) { 221 return formatErrorInfo (COMErrorInfo (info)); 222 } 223 static QString formatErrorInfo (const COMBase &wrapper) { 224 Assert (FAILED (wrapper.lastRC())); 225 return formatErrorInfo (wrapper.errorInfo(), wrapper.lastRC()); 226 } 227 static QString formatErrorInfo (const COMResult &rc) { 228 Assert (FAILED (rc.rc())); 229 return formatErrorInfo (rc.errorInfo(), rc.rc()); 218 static QString formatErrorInfo (const COMErrorInfo &aInfo, 219 HRESULT aWrapperRC = S_OK); 220 221 static QString formatErrorInfo (const CVirtualBoxErrorInfo &aInfo) 222 { 223 return formatErrorInfo (COMErrorInfo (aInfo)); 224 } 225 226 static QString formatErrorInfo (const COMBase &aWrapper) 227 { 228 Assert (FAILED (aWrapper.lastRC())); 229 return formatErrorInfo (aWrapper.errorInfo(), aWrapper.lastRC()); 230 } 231 232 static QString formatErrorInfo (const COMResult &aRC) 233 { 234 Assert (FAILED (aRC.rc())); 235 return formatErrorInfo (aRC.errorInfo(), aRC.rc()); 230 236 } 231 237 … … 239 245 240 246 friend VBoxProblemReporter &vboxProblem(); 247 248 static QString doFormatErrorInfo (const COMErrorInfo &aInfo, 249 HRESULT aWrapperRC = S_OK); 241 250 }; 242 251
Note:
See TracChangeset
for help on using the changeset viewer.