VirtualBox

Changeset 29863 in vbox


Ignore:
Timestamp:
May 28, 2010 1:33:59 PM (14 years ago)
Author:
vboxsync
Message:

Main: missing Progress changes.

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

Legend:

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

    r28800 r29863  
    11491149
    11501150/**
     1151 * Wrapper around Progress:notifyCompleteV.
     1152 */
     1153HRESULT Progress::notifyComplete(HRESULT aResultCode,
     1154                                 const GUID &aIID,
     1155                                 const Bstr &aComponent,
     1156                                 const char *aText,
     1157                                 ...)
     1158{
     1159    va_list va;
     1160    va_start(va, aText);
     1161    HRESULT hrc = notifyCompleteV(aResultCode, aIID, aComponent, aText, va);
     1162    va_end(va);
     1163    return hrc;
     1164}
     1165
     1166/**
    11511167 * Marks the operation as complete and attaches full error info.
    11521168 *
     
    11591175 * @param aText         Error message (must not be null), an RTStrPrintf-like
    11601176 *                      format string in UTF-8 encoding.
    1161  * @param  ...          List of arguments for the format string.
    1162  */
    1163 HRESULT Progress::notifyComplete(HRESULT aResultCode,
    1164                                  const GUID &aIID,
    1165                                  const Bstr &aComponent,
    1166                                  const char *aText,
    1167                                  ...)
    1168 {
    1169     va_list args;
    1170     va_start(args, aText);
    1171     Utf8Str text = Utf8StrFmtVA(aText, args);
    1172     va_end (args);
     1177 * @param va            List of arguments for the format string.
     1178 */
     1179HRESULT Progress::notifyCompleteV(HRESULT aResultCode,
     1180                                  const GUID &aIID,
     1181                                  const Bstr &aComponent,
     1182                                  const char *aText,
     1183                                  va_list va)
     1184{
     1185    Utf8Str text = Utf8StrFmtVA(aText, va);
    11731186
    11741187    AutoCaller autoCaller(this);
  • trunk/src/VBox/Main/include/ProgressImpl.h

    r28800 r29863  
    261261                           const GUID &aIID,
    262262                           const Bstr &aComponent,
    263                            const char *aText, ...);
     263                           const char *aText,
     264                           ...);
     265    HRESULT notifyCompleteV(HRESULT aResultCode,
     266                            const GUID &aIID,
     267                            const Bstr &aComponent,
     268                            const char *aText,
     269                            va_list va);
    264270    bool notifyPointOfNoReturn(void);
    265271
Note: See TracChangeset for help on using the changeset viewer.

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