VirtualBox

Changeset 50874 in vbox for trunk/src


Ignore:
Timestamp:
Mar 25, 2014 6:29:02 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92972
Message:

6813 src-all/ProgressImp.cpp + some formatting/line length sorting

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/Makefile.kmk

    r50832 r50874  
    729729 VBoxC_SOURCES += \
    730730        src-client/AudioSnifferInterface.cpp
    731 endif 
     731endif
    732732VBoxC_SOURCES.win = \
    733733        src-client/win/dllmain.cpp \
     
    841841LIBRARIES += VBoxCOM
    842842VBoxCOM_TEMPLATE        = VBoxMainLib
    843 VBoxCOM_INTERMEDIATES   = $(VBOX_MAIN_PREREQS)
     843VBoxCOM_INTERMEDIATES   = $(VBOX_MAIN_PREREQS) \
     844                          $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
    844845VBoxCOM_SOURCES         = \
    845846        glue/com.cpp \
     
    851852        glue/ErrorInfo.cpp \
    852853        glue/errorprint.cpp
    853 VBoxCOM_INCS          += \
     854VBoxCOM_INCS          += $(VBOX_MAIN_APIWRAPPER_INCS) \
    854855        include
    855856ifeq ($(KBUILD_TARGET),win)
  • trunk/src/VBox/Main/include/GuestFileImpl.h

    r50618 r50874  
    6262    int             i_openFile(uint32_t uTimeoutMS, int *pGuestRc);
    6363    int             i_readData(uint32_t uSize, uint32_t uTimeoutMS, void* pvData, uint32_t cbData, uint32_t* pcbRead);
    64     int             i_readDataAt(uint64_t uOffset, uint32_t uSize, uint32_t uTimeoutMS, void* pvData, size_t cbData, size_t* pcbRead);
     64    int             i_readDataAt(uint64_t uOffset, uint32_t uSize, uint32_t uTimeoutMS,
     65                                 void* pvData, size_t cbData, size_t* pcbRead);
    6566    int             i_seekAt(int64_t iOffset, GUEST_FILE_SEEKTYPE eSeekType, uint32_t uTimeoutMS, uint64_t *puOffset);
    6667    static HRESULT  i_setErrorExternal(VirtualBoxBase *pInterface, int guestRc);
  • trunk/src/VBox/Main/include/GuestProcessImpl.h

    r50709 r50874  
    5252    static Utf8Str i_guestErrorToString(int guestRc);
    5353    int i_onRemove(void);
    54     int i_readData(uint32_t uHandle, uint32_t uSize, uint32_t uTimeoutMS, void *pvData, size_t cbData, uint32_t *pcbRead, int *pGuestRc);
     54    int i_readData(uint32_t uHandle, uint32_t uSize, uint32_t uTimeoutMS, void *pvData,
     55                   size_t cbData, uint32_t *pcbRead, int *pGuestRc);
    5556    static HRESULT i_setErrorExternal(VirtualBoxBase *pInterface, int guestRc);
    5657    int i_startProcess(uint32_t uTimeoutMS, int *pGuestRc);
    5758    int i_startProcessAsync(void);
    5859    int i_terminateProcess(uint32_t uTimeoutMS, int *pGuestRc);
    59     static ProcessWaitResult_T i_waitFlagsToResultEx(uint32_t fWaitFlags, ProcessStatus_T oldStatus, ProcessStatus_T newStatus, uint32_t uProcFlags, uint32_t uProtocol);
     60    static ProcessWaitResult_T i_waitFlagsToResultEx(uint32_t fWaitFlags, ProcessStatus_T oldStatus,
     61                                                     ProcessStatus_T newStatus, uint32_t uProcFlags,
     62                                                     uint32_t uProtocol);
    6063    ProcessWaitResult_T i_waitFlagsToResult(uint32_t fWaitFlags);
    6164    int i_waitFor(uint32_t fWaitFlags, ULONG uTimeoutMS, ProcessWaitResult_T &waitResult, int *pGuestRc);
    62     int i_waitForInputNotify(GuestWaitEvent *pEvent, uint32_t uHandle, uint32_t uTimeoutMS, ProcessInputStatus_T *pInputStatus, uint32_t *pcbProcessed);
    63     int i_waitForOutput(GuestWaitEvent *pEvent, uint32_t uHandle, uint32_t uTimeoutMS, void* pvData, size_t cbData, uint32_t *pcbRead);
    64     int i_waitForStatusChange(GuestWaitEvent *pEvent, uint32_t uTimeoutMS, ProcessStatus_T *pProcessStatus, int *pGuestRc);
    65     static bool i_waitResultImpliesEx(ProcessWaitResult_T waitResult, ProcessStatus_T procStatus, uint32_t uProcFlags, uint32_t uProtocol);
    66     int i_writeData(uint32_t uHandle, uint32_t uFlags, void *pvData, size_t cbData, uint32_t uTimeoutMS, uint32_t *puWritten, int *pGuestRc);
     65    int i_waitForInputNotify(GuestWaitEvent *pEvent, uint32_t uHandle, uint32_t uTimeoutMS,
     66                             ProcessInputStatus_T *pInputStatus, uint32_t *pcbProcessed);
     67    int i_waitForOutput(GuestWaitEvent *pEvent, uint32_t uHandle, uint32_t uTimeoutMS,
     68                        void* pvData, size_t cbData, uint32_t *pcbRead);
     69    int i_waitForStatusChange(GuestWaitEvent *pEvent, uint32_t uTimeoutMS,
     70                              ProcessStatus_T *pProcessStatus, int *pGuestRc);
     71    static bool i_waitResultImpliesEx(ProcessWaitResult_T waitResult, ProcessStatus_T procStatus,
     72                                      uint32_t uProcFlags, uint32_t uProtocol);
     73    int i_writeData(uint32_t uHandle, uint32_t uFlags, void *pvData, size_t cbData,
     74                    uint32_t uTimeoutMS, uint32_t *puWritten, int *pGuestRc);
    6775    /** @}  */
    6876
     
    182190    static int i_run(GuestSession *pGuestSession, const GuestProcessStartupInfo &startupInfo, int *pGuestRc);
    183191
    184     static int i_runEx(GuestSession *pGuestSession, const GuestProcessStartupInfo &startupInfo, GuestCtrlStreamObjects *pStrmOutObjects,
    185                        uint32_t cStrmOutObjects, int *pGuestRc);
     192    static int i_runEx(GuestSession *pGuestSession, const GuestProcessStartupInfo &startupInfo,
     193                       GuestCtrlStreamObjects *pStrmOutObjects, uint32_t cStrmOutObjects, int *pGuestRc);
    186194
    187195    int i_terminatedOk(LONG *pExitCode);
  • trunk/src/VBox/Main/include/GuestSessionImpl.h

    r50764 r50874  
    395395    int                     i_directoryRemoveInternal(const Utf8Str &strPath, uint32_t uFlags, int *pGuestRc);
    396396    int                     i_directoryCreateInternal(const Utf8Str &strPath, uint32_t uMode, uint32_t uFlags, int *pGuestRc);
    397     int                     i_objectCreateTempInternal(const Utf8Str &strTemplate, const Utf8Str &strPath, bool fDirectory, Utf8Str &strName, int *pGuestRc);
    398     int                     i_directoryOpenInternal(const GuestDirectoryOpenInfo &openInfo, ComObjPtr<GuestDirectory> &pDirectory, int *pGuestRc);
     397    int                     i_objectCreateTempInternal(const Utf8Str &strTemplate, const Utf8Str &strPath, bool fDirectory,
     398                                                       Utf8Str &strName, int *pGuestRc);
     399    int                     i_directoryOpenInternal(const GuestDirectoryOpenInfo &openInfo,
     400                                                    ComObjPtr<GuestDirectory> &pDirectory, int *pGuestRc);
    399401    int                     i_directoryQueryInfoInternal(const Utf8Str &strPath, GuestFsObjData &objData, int *pGuestRc);
    400402    int                     i_dispatchToDirectory(PVBOXGUESTCTRLHOSTCBCTX pCtxCb, PVBOXGUESTCTRLHOSTCALLBACK pSvcCb);
     
    425427    Guest                  *i_getParent(void) { return mParent; }
    426428    uint32_t                i_getProtocolVersion(void) { return mData.mProtocolVersion; }
    427     int                     i_pathRenameInternal(const Utf8Str &strSource, const Utf8Str &strDest, uint32_t uFlags, int *pGuestRc);
     429    int                     i_pathRenameInternal(const Utf8Str &strSource, const Utf8Str &strDest, uint32_t uFlags,
     430                                                 int *pGuestRc);
    428431    int                     i_processRemoveFromList(GuestProcess *pProcess);
    429432    int                     i_processCreateExInteral(GuestProcessStartupInfo &procInfo, ComObjPtr<GuestProcess> &pProgress);
     
    434437    int                     i_setSessionStatus(GuestSessionStatus_T sessionStatus, int sessionRc);
    435438    int                     i_signalWaiters(GuestSessionWaitResult_T enmWaitResult, int rc /*= VINF_SUCCESS */);
    436     int                     i_startTaskAsync(const Utf8Str &strTaskDesc, GuestSessionTask *pTask, ComObjPtr<Progress> &pProgress);
     439    int                     i_startTaskAsync(const Utf8Str &strTaskDesc, GuestSessionTask *pTask,
     440                                             ComObjPtr<Progress> &pProgress);
    437441    int                     i_queryInfo(void);
    438442    int                     i_waitFor(uint32_t fWaitFlags, ULONG uTimeoutMS, GuestSessionWaitResult_T &waitResult, int *pGuestRc);
    439     int                     i_waitForStatusChange(GuestWaitEvent *pEvent, uint32_t fWaitFlags, uint32_t uTimeoutMS, GuestSessionStatus_T *pSessionStatus, int *pGuestRc);
     443    int                     i_waitForStatusChange(GuestWaitEvent *pEvent, uint32_t fWaitFlags, uint32_t uTimeoutMS,
     444                                                  GuestSessionStatus_T *pSessionStatus, int *pGuestRc);
    440445    /** @}  */
    441446
  • trunk/src/VBox/Main/include/ProgressImpl.h

    r44528 r50874  
    2020#define ____H_PROGRESSIMPL
    2121
     22#include "ProgressWrap.h"
    2223#include "VirtualBoxBase.h"
    2324
     
    3031 */
    3132class ATL_NO_VTABLE Progress :
    32     public VirtualBoxBase,
    33     VBOX_SCRIPTABLE_IMPL(IProgress)
     33    public ProgressWrap
    3434{
    3535protected:
     
    3737    DECLARE_EMPTY_CTOR_DTOR (Progress)
    3838
    39 
    40     void checkForAutomaticTimeout(void);
     39    void i_checkForAutomaticTimeout(void);
    4140
    4241#if !defined (VBOX_COM_INPROC)
     
    4847
    4948    const Guid mId;
    50     const Bstr mDescription;
     49    const com::Utf8Str mDescription;
    5150
    5251    uint64_t m_ullTimestamp;                        // progress object creation timestamp, for ETA computation
     
    6362    ComPtr<IVirtualBoxErrorInfo> mErrorInfo;
    6463
    65     ULONG m_cOperations;                            // number of operations (so that progress dialog can display something like 1/3)
     64    ULONG m_cOperations;                            // number of operations (so that progress dialog can
     65                                                    // display something like 1/3)
    6666    ULONG m_ulTotalOperationsWeight;                // sum of weights of all operations, given to constructor
    6767
    6868    ULONG m_ulOperationsCompletedWeight;            // summed-up weight of operations that have been completed; initially 0
    6969
    70     ULONG m_ulCurrentOperation;                     // operations counter, incremented with each setNextOperation()
    71     Bstr m_bstrOperationDescription;                // name of current operation; initially from constructor, changed with setNextOperation()
     70    ULONG m_ulCurrentOperation;                     // operations counter, incremented with
     71                                                    // each setNextOperation()
     72    com::Utf8Str m_operationDescription;            // name of current operation; initially
     73                                                    // from constructor, changed with setNextOperation()
    7274    ULONG m_ulCurrentOperationWeight;               // weight of current operation, given to setNextOperation()
    7375    ULONG m_ulOperationPercent;                     // percentage of current operation, set with setCurrentOperationProgress()
     
    7577
    7678public:
    77     VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(Progress, IProgress)
    78 
    7979    DECLARE_NOT_AGGREGATABLE (Progress)
    80 
    81     DECLARE_PROTECT_FINAL_CONSTRUCT()
    82 
    83     BEGIN_COM_MAP (Progress)
    84         VBOX_DEFAULT_INTERFACE_ENTRIES (IProgress)
    85     END_COM_MAP()
    8680
    8781    HRESULT FinalConstruct();
     
    10599#endif
    106100                  IUnknown *aInitiator,
    107                   CBSTR aDescription,
     101                  Utf8Str aDescription,
    108102                  BOOL aCancelable,
    109103                  OUT_GUID aId = NULL)
     
    118112            1,      // cOperations
    119113            1,      // ulTotalOperationsWeight
    120             aDescription, // bstrFirstOperationDescription
     114            aDescription, // aFirstOperationDescription
    121115            1,      // ulFirstOperationWeight
    122116            aId);
     
    140134#endif
    141135                  IUnknown *aInitiator,
    142                   CBSTR aDescription, BOOL aCancelable,
     136                  Utf8Str aDescription, BOOL aCancelable,
    143137                  ULONG cOperations,
    144                   CBSTR bstrFirstOperationDescription,
     138                  Utf8Str aFirstOperationDescription,
    145139                  OUT_GUID aId = NULL)
    146140    {
     
    154148            cOperations,      // cOperations
    155149            cOperations,      // ulTotalOperationsWeight = cOperations
    156             bstrFirstOperationDescription, // bstrFirstOperationDescription
     150            aFirstOperationDescription, // aFirstOperationDescription
    157151            1,      // ulFirstOperationWeight: weigh them all the same
    158152            aId);
     
    164158#endif
    165159                  IUnknown *aInitiator,
    166                   CBSTR aDescription,
     160                  Utf8Str aDescription,
    167161                  BOOL aCancelable,
    168162                  ULONG cOperations,
    169163                  ULONG ulTotalOperationsWeight,
    170                   CBSTR bstrFirstOperationDescription,
     164                  Utf8Str aFirstOperationDescription,
    171165                  ULONG ulFirstOperationWeight,
    172166                  OUT_GUID aId = NULL);
     
    174168    HRESULT init(BOOL aCancelable,
    175169                 ULONG aOperationCount,
    176                  CBSTR aOperationDescription);
     170                 Utf8Str aOperationDescription);
    177171
    178172//   initializer/uninitializer for internal purposes only
     
    182176#endif
    183177               IUnknown *aInitiator,
    184                CBSTR aDescription, OUT_GUID aId = NULL);
     178               Utf8Str aDescription, OUT_GUID aId = NULL);
    185179    HRESULT init(AutoInitSpan &aAutoInitSpan);
    186180    void init(AutoUninitSpan &aAutoUninitSpan);
     
    188182    void uninit(AutoUninitSpan &aAutoUninitSpan);
    189183
    190     // IProgress methods
    191     STDMETHOD(WaitForCompletion)(LONG aTimeout);
    192     STDMETHOD(WaitForOperationCompletion)(ULONG aOperation, LONG aTimeout);
    193     STDMETHOD(WaitForAsyncProgressCompletion)(IProgress *pProgressAsync);
    194     STDMETHOD(Cancel)();
    195 
    196     STDMETHOD(SetCurrentOperationProgress)(ULONG aPercent);
    197     STDMETHOD(SetNextOperation)(IN_BSTR bstrNextOperationDescription, ULONG ulNextOperationsWeight);
    198184
    199185    // public methods only for internal purposes
    200 
    201     HRESULT setResultCode(HRESULT aResultCode);
    202 
    203     HRESULT notifyComplete(HRESULT aResultCode);
    204     HRESULT notifyComplete(HRESULT aResultCode,
    205                            const GUID &aIID,
    206                            const char *pcszComponent,
    207                            const char *aText,
    208                            ...);
    209     HRESULT notifyCompleteV(HRESULT aResultCode,
    210                             const GUID &aIID,
    211                             const char *pcszComponent,
    212                             const char *aText,
    213                             va_list va);
    214     bool notifyPointOfNoReturn(void);
    215 
    216     // IProgress properties
    217     STDMETHOD(COMGETTER(Id)) (BSTR *aId);
    218     STDMETHOD(COMGETTER(Description)) (BSTR *aDescription);
    219     STDMETHOD(COMGETTER(Initiator)) (IUnknown **aInitiator);
    220 
    221     // IProgress properties
    222     STDMETHOD(COMGETTER(Cancelable)) (BOOL *aCancelable);
    223     STDMETHOD(COMGETTER(Percent)) (ULONG *aPercent);
    224     STDMETHOD(COMGETTER(TimeRemaining)) (LONG *aTimeRemaining);
    225     STDMETHOD(COMGETTER(Completed)) (BOOL *aCompleted);
    226     STDMETHOD(COMGETTER(Canceled)) (BOOL *aCanceled);
    227     STDMETHOD(COMGETTER(ResultCode)) (LONG *aResultCode);
    228     STDMETHOD(COMGETTER(ErrorInfo)) (IVirtualBoxErrorInfo **aErrorInfo);
    229     STDMETHOD(COMGETTER(OperationCount)) (ULONG *aOperationCount);
    230     STDMETHOD(COMGETTER(Operation)) (ULONG *aOperation);
    231     STDMETHOD(COMGETTER(OperationDescription)) (BSTR *aOperationDescription);
    232     STDMETHOD(COMGETTER(OperationPercent)) (ULONG *aOperationPercent);
    233     STDMETHOD(COMGETTER(OperationWeight)) (ULONG *aOperationWeight);
    234     STDMETHOD(COMSETTER(Timeout)) (ULONG aTimeout);
    235     STDMETHOD(COMGETTER(Timeout)) (ULONG *aTimeout);
     186    HRESULT i_setResultCode(HRESULT aResultCode);
     187
     188    HRESULT i_notifyComplete(HRESULT aResultCode);
     189    HRESULT i_notifyComplete(HRESULT aResultCode,
     190                             const GUID &aIID,
     191                             const char *pcszComponent,
     192                             const char *aText,
     193                             ...);
     194    HRESULT i_notifyCompleteV(HRESULT aResultCode,
     195                              const GUID &aIID,
     196                              const char *pcszComponent,
     197                              const char *aText,
     198                              va_list va);
     199    bool i_notifyPointOfNoReturn(void);
    236200
    237201    // public methods only for internal purposes
    238 
    239     bool setCancelCallback(void (*pfnCallback)(void *), void *pvUser);
    240 
     202    bool i_setCancelCallback(void (*pfnCallback)(void *), void *pvUser);
    241203
    242204    // unsafe inline public methods for internal purposes only (ensure there is
    243205    // a caller and a read lock before calling them!)
    244     BOOL getCompleted() const { return mCompleted; }
    245     HRESULT getResultCode() const { return mResultCode; }
    246     double calcTotalPercent();
     206    BOOL i_getCompleted() const { return mCompleted; }
     207    HRESULT i_getResultCode() const { return mResultCode; }
     208    double i_calcTotalPercent();
    247209
    248210private:
     211
     212    // Wrapped IProgress Data
     213    HRESULT getId(com::Guid &aId);
     214    HRESULT getDescription(com::Utf8Str &aDescription);
     215    HRESULT getInitiator(ComPtr<IUnknown> &aInitiator);
     216    HRESULT getCancelable(BOOL *aCancelable);
     217    HRESULT getPercent(ULONG *aPercent);
     218    HRESULT getTimeRemaining(LONG *aTimeRemaining);
     219    HRESULT getCompleted(BOOL *aCompleted);
     220    HRESULT getCanceled(BOOL *aCanceled);
     221    HRESULT getResultCode(LONG *aResultCode);
     222    HRESULT getErrorInfo(ComPtr<IVirtualBoxErrorInfo> &aErrorInfo);
     223    HRESULT getOperationCount(ULONG *aOperationCount);
     224    HRESULT getOperation(ULONG *aOperation);
     225    HRESULT getOperationDescription(com::Utf8Str &aOperationDescription);
     226    HRESULT getOperationPercent(ULONG *aOperationPercent);
     227    HRESULT getOperationWeight(ULONG *aOperationWeight);
     228    HRESULT getTimeout(ULONG *aTimeout);
     229    HRESULT setTimeout(ULONG aTimeout);
     230    HRESULT setCurrentOperationProgress(ULONG aPercent);
     231    HRESULT setNextOperation(const com::Utf8Str &aNextOperationDescription,
     232                             ULONG aNextOperationsWeight);
     233
     234    // Wrapped Iprogress methods
     235    HRESULT waitForCompletion(LONG aTimeout);
     236    HRESULT waitForOperationCompletion(ULONG aOperation,
     237                                       LONG aTimeout);
     238    HRESULT waitForAsyncProgressCompletion(const ComPtr<IProgress> &aPProgressAsync);
     239    HRESULT cancel();
     240
    249241
    250242    RTSEMEVENTMULTI mCompletedSem;
  • trunk/src/VBox/Main/src-all/ExtPackManagerImpl.cpp

    r49130 r50874  
    234234 * @param   a_pVirtualBox   Pointer to the VirtualBox object.
    235235 */
    236 HRESULT ExtPackFile::initWithFile(const char *a_pszFile, const char *a_pszDigest, ExtPackManager *a_pExtPackMgr, VirtualBox *a_pVirtualBox)
     236HRESULT ExtPackFile::initWithFile(const char *a_pszFile, const char *a_pszDigest, ExtPackManager *a_pExtPackMgr,
     237                                  VirtualBox *a_pVirtualBox)
    237238{
    238239    AutoInitSpan autoInitSpan(this);
     
    313314     *        dropped. */
    314315    if (!strSavedName.equalsIgnoreCase(m->Desc.strName))
    315         return initFailed(tr("Extension pack name mismatch between the downloaded file and the XML inside it (xml='%s' file='%s')"),
    316                           m->Desc.strName.c_str(), strSavedName.c_str());
     316    {
     317        Utf8Str str;
     318        str = "Extension pack name mismatch between the downloaded file";
     319        str += "and the XML inside it (xml='%s' file='%s')";
     320        return initFailed(tr(str.c_str()), m->Desc.strName.c_str(), strSavedName.c_str());
     321    }
    317322
    318323    m->fUsable = true;
     
    530535                    strPreferredLocale.c_str(), strPreferredLanguage.c_str(), strFormat.c_str());
    531536    else if (strPreferredLocale.isNotEmpty())
    532         RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-%s.%s",  strPreferredLocale.c_str(), strFormat.c_str());
     537        RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-%s.%s",
     538                    strPreferredLocale.c_str(), strFormat.c_str());
    533539    else if (strPreferredLanguage.isNotEmpty())
    534         RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-_%s.%s", strPreferredLocale.c_str(), strFormat.c_str());
     540        RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-_%s.%s",
     541                    strPreferredLocale.c_str(), strFormat.c_str());
    535542    else
    536         RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX ".%s",     strFormat.c_str());
    537 
     543        RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX ".%s",
     544                    strFormat.c_str());
    538545    /*
    539546     * Lock the extension pack. We need a write lock here as there must not be
     
    12541261    {
    12551262        if (RTFS_IS_SYMLINK(m->ObjInfoExtPack.Attr.fMode))
    1256             m->strWhyUnusable.printf(tr("'%s' is a symbolic link, this is not allowed"), m->strExtPackPath.c_str(), vrc);
     1263            m->strWhyUnusable.printf(tr("'%s' is a symbolic link, this is not allowed"),
     1264                                     m->strExtPackPath.c_str(), vrc);
    12571265        else if (RTFS_IS_FILE(m->ObjInfoExtPack.Attr.fMode))
    1258             m->strWhyUnusable.printf(tr("'%s' is a symbolic file, not a directory"), m->strExtPackPath.c_str(), vrc);
     1266            m->strWhyUnusable.printf(tr("'%s' is a symbolic file, not a directory"),
     1267                                     m->strExtPackPath.c_str(), vrc);
    12591268        else
    1260             m->strWhyUnusable.printf(tr("'%s' is not a directory (fMode=%#x)"), m->strExtPackPath.c_str(), m->ObjInfoExtPack.Attr.fMode);
     1269            m->strWhyUnusable.printf(tr("'%s' is not a directory (fMode=%#x)"),
     1270                                     m->strExtPackPath.c_str(), m->ObjInfoExtPack.Attr.fMode);
    12611271        return;
    12621272    }
     
    18131823                    strPreferredLocale.c_str(), strPreferredLanguage.c_str(), strFormat.c_str());
    18141824    else if (strPreferredLocale.isNotEmpty())
    1815         RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-%s.%s",  strPreferredLocale.c_str(), strFormat.c_str());
     1825        RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-%s.%s",
     1826                    strPreferredLocale.c_str(), strFormat.c_str());
    18161827    else if (strPreferredLanguage.isNotEmpty())
    1817         RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-_%s.%s", strPreferredLocale.c_str(), strFormat.c_str());
     1828        RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-_%s.%s",
     1829                    strPreferredLocale.c_str(), strFormat.c_str());
    18181830    else
    1819         RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX ".%s",     strFormat.c_str());
     1831        RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX ".%s",
     1832                    strFormat.c_str());
    18201833
    18211834    /*
     
    26622675    PEXTPACKINSTALLJOB pJob = (PEXTPACKINSTALLJOB)pvJob;
    26632676    HRESULT hrc = pJob->ptrExtPackMgr->doInstall(pJob->ptrExtPackFile, pJob->fReplace, &pJob->strDisplayInfo);
    2664     pJob->ptrProgress->notifyComplete(hrc);
     2677    pJob->ptrProgress->i_notifyComplete(hrc);
    26652678    delete pJob;
    26662679
     
    27932806    PEXTPACKUNINSTALLJOB pJob = (PEXTPACKUNINSTALLJOB)pvJob;
    27942807    HRESULT hrc = pJob->ptrExtPackMgr->doUninstall(&pJob->strName, pJob->fForcedRemoval, &pJob->strDisplayInfo);
    2795     pJob->ptrProgress->notifyComplete(hrc);
     2808    pJob->ptrProgress->i_notifyComplete(hrc);
    27962809    delete pJob;
    27972810
     
    30943107            hrc = pExtPack->getVrdpLibraryName(a_pstrVrdeLibrary);
    30953108        else
    3096             hrc = setError(VBOX_E_OBJECT_NOT_FOUND, tr("No extension pack by the name '%s' was found"), a_pstrExtPack->c_str());
     3109            hrc = setError(VBOX_E_OBJECT_NOT_FOUND, tr("No extension pack by the name '%s' was found"),
     3110                           a_pstrExtPack->c_str());
    30973111    }
    30983112
     
    31093123 * @param   a_pstrVrdeLibrary   Where to return the path.
    31103124 */
    3111 HRESULT ExtPackManager::getLibraryPathForExtPack(const char *a_pszModuleName, Utf8Str const *a_pstrExtPack, Utf8Str *a_pstrLibrary)
     3125HRESULT ExtPackManager::getLibraryPathForExtPack(const char *a_pszModuleName, Utf8Str const *a_pstrExtPack,
     3126                                                 Utf8Str *a_pstrLibrary)
    31123127{
    31133128    AutoCaller autoCaller(this);
  • trunk/src/VBox/Main/src-all/ProgressImpl.cpp

    r50355 r50874  
    5858/////////////////////////////////////////////////////////////////////////////
    5959
    60 STDMETHODIMP Progress::COMGETTER(Id)(BSTR *aId)
    61 {
    62     CheckComArgOutPointerValid(aId);
    63 
    64     AutoCaller autoCaller(this);
    65     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    66 
     60HRESULT Progress::getId(com::Guid &aId)
     61{
    6762    /* mId is constant during life time, no need to lock */
    68     mId.toUtf16().cloneTo(aId);
    69 
    70     return S_OK;
    71 }
    72 
    73 STDMETHODIMP Progress::COMGETTER(Description)(BSTR *aDescription)
    74 {
    75     CheckComArgOutPointerValid(aDescription);
    76 
    77     AutoCaller autoCaller(this);
    78     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    79 
     63    aId = mId;
     64
     65    return S_OK;
     66}
     67
     68HRESULT Progress::getDescription(com::Utf8Str &aDescription)
     69{
    8070    /* mDescription is constant during life time, no need to lock */
    81     mDescription.cloneTo(aDescription);
    82 
    83     return S_OK;
    84 }
    85 
    86 STDMETHODIMP Progress::COMGETTER(Initiator)(IUnknown **aInitiator)
    87 {
    88     CheckComArgOutPointerValid(aInitiator);
    89 
    90     AutoCaller autoCaller(this);
    91     if (FAILED(autoCaller.rc())) return autoCaller.rc();
     71    aDescription = mDescription;
     72
     73    return S_OK;
     74}
     75HRESULT Progress::getInitiator(ComPtr<IUnknown> &aInitiator)
     76{
    9277
    9378    /* mInitiator/mParent are constant during life time, no need to lock */
     
    9580#if !defined(VBOX_COM_INPROC)
    9681    if (mInitiator)
    97         mInitiator.queryInterfaceTo(aInitiator);
     82        mInitiator.queryInterfaceTo(aInitiator.asOutParam());
    9883    else
    9984    {
    10085        ComObjPtr<VirtualBox> pVirtualBox(mParent);
    101         pVirtualBox.queryInterfaceTo(aInitiator);
     86        pVirtualBox.queryInterfaceTo(aInitiator.asOutParam());
    10287    }
    10388#else
    104     mInitiator.queryInterfaceTo(aInitiator);
     89    mInitiator.queryInterfaceTo(aInitiator.asOutParam());
    10590#endif
    10691
     
    10893}
    10994
    110 STDMETHODIMP Progress::COMGETTER(Cancelable)(BOOL *aCancelable)
    111 {
    112     CheckComArgOutPointerValid(aCancelable);
    113 
    114     AutoCaller autoCaller(this);
    115     if (FAILED(autoCaller.rc())) return autoCaller.rc();
     95HRESULT Progress::getCancelable(BOOL *aCancelable)
     96{
    11697
    11798    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     
    131112 * @return fractional percentage as a double value.
    132113 */
    133 double Progress::calcTotalPercent()
     114double Progress::i_calcTotalPercent()
    134115{
    135116    // avoid division by zero
     
    137118        return 0;
    138119
    139     double dPercent = (    (double)m_ulOperationsCompletedWeight                                              // weight of operations that have been completed
    140                          + ((double)m_ulOperationPercent * (double)m_ulCurrentOperationWeight / (double)100)  // plus partial weight of the current operation
     120    double dPercent = (    (double)m_ulOperationsCompletedWeight  // weight of operations that have been completed
     121                         + ((double)m_ulOperationPercent *
     122                            (double)m_ulCurrentOperationWeight / (double)100)  // plus partial weight of the current operation
    141123                      ) * (double)100 / (double)m_ulTotalOperationsWeight;
    142124
     
    149131 * The caller should hold the object write lock.
    150132 */
    151 void Progress::checkForAutomaticTimeout(void)
     133void Progress::i_checkForAutomaticTimeout(void)
    152134{
    153135    if (   m_cMsTimeout
     
    159141}
    160142
    161 
    162 STDMETHODIMP Progress::COMGETTER(TimeRemaining)(LONG *aTimeRemaining)
    163 {
    164     CheckComArgOutPointerValid(aTimeRemaining);
    165 
    166     AutoCaller autoCaller(this);
    167     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    168 
     143HRESULT Progress::getTimeRemaining(LONG *aTimeRemaining)
     144{
    169145    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    170146
     
    173149    else
    174150    {
    175         double dPercentDone = calcTotalPercent();
     151        double dPercentDone = i_calcTotalPercent();
    176152        if (dPercentDone < 1)
    177153            *aTimeRemaining = -1;       // unreliable, or avoid division by 0 below
     
    183159            uint64_t ullTimeRemaining = ullTimeTotal - ullTimeElapsed;
    184160
    185 //             Log(("Progress::GetTimeRemaining: dPercentDone %RI32, ullTimeNow = %RI64, ullTimeElapsed = %RI64, ullTimeTotal = %RI64, ullTimeRemaining = %RI64\n",
    186 //                         (uint32_t)dPercentDone, ullTimeNow, ullTimeElapsed, ullTimeTotal, ullTimeRemaining));
     161//          Log(("Progress::GetTimeRemaining: dPercentDone %RI32, ullTimeNow =
     162//          %RI64, ullTimeElapsed = %RI64, ullTimeTotal = %RI64, ullTimeRemaining = %RI64\n",
     163//          (uint32_t)dPercentDone, ullTimeNow, ullTimeElapsed, ullTimeTotal, ullTimeRemaining));
    187164
    188165            *aTimeRemaining = (LONG)(ullTimeRemaining / 1000);
     
    193170}
    194171
    195 STDMETHODIMP Progress::COMGETTER(Percent)(ULONG *aPercent)
    196 {
    197     CheckComArgOutPointerValid(aPercent);
    198 
    199     AutoCaller autoCaller(this);
    200     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    201 
    202     checkForAutomaticTimeout();
     172HRESULT Progress::getPercent(ULONG *aPercent)
     173{
     174    i_checkForAutomaticTimeout();
    203175
    204176    /* checkForAutomaticTimeout requires a write lock. */
     
    209181    else
    210182    {
    211         ULONG ulPercent = (ULONG)calcTotalPercent();
     183        ULONG ulPercent = (ULONG)i_calcTotalPercent();
    212184        // do not report 100% until we're really really done with everything as the Qt GUI dismisses progress dialogs in that case
    213185        if (    ulPercent == 100
     
    221193    }
    222194
    223     checkForAutomaticTimeout();
    224 
    225     return S_OK;
    226 }
    227 
    228 STDMETHODIMP Progress::COMGETTER(Completed)(BOOL *aCompleted)
    229 {
    230     CheckComArgOutPointerValid(aCompleted);
    231 
    232     AutoCaller autoCaller(this);
    233     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    234 
     195    i_checkForAutomaticTimeout();
     196
     197    return S_OK;
     198}
     199
     200HRESULT Progress::getCompleted(BOOL *aCompleted)
     201{
    235202    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    236203
     
    240207}
    241208
    242 STDMETHODIMP Progress::COMGETTER(Canceled)(BOOL *aCanceled)
    243 {
    244     CheckComArgOutPointerValid(aCanceled);
    245 
    246     AutoCaller autoCaller(this);
    247     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    248 
     209HRESULT Progress::getCanceled(BOOL *aCanceled)
     210{
    249211    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    250212
     
    254216}
    255217
    256 STDMETHODIMP Progress::COMGETTER(ResultCode)(LONG *aResultCode)
    257 {
    258     CheckComArgOutPointerValid(aResultCode);
    259 
    260     AutoCaller autoCaller(this);
    261     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    262 
     218HRESULT Progress::getResultCode(LONG *aResultCode)
     219{
    263220    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    264221
     
    272229}
    273230
    274 STDMETHODIMP Progress::COMGETTER(ErrorInfo)(IVirtualBoxErrorInfo **aErrorInfo)
    275 {
    276     CheckComArgOutPointerValid(aErrorInfo);
    277 
    278     AutoCaller autoCaller(this);
    279     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    280 
     231HRESULT Progress::getErrorInfo(ComPtr<IVirtualBoxErrorInfo> &aErrorInfo)
     232{
    281233    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    282234
     
    285237                        tr("Error info is not available, operation is still in progress"));
    286238
    287     mErrorInfo.queryInterfaceTo(aErrorInfo);
    288 
    289     return S_OK;
    290 }
    291 
    292 STDMETHODIMP Progress::COMGETTER(OperationCount)(ULONG *aOperationCount)
    293 {
    294     CheckComArgOutPointerValid(aOperationCount);
    295 
    296     AutoCaller autoCaller(this);
    297     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    298 
     239    mErrorInfo.queryInterfaceTo(aErrorInfo.asOutParam());
     240
     241    return S_OK;
     242}
     243
     244HRESULT Progress::getOperationCount(ULONG *aOperationCount)
     245{
    299246    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    300247
     
    304251}
    305252
    306 STDMETHODIMP Progress::COMGETTER(Operation)(ULONG *aOperation)
    307 {
    308     CheckComArgOutPointerValid(aOperation);
    309 
    310     AutoCaller autoCaller(this);
    311     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    312 
     253HRESULT Progress::getOperation(ULONG *aOperation)
     254{
    313255    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    314256
     
    318260}
    319261
    320 STDMETHODIMP Progress::COMGETTER(OperationDescription)(BSTR *aOperationDescription)
    321 {
    322     CheckComArgOutPointerValid(aOperationDescription);
    323 
    324     AutoCaller autoCaller(this);
    325     if (FAILED(autoCaller.rc())) return autoCaller.rc();
     262HRESULT Progress::getOperationDescription(com::Utf8Str &aOperationDescription)
     263{
    326264
    327265    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    328266
    329     m_bstrOperationDescription.cloneTo(aOperationDescription);
    330 
    331     return S_OK;
    332 }
    333 
    334 STDMETHODIMP Progress::COMGETTER(OperationPercent)(ULONG *aOperationPercent)
    335 {
    336     CheckComArgOutPointerValid(aOperationPercent);
    337 
    338     AutoCaller autoCaller(this);
    339     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    340 
     267    aOperationDescription = m_operationDescription;
     268
     269    return S_OK;
     270}
     271
     272HRESULT Progress::getOperationPercent(ULONG *aOperationPercent)
     273{
    341274    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    342275
     
    349282}
    350283
    351 STDMETHODIMP Progress::COMGETTER(OperationWeight)(ULONG *aOperationWeight)
    352 {
    353     CheckComArgOutPointerValid(aOperationWeight);
    354 
    355     AutoCaller autoCaller(this);
    356     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    357 
     284HRESULT Progress::getOperationWeight(ULONG *aOperationWeight)
     285{
    358286    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    359287
     
    363291}
    364292
    365 STDMETHODIMP Progress::COMSETTER(Timeout)(ULONG aTimeout)
    366 {
    367     AutoCaller autoCaller(this);
    368     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    369 
     293HRESULT Progress::setTimeout(ULONG aTimeout)
     294{
    370295    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    371296
     
    379304}
    380305
    381 STDMETHODIMP Progress::COMGETTER(Timeout)(ULONG *aTimeout)
    382 {
    383     CheckComArgOutPointerValid(aTimeout);
    384 
    385     AutoCaller autoCaller(this);
    386     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    387 
     306HRESULT Progress::getTimeout(ULONG *aTimeout)
     307{
    388308    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    389309
     
    406326 * @param   pvUser          The callback argument.
    407327 */
    408 bool Progress::setCancelCallback(void (*pfnCallback)(void *), void *pvUser)
     328bool Progress::i_setCancelCallback(void (*pfnCallback)(void *), void *pvUser)
    409329{
    410330    AutoCaller autoCaller(this);
     
    413333    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    414334
    415     checkForAutomaticTimeout();
     335    i_checkForAutomaticTimeout();
    416336    if (mCanceled)
    417337        return false;
     
    516436#endif
    517437                       IUnknown *aInitiator,
    518                        CBSTR aDescription,
     438                       Utf8Str aDescription,
    519439                       BOOL aCancelable,
    520440                       ULONG cOperations,
    521441                       ULONG ulTotalOperationsWeight,
    522                        CBSTR bstrFirstOperationDescription,
     442                       Utf8Str aFirstOperationDescription,
    523443                       ULONG ulFirstOperationWeight,
    524444                       OUT_GUID aId /* = NULL */)
    525445{
    526     LogFlowThisFunc(("aDescription=\"%ls\", cOperations=%d, ulTotalOperationsWeight=%d, bstrFirstOperationDescription=\"%ls\", ulFirstOperationWeight=%d\n",
    527                      aDescription,
     446    Utf8Str str = "aDescription=\"%s\", cOperations=%d, ulTotalOperationsWeight=%d, ";
     447    LogFlowThisFunc((str.c_str(),
     448                     aDescription.c_str(),
    528449                     cOperations,
    529450                     ulTotalOperationsWeight,
    530                      bstrFirstOperationDescription,
     451                     aFirstOperationDescription.c_str(),
    531452                     ulFirstOperationWeight));
    532453
    533     AssertReturn(bstrFirstOperationDescription, E_INVALIDARG);
    534454    AssertReturn(ulTotalOperationsWeight >= 1, E_INVALIDARG);
    535455
     
    552472#endif
    553473
    554     AssertReturn(aDescription, E_INVALIDARG);
    555 
    556474#if !defined(VBOX_COM_INPROC)
    557475    /* share parent weakly */
     
    597515    m_ulOperationsCompletedWeight = 0;
    598516    m_ulCurrentOperation = 0;
    599     m_bstrOperationDescription = bstrFirstOperationDescription;
     517    m_operationDescription = aFirstOperationDescription;
    600518    m_ulCurrentOperationWeight = ulFirstOperationWeight;
    601519    m_ulOperationPercent = 0;
     
    630548HRESULT Progress::init(BOOL aCancelable,
    631549                       ULONG aOperationCount,
    632                        CBSTR aOperationDescription)
    633 {
    634     LogFlowThisFunc(("aOperationDescription=\"%ls\"\n", aOperationDescription));
     550                       Utf8Str aOperationDescription)
     551{
     552    LogFlowThisFunc(("aOperationDescription=\"%s\"\n", aOperationDescription.c_str()));
    635553
    636554    /* Enclose the state transition NotReady->InInit->Ready */
     
    652570    m_ulOperationsCompletedWeight = 0;
    653571    m_ulCurrentOperation = 0;
    654     m_bstrOperationDescription = aOperationDescription;
     572    m_operationDescription = aOperationDescription;
    655573    m_ulCurrentOperationWeight = 1;
    656574    m_ulOperationPercent = 0;
     
    686604    if (mWaitersCount > 0)
    687605    {
    688         LogFlow(("WARNING: There are still %d threads waiting for '%ls' completion!\n",
    689                  mWaitersCount, mDescription.raw()));
     606        LogFlow(("WARNING: There are still %d threads waiting for '%s' completion!\n",
     607                 mWaitersCount, mDescription.c_str()));
    690608        RTSemEventMultiSignal(mCompletedSem);
    691609    }
     
    722640 *       calling this method will definitely freeze event processing.
    723641 */
    724 STDMETHODIMP Progress::WaitForCompletion(LONG aTimeout)
     642HRESULT Progress::waitForCompletion(LONG aTimeout)
    725643{
    726644    LogFlowThisFuncEnter();
    727645    LogFlowThisFunc(("aTimeout=%d\n", aTimeout));
    728 
    729     AutoCaller autoCaller(this);
    730     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    731646
    732647    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
     
    781696 *       calling this method will definitely freeze event processing.
    782697 */
    783 STDMETHODIMP Progress::WaitForOperationCompletion(ULONG aOperation, LONG aTimeout)
     698HRESULT Progress::waitForOperationCompletion(ULONG aOperation, LONG aTimeout)
     699
    784700{
    785701    LogFlowThisFuncEnter();
    786702    LogFlowThisFunc(("aOperation=%d, aTimeout=%d\n", aOperation, aTimeout));
    787 
    788     AutoCaller autoCaller(this);
    789     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    790703
    791704    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
     
    839752}
    840753
    841 STDMETHODIMP Progress::WaitForAsyncProgressCompletion(IProgress *pProgressAsync)
     754HRESULT Progress::waitForAsyncProgressCompletion(const ComPtr<IProgress> &aPProgressAsync)
    842755{
    843756    LogFlowThisFuncEnter();
    844 
    845     CheckComArgNotNull(pProgressAsync);
    846 
    847     AutoCaller autoCaller(this);
    848     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    849757
    850758    /* Note: we don't lock here, cause we just using public methods. */
     
    858766    ULONG cOp            = 0;
    859767    /* Is the async process cancelable? */
    860     rc = pProgressAsync->COMGETTER(Cancelable)(&fCancelable);
     768    rc = aPProgressAsync->COMGETTER(Cancelable)(&fCancelable);
    861769    if (FAILED(rc)) return rc;
    862770    /* Loop as long as the sync process isn't completed. */
    863     while (SUCCEEDED(pProgressAsync->COMGETTER(Completed(&fCompleted))))
     771    while (SUCCEEDED(aPProgressAsync->COMGETTER(Completed(&fCompleted))))
    864772    {
    865773        /* We can forward any cancel request to the async process only when
     
    871779            if (fCanceled)
    872780            {
    873                 rc = pProgressAsync->Cancel();
     781                rc = aPProgressAsync->Cancel();
    874782                if (FAILED(rc)) return rc;
    875783            }
     
    888796            for (;;)
    889797            {
    890                 rc = pProgressAsync->COMGETTER(Operation(&curOp));
     798                rc = aPProgressAsync->COMGETTER(Operation(&curOp));
    891799                if (FAILED(rc)) return rc;
    892800                if (cOp != curOp)
     
    894802                    Bstr bstr;
    895803                    ULONG currentWeight;
    896                     rc = pProgressAsync->COMGETTER(OperationDescription(bstr.asOutParam()));
     804                    rc = aPProgressAsync->COMGETTER(OperationDescription(bstr.asOutParam()));
    897805                    if (FAILED(rc)) return rc;
    898                     rc = pProgressAsync->COMGETTER(OperationWeight(&currentWeight));
     806                    rc = aPProgressAsync->COMGETTER(OperationWeight(&currentWeight));
    899807                    if (FAILED(rc)) return rc;
    900808                    rc = SetNextOperation(bstr.raw(), currentWeight);
     
    906814            }
    907815
    908             rc = pProgressAsync->COMGETTER(OperationPercent(&currentPercent));
     816            rc = aPProgressAsync->COMGETTER(OperationPercent(&currentPercent));
    909817            if (FAILED(rc)) return rc;
    910818            if (currentPercent != prevPercent)
     
    919827
    920828        /* Make sure the loop is not too tight */
    921         rc = pProgressAsync->WaitForCompletion(100);
     829        rc = aPProgressAsync->WaitForCompletion(100);
    922830        if (FAILED(rc)) return rc;
    923831    }
     
    928836}
    929837
    930 STDMETHODIMP Progress::Cancel()
    931 {
    932     AutoCaller autoCaller(this);
    933     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    934 
     838HRESULT Progress::cancel()
     839{
    935840    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    936841
     
    959864 *                  (in range [0, 100]).
    960865 */
    961 STDMETHODIMP Progress::SetCurrentOperationProgress(ULONG aPercent)
    962 {
    963     AutoCaller autoCaller(this);
    964     AssertComRCReturnRC(autoCaller.rc());
    965 
     866HRESULT Progress::setCurrentOperationProgress(ULONG aPercent)
     867{
    966868    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    967869
    968870    AssertMsgReturn(aPercent <= 100, ("%u\n", aPercent), E_INVALIDARG);
    969871
    970     checkForAutomaticTimeout();
     872    i_checkForAutomaticTimeout();
    971873    if (mCancelable && mCanceled)
    972874    {
     
    989891 * @note The current operation must not be the last one.
    990892 */
    991 STDMETHODIMP Progress::SetNextOperation(IN_BSTR bstrNextOperationDescription, ULONG ulNextOperationsWeight)
    992 {
    993     AssertReturn(bstrNextOperationDescription, E_INVALIDARG);
    994 
    995     AutoCaller autoCaller(this);
    996     AssertComRCReturnRC(autoCaller.rc());
    997 
     893HRESULT Progress::setNextOperation(const com::Utf8Str &aNextOperationDescription, ULONG aNextOperationsWeight)
     894
     895{
    998896    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    999897
     
    1006904    m_ulOperationsCompletedWeight += m_ulCurrentOperationWeight;
    1007905
    1008     m_bstrOperationDescription = bstrNextOperationDescription;
    1009     m_ulCurrentOperationWeight = ulNextOperationsWeight;
     906    m_operationDescription = aNextOperationDescription;
     907    m_ulCurrentOperationWeight = aNextOperationsWeight;
    1010908    m_ulOperationPercent = 0;
    1011909
    1012     Log(("Progress::setNextOperation(%ls): ulNextOperationsWeight = %d; m_ulCurrentOperation is now %d, m_ulOperationsCompletedWeight is now %d\n",
    1013          m_bstrOperationDescription.raw(), ulNextOperationsWeight, m_ulCurrentOperation, m_ulOperationsCompletedWeight));
     910    Utf8Str str;
     911    str = "Progress::setNextOperation(%s): ulNextOperationsWeight = %d; m_ulCurrentOperation is now %d,";
     912    str += "m_ulOperationsCompletedWeight is now %d\n";
     913    Log((str.c_str(), m_operationDescription.c_str(), aNextOperationsWeight, m_ulCurrentOperation,
     914         m_ulOperationsCompletedWeight));
    1014915
    1015916    /* wake up all waiting threads */
     
    1031932 * @param aResultCode
    1032933 */
    1033 HRESULT Progress::setResultCode(HRESULT aResultCode)
    1034 {
    1035     AutoCaller autoCaller(this);
    1036     AssertComRCReturnRC(autoCaller.rc());
    1037 
     934HRESULT Progress::i_setResultCode(HRESULT aResultCode)
     935{
    1038936    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    1039937
     
    11021000 * @param aResultCode   Operation result code.
    11031001 */
    1104 HRESULT Progress::notifyComplete(HRESULT aResultCode)
     1002HRESULT Progress::i_notifyComplete(HRESULT aResultCode)
    11051003{
    11061004    AutoCaller autoCaller(this);
     
    11161014        aResultCode = E_FAIL;
    11171015
    1118     HRESULT rc = setResultCode(aResultCode);
     1016    HRESULT rc = i_setResultCode(aResultCode);
    11191017
    11201018    mCompleted = TRUE;
     
    11421040 * Wrapper around Progress:notifyCompleteV.
    11431041 */
    1144 HRESULT Progress::notifyComplete(HRESULT aResultCode,
    1145                                  const GUID &aIID,
    1146                                  const char *pcszComponent,
    1147                                  const char *aText,
    1148                                  ...)
     1042HRESULT Progress::i_notifyComplete(HRESULT aResultCode,
     1043                                   const GUID &aIID,
     1044                                   const char *pcszComponent,
     1045                                   const char *aText,
     1046                                   ...)
    11491047{
    11501048    va_list va;
    11511049    va_start(va, aText);
    1152     HRESULT hrc = notifyCompleteV(aResultCode, aIID, pcszComponent, aText, va);
     1050    HRESULT hrc = i_notifyCompleteV(aResultCode, aIID, pcszComponent, aText, va);
    11531051    va_end(va);
    11541052    return hrc;
     
    11681066 * @param va            List of arguments for the format string.
    11691067 */
    1170 HRESULT Progress::notifyCompleteV(HRESULT aResultCode,
    1171                                   const GUID &aIID,
    1172                                   const char *pcszComponent,
    1173                                   const char *aText,
    1174                                   va_list va)
     1068HRESULT Progress::i_notifyCompleteV(HRESULT aResultCode,
     1069                                    const GUID &aIID,
     1070                                    const char *pcszComponent,
     1071                                    const char *aText,
     1072                                    va_list va)
    11751073{
    11761074    Utf8Str text(aText, va);
     
    12271125 *          invalid state
    12281126 */
    1229 bool Progress::notifyPointOfNoReturn(void)
     1127bool Progress::i_notifyPointOfNoReturn(void)
    12301128{
    12311129    AutoCaller autoCaller(this);
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r50737 r50874  
    35343534// private methods
    35353535/////////////////////////////////////////////////////////////////////////////
    3536    
     3536
    35373537/**
    35383538 * Suspend the VM before we do any medium or network attachment change.
     
    69086908        /* The progress object will fetch the current error info */
    69096909        if (!pPowerupProgress.isNull())
    6910             pPowerupProgress->notifyComplete(rc);
     6910            pPowerupProgress->i_notifyComplete(rc);
    69116911
    69126912        /* Save the error info across the IPC below. Can't be done before the
     
    91769176                            rc = pMachine->COMGETTER(FaultTolerancePassword)(bstrPassword.asOutParam());
    91779177                    }
    9178                     if (task->mProgress->setCancelCallback(faultToleranceProgressCancelCallback, pConsole->mpUVM))
     9178                    if (task->mProgress->i_setCancelCallback(faultToleranceProgressCancelCallback, pConsole->mpUVM))
    91799179                    {
    91809180                        if (SUCCEEDED(rc))
     
    91989198                            AssertLogRelRC(vrc);
    91999199                        }
    9200                         task->mProgress->setCancelCallback(NULL, NULL);
     9200                        task->mProgress->i_setCancelCallback(NULL, NULL);
    92019201                    }
    92029202                    else
     
    93169316    {
    93179317        /* Notify the progress object of the success */
    9318         task->mProgress->notifyComplete(S_OK);
     9318        task->mProgress->i_notifyComplete(S_OK);
    93199319    }
    93209320    else
    93219321    {
    93229322        /* The progress object will fetch the current error info */
    9323         task->mProgress->notifyComplete(rc);
     9323        task->mProgress->i_notifyComplete(rc);
    93249324        LogRel(("Power up failed (vrc=%Rrc, rc=%Rhrc (%#08X))\n", vrc, rc, rc));
    93259325    }
     
    95189518                Utf8Str strSavedStateFile(pTask->bstrSavedStateFile);
    95199519
    9520                 pTask->mProgress->setCancelCallback(takesnapshotProgressCancelCallback, ptrVM.rawUVM());
     9520                pTask->mProgress->i_setCancelCallback(takesnapshotProgressCancelCallback, ptrVM.rawUVM());
    95219521
    95229522                alock.release();
     
    95349534                                         strSavedStateFile.c_str(), vrc);
    95359535
    9536                 pTask->mProgress->setCancelCallback(NULL, NULL);
     9536                pTask->mProgress->i_setCancelCallback(NULL, NULL);
    95379537            }
    95389538            else
    95399539                LogRel(("Console: skipped saving state as part of online snapshot\n"));
    95409540
    9541             if (!pTask->mProgress->notifyPointOfNoReturn())
     9541            if (!pTask->mProgress->i_notifyPointOfNoReturn())
    95429542                throw setErrorStatic(E_FAIL, tr("Canceled"));
    95439543            that->mptrCancelableProgress.setNull();
     
    96389638
    96399639    if (FAILED(rc)) /* Must come before calling setMachineState. */
    9640         pTask->mProgress->notifyComplete(rc);
     9640        pTask->mProgress->i_notifyComplete(rc);
    96419641
    96429642    /*
     
    96699669                {
    96709670                    rc = setErrorStatic(VBOX_E_VM_ERROR, tr("Could not resume the machine execution (%Rrc)"), vrc);
    9671                     pTask->mProgress->notifyComplete(rc);
     9671                    pTask->mProgress->i_notifyComplete(rc);
    96729672                    if (that->mMachineState == MachineState_Saving)
    96739673                        that->setMachineStateLocally(MachineState_Paused);
     
    97469746
    97479747    if (SUCCEEDED(rc)) /* The failure cases are handled above. */
    9748         pTask->mProgress->notifyComplete(rc);
     9748        pTask->mProgress->i_notifyComplete(rc);
    97499749
    97509750    delete pTask;
  • trunk/src/VBox/Main/src-client/ConsoleImplTeleporter.cpp

    r47532 r50874  
    712712     * We're at the point of no return.
    713713     */
    714     if (!pState->mptrProgress->notifyPointOfNoReturn())
     714    if (!pState->mptrProgress->i_notifyPointOfNoReturn())
    715715    {
    716716        teleporterSrcSubmitCommand(pState, "cancel", false /*fWaitForAck*/);
     
    784784       complete things here on failure instead of right before cleanup. */
    785785    if (FAILED(hrc))
    786         pState->mptrProgress->notifyComplete(hrc);
     786        pState->mptrProgress->i_notifyComplete(hrc);
    787787
    788788    /* We can no longer be canceled (success), or it doesn't matter any longer (failure). */
    789     pState->mptrProgress->setCancelCallback(NULL, NULL);
     789    pState->mptrProgress->i_setCancelCallback(NULL, NULL);
    790790
    791791    /*
     
    819819        pState->mptrConsole->mVMIsAlreadyPoweringOff = false;
    820820
    821         pState->mptrProgress->notifyComplete(hrc);
     821        pState->mptrProgress->i_notifyComplete(hrc);
    822822    }
    823823    else
     
    991991
    992992    void *pvUser = static_cast<void *>(static_cast<TeleporterState *>(pState));
    993     ptrProgress->setCancelCallback(teleporterProgressCancelCallback, pvUser);
     993    ptrProgress->i_setCancelCallback(teleporterProgressCancelCallback, pvUser);
    994994
    995995    int vrc = RTThreadCreate(NULL, Console::teleporterSrcThreadWrapper, (void *)pState, 0 /*cbStack*/,
     
    10111011    else
    10121012    {
    1013         ptrProgress->setCancelCallback(NULL, NULL);
     1013        ptrProgress->i_setCancelCallback(NULL, NULL);
    10141014        delete pState;
    10151015        hrc = setError(E_FAIL, tr("RTThreadCreate -> %Rrc"), vrc);
     
    11151115
    11161116            void *pvUser = static_cast<void *>(static_cast<TeleporterState *>(&theState));
    1117             if (pProgress->setCancelCallback(teleporterProgressCancelCallback, pvUser))
     1117            if (pProgress->i_setCancelCallback(teleporterProgressCancelCallback, pvUser))
    11181118            {
    11191119                LogRel(("Teleporter: Waiting for incoming VM...\n"));
     
    11221122                {
    11231123                    vrc = RTTcpServerListen(hServer, Console::teleporterTrgServeConnection, &theState);
    1124                     pProgress->setCancelCallback(NULL, NULL);
     1124                    pProgress->i_setCancelCallback(NULL, NULL);
    11251125
    11261126                    if (vrc == VERR_TCP_SERVER_STOP)
     
    14101410             *       make it possible to recover from some VMR3Resume failures.
    14111411             */
    1412             if (   pState->mptrProgress->notifyPointOfNoReturn()
     1412            if (   pState->mptrProgress->i_notifyPointOfNoReturn()
    14131413                && pState->mfLockedMedia)
    14141414            {
  • trunk/src/VBox/Main/src-client/GuestDnDImpl.cpp

    r50734 r50874  
    395395        m_pvData = NULL;
    396396    }
    397     m_cbData = 0;   
     397    m_cbData = 0;
    398398    m_cbDataCurrent = 0;
    399399    m_cbDataTotal = 0;
     
    435435            if (uState == DragAndDropSvc::DND_PROGRESS_ERROR)
    436436            {
    437                 hr = m_progress->notifyComplete(VBOX_E_IPRT_ERROR,
    438                                                 COM_IIDOF(IGuest),
    439                                                 m_parent->getComponentName(),
    440                                                 DnDGuestResponse::errorToString(m_parent, rcOp).c_str());
     437                hr = m_progress->i_notifyComplete(VBOX_E_IPRT_ERROR,
     438                                                  COM_IIDOF(IGuest),
     439                                                  m_parent->getComponentName(),
     440                                                  DnDGuestResponse::errorToString(m_parent, rcOp).c_str());
    441441                reset();
    442442            }
     
    455455                if (   uState      == DragAndDropSvc::DND_PROGRESS_COMPLETE
    456456                    || uPercentage >= 100)
    457                     hr = m_progress->notifyComplete(S_OK);
     457                    hr = m_progress->i_notifyComplete(S_OK);
    458458            }
    459459        }
     
    518518}
    519519
    520 int DnDGuestResponse::writeToFile(const char *pszPath, size_t cbPath, 
     520int DnDGuestResponse::writeToFile(const char *pszPath, size_t cbPath,
    521521                                  void *pvData, size_t cbData, uint32_t fMode)
    522522{
     
    525525     *        keeps those file pointers around, or extend the
    526526     *        actual protocol for explicit open calls.
    527      * 
     527     *
    528528     *        For now we only keep one file open at a time, so if
    529529     *        a client does alternating writes to different files
     
    532532    int rc;
    533533    if (   m_hFile == NIL_RTFILE
    534         || m_strFile != pszPath) 
     534        || m_strFile != pszPath)
    535535    {
    536536        char *pszFile = RTPathJoinA(m_strDropDir.c_str(), pszPath);
     
    540540            /** @todo Respect fMode!  */
    541541            rc = RTFileOpen(&hFile, pszFile,
    542                               RTFILE_O_OPEN_CREATE | RTFILE_O_DENY_WRITE 
     542                              RTFILE_O_OPEN_CREATE | RTFILE_O_DENY_WRITE
    543543                            | RTFILE_O_WRITE | RTFILE_O_APPEND);
    544544            if (RT_SUCCESS(rc))
    545545            {
    546                 LogFlowFunc(("Opening \"%s\" (fMode=0x%x) for writing ...\n", 
     546                LogFlowFunc(("Opening \"%s\" (fMode=0x%x) for writing ...\n",
    547547                             pszFile, fMode));
    548548
     
    955955        *pResultAction = d->toMainAction(pResp->defAction());
    956956
    957         LogFlowFunc(("resFormat=%s, resAction=%RU32\n", 
     957        LogFlowFunc(("resFormat=%s, resAction=%RU32\n",
    958958                     pResp->format().c_str(), pResp->defAction()));
    959959
  • trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp

    r50727 r50874  
    487487        if (RT_UNLIKELY(mData.mPID != uPID))
    488488        {
    489             LogFlowFunc(("Stale guest process (PID=%RU32) sent data to a newly started process (pProcesS=%p, PID=%RU32, status=%RU32)\n",
    490                          uPID, this, mData.mPID, mData.mStatus));
     489            Utf8Str str;
     490            str  = "Stale guest process (PID=%RU32) sent data to newly started";
     491            str += " process (pProcesS=%p, PID=%RU32, status=%RU32)\n";
     492            LogFlowFunc((str.c_str(), uPID, this, mData.mPID, mData.mStatus));
    491493            rc = VERR_NOT_FOUND;
    492494        }
     
    13781380    {
    13791381        waitResult = ProcessWaitResult_Error;
    1380         AssertMsg(RT_FAILURE(mData.mLastError), ("No error rc (%Rrc) set when guest process indicated an error\n", mData.mLastError));
     1382        Utf8Str str;
     1383        str  = "No error rc (%Rrc) set when guest process indicated an error\n";
     1384        AssertMsg(RT_FAILURE(mData.mLastError), (str.c_str(), mData.mLastError));
    13811385        if (pGuestRc)
    13821386            *pGuestRc = mData.mLastError; /* Return last set error. */
     
    16621666                              void *pvData, size_t cbData, uint32_t uTimeoutMS, uint32_t *puWritten, int *pGuestRc)
    16631667{
    1664     LogFlowThisFunc(("uPID=%RU32, uHandle=%RU32, uFlags=%RU32, pvData=%p, cbData=%RU32, uTimeoutMS=%RU32, puWritten=%p, pGuestRc=%p\n",
    1665                      mData.mPID, uHandle, uFlags, pvData, cbData, uTimeoutMS, puWritten, pGuestRc));
     1668    Utf8Str str;
     1669    str = "uPID=%RU32, uHandle=%RU32, uFlags=%RU32, pvData=%p, cbData=%RU32, uTimeoutMS=%RU32, puWritten=%p, pGuestRc=%p\n";
     1670    LogFlowThisFunc((str.c_str(), mData.mPID, uHandle, uFlags, pvData, cbData, uTimeoutMS, puWritten, pGuestRc));
    16661671    /* All is optional. There can be 0 byte writes. */
    16671672
     
    18771882}
    18781883
    1879 HRESULT GuestProcess::waitForArray(const std::vector<ProcessWaitForFlag_T> &aWaitFor, ULONG aTimeoutMS, ProcessWaitResult_T *aReason)
    1880 
     1884HRESULT GuestProcess::waitForArray(const std::vector<ProcessWaitForFlag_T> &aWaitFor,
     1885                                   ULONG aTimeoutMS, ProcessWaitResult_T *aReason)
    18811886{
    18821887#ifndef VBOX_WITH_GUEST_CONTROL
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r50771 r50874  
    21562156    if (   mData.mProtocolVersion < 2
    21572157        && s_gctrlLegacyWarning++ < 3) /** @todo Find a bit nicer text. */
    2158         LogRel((tr("Warning: Guest Additions are older (%ld.%ld) than host capabilities for guest control, please upgrade them. Using protocol version %ld now\n"),
    2159                 uVBoxMajor, uVBoxMinor, mData.mProtocolVersion));
    2160 
     2158    {
     2159        Utf8Str str;
     2160        str = "Warning: Guest Additions are older (%ld.%ld) than host";
     2161        str += " capabilities for guest control, please upgrade them. Using protocol version %ld now\n";
     2162        LogRel((tr(str.c_str()), uVBoxMajor, uVBoxMinor, mData.mProtocolVersion));
     2163    }
    21612164    return VINF_SUCCESS;
    21622165}
     
    24132416}
    24142417
    2415 HRESULT GuestSession::copyFrom(const com::Utf8Str &aSource, const com::Utf8Str &aDest, const std::vector<CopyFileFlag_T> &aFlags, ComPtr<IProgress> &aProgress)
     2418HRESULT GuestSession::copyFrom(const com::Utf8Str &aSource, const com::Utf8Str &aDest,
     2419                               const std::vector<CopyFileFlag_T> &aFlags,
     2420                               ComPtr<IProgress> &aProgress)
    24162421{
    24172422#ifndef VBOX_WITH_GUEST_CONTROL
     
    24422447        SessionTaskCopyFrom *pTask = new SessionTaskCopyFrom(this /* GuestSession */,
    24432448                                                             aSource, aDest, fFlags);
    2444         int rc = i_startTaskAsync(Utf8StrFmt(tr("Copying \"%s\" from guest to \"%s\" on the host"), aSource.c_str(), aDest.c_str()),
    2445                                 pTask, pProgress);
     2449        int rc = i_startTaskAsync(Utf8StrFmt(tr("Copying \"%s\" from guest to \"%s\" on the host"), aSource.c_str(),
     2450                                  aDest.c_str()), pTask, pProgress);
    24462451        if (RT_SUCCESS(rc))
    24472452            /* Return progress to the caller. */
     
    24602465}
    24612466
    2462 HRESULT GuestSession::copyTo(const com::Utf8Str &aSource, const com::Utf8Str &aDest, const std::vector<CopyFileFlag_T> &aFlags, ComPtr<IProgress> &aProgress)
     2467HRESULT GuestSession::copyTo(const com::Utf8Str &aSource, const com::Utf8Str &aDest, const std::vector<CopyFileFlag_T> &aFlags,
     2468                             ComPtr<IProgress> &aProgress)
    24632469{
    24642470#ifndef VBOX_WITH_GUEST_CONTROL
     
    24902496                                                         aSource, aDest, fFlags);
    24912497        AssertPtrReturn(pTask, E_OUTOFMEMORY);
    2492         int rc = i_startTaskAsync(Utf8StrFmt(tr("Copying \"%s\" from host to \"%s\" on the guest"), aSource.c_str(), aDest.c_str()),
    2493                                 pTask, pProgress);
     2498        int rc = i_startTaskAsync(Utf8StrFmt(tr("Copying \"%s\" from host to \"%s\" on the guest"), aSource.c_str(),
     2499                                  aDest.c_str()), pTask, pProgress);
    24942500        if (RT_SUCCESS(rc))
    24952501        {
     
    25632569}
    25642570
    2565 HRESULT GuestSession::directoryCreateTemp(const com::Utf8Str &aTemplateName, ULONG aMode, const com::Utf8Str &aPath, BOOL aSecure, com::Utf8Str &aDirectory)
     2571HRESULT GuestSession::directoryCreateTemp(const com::Utf8Str &aTemplateName, ULONG aMode, const com::Utf8Str &aPath,
     2572                                          BOOL aSecure, com::Utf8Str &aDirectory)
    25662573{
    25672574#ifndef VBOX_WITH_GUEST_CONTROL
     
    26352642}
    26362643
    2637 HRESULT GuestSession::directoryOpen(const com::Utf8Str &aPath, const com::Utf8Str &aFilter, const std::vector<DirectoryOpenFlag_T> &aFlags, ComPtr<IGuestDirectory> &aDirectory)
     2644HRESULT GuestSession::directoryOpen(const com::Utf8Str &aPath, const com::Utf8Str &aFilter,
     2645                                    const std::vector<DirectoryOpenFlag_T> &aFlags, ComPtr<IGuestDirectory> &aDirectory)
    26382646{
    26392647#ifndef VBOX_WITH_GUEST_CONTROL
     
    27932801}
    27942802
    2795 HRESULT GuestSession::directoryRemoveRecursive(const com::Utf8Str &aPath, const std::vector<DirectoryRemoveRecFlag_T> &aFlags, ComPtr<IProgress> &aProgress)
     2803HRESULT GuestSession::directoryRemoveRecursive(const com::Utf8Str &aPath, const std::vector<DirectoryRemoveRecFlag_T> &aFlags,
     2804                                               ComPtr<IProgress> &aProgress)
    27962805{
    27972806#ifndef VBOX_WITH_GUEST_CONTROL
     
    28202829     *       the progress object right now. */
    28212830     /** @todo Implement progress reporting on guest directory deletion! */
    2822     hr = pProgress->notifyComplete(S_OK);
     2831    hr = pProgress->i_notifyComplete(S_OK);
    28232832    if (FAILED(hr))
    28242833        return hr;
     
    29882997}
    29892998
    2990 HRESULT GuestSession::fileCreateTemp(const com::Utf8Str &aTemplateName, ULONG aMode, const com::Utf8Str &aPath, BOOL aSecure, ComPtr<IGuestFile> &aFile)
     2999HRESULT GuestSession::fileCreateTemp(const com::Utf8Str &aTemplateName, ULONG aMode, const com::Utf8Str &aPath, BOOL aSecure,
     3000                                     ComPtr<IGuestFile> &aFile)
    29913001{
    29923002#ifndef VBOX_WITH_GUEST_CONTROL
     
    30733083}
    30743084
    3075 HRESULT GuestSession::fileOpen(const com::Utf8Str &aPath, const com::Utf8Str &aOpenMode, const com::Utf8Str &aDisposition, ULONG aCreationMode, ComPtr<IGuestFile> &aFile)
     3085HRESULT GuestSession::fileOpen(const com::Utf8Str &aPath, const com::Utf8Str &aOpenMode, const com::Utf8Str &aDisposition,
     3086                               ULONG aCreationMode, ComPtr<IGuestFile> &aFile)
    30763087{
    30773088#ifndef VBOX_WITH_GUEST_CONTROL
     
    30873098}
    30883099
    3089 HRESULT GuestSession::fileOpenEx(const com::Utf8Str &aPath, const com::Utf8Str &aOpenMode, const com::Utf8Str &aDisposition, const com::Utf8Str &aSharingMode, ULONG aCreationMode, LONG64 aOffset, ComPtr<IGuestFile> &aFile)
     3100HRESULT GuestSession::fileOpenEx(const com::Utf8Str &aPath, const com::Utf8Str &aOpenMode, const com::Utf8Str &aDisposition,
     3101                                 const com::Utf8Str &aSharingMode, ULONG aCreationMode, LONG64 aOffset,
     3102                                 ComPtr<IGuestFile> &aFile)
    30903103
    30913104{
     
    32403253}
    32413254
    3242 HRESULT GuestSession::fileRename(const com::Utf8Str &aSource, const com::Utf8Str &aDest, const std::vector<PathRenameFlag_T> &aFlags)
     3255HRESULT GuestSession::fileRename(const com::Utf8Str &aSource, const com::Utf8Str &aDest,
     3256                                 const std::vector<PathRenameFlag_T> &aFlags)
    32433257{
    32443258#ifndef VBOX_WITH_GUEST_CONTROL
     
    32983312}
    32993313
    3300 HRESULT GuestSession::processCreate(const com::Utf8Str &aCommand, const std::vector<com::Utf8Str> &aArguments, const std::vector<com::Utf8Str> &aEnvironment, const std::vector<ProcessCreateFlag_T> &aFlags, ULONG aTimeoutMS, ComPtr<IGuestProcess> &aGuestProcess)
     3314HRESULT GuestSession::processCreate(const com::Utf8Str &aCommand, const std::vector<com::Utf8Str> &aArguments,
     3315                                    const std::vector<com::Utf8Str> &aEnvironment,
     3316                                    const std::vector<ProcessCreateFlag_T> &aFlags,
     3317                                    ULONG aTimeoutMS, ComPtr<IGuestProcess> &aGuestProcess)
    33013318{
    33023319#ifndef VBOX_WITH_GUEST_CONTROL
     
    33073324    std::vector<LONG> affinityIgnored;
    33083325
    3309     return processCreateEx(aCommand, aArguments, aEnvironment, aFlags, aTimeoutMS, ProcessPriority_Default, affinityIgnored, aGuestProcess);
    3310 #endif /* VBOX_WITH_GUEST_CONTROL */
    3311 }
    3312 
    3313 HRESULT GuestSession::processCreateEx(const com::Utf8Str &aCommand, const std::vector<com::Utf8Str> &aArguments, const std::vector<com::Utf8Str> &aEnvironment, const std::vector<ProcessCreateFlag_T> &aFlags, ULONG aTimeoutMS, ProcessPriority_T aPriority, const std::vector<LONG> &aAffinity, ComPtr<IGuestProcess> &aGuestProcess)
     3326    return processCreateEx(aCommand, aArguments, aEnvironment, aFlags, aTimeoutMS, ProcessPriority_Default,
     3327                           affinityIgnored, aGuestProcess);
     3328#endif /* VBOX_WITH_GUEST_CONTROL */
     3329}
     3330
     3331HRESULT GuestSession::processCreateEx(const com::Utf8Str &aCommand, const std::vector<com::Utf8Str> &aArguments,
     3332                                      const std::vector<com::Utf8Str> &aEnvironment,
     3333                                      const std::vector<ProcessCreateFlag_T> &aFlags, ULONG aTimeoutMS,
     3334                                      ProcessPriority_T aPriority, const std::vector<LONG> &aAffinity,
     3335                                      ComPtr<IGuestProcess> &aGuestProcess)
    33143336{
    33153337#ifndef VBOX_WITH_GUEST_CONTROL
     
    34503472}
    34513473
    3452 HRESULT GuestSession::symlinkRead(const com::Utf8Str &aSymlink, const std::vector<SymlinkReadFlag_T> &aFlags, com::Utf8Str &aTarget)
     3474HRESULT GuestSession::symlinkRead(const com::Utf8Str &aSymlink, const std::vector<SymlinkReadFlag_T> &aFlags,
     3475                                  com::Utf8Str &aTarget)
    34533476{
    34543477#ifndef VBOX_WITH_GUEST_CONTROL
     
    35273550}
    35283551
    3529 HRESULT GuestSession::waitForArray(const std::vector<GuestSessionWaitForFlag_T> &aWaitFor, ULONG aTimeoutMS, GuestSessionWaitResult_T *aReason)
     3552HRESULT GuestSession::waitForArray(const std::vector<GuestSessionWaitForFlag_T> &aWaitFor, ULONG aTimeoutMS,
     3553                                   GuestSessionWaitResult_T *aReason)
    35303554{
    35313555#ifndef VBOX_WITH_GUEST_CONTROL
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r50727 r50874  
    128128        && !fCompleted)
    129129    {
    130         HRESULT hr = mProgress->notifyComplete(S_OK);
     130        HRESULT hr = mProgress->i_notifyComplete(S_OK);
    131131        if (FAILED(hr))
    132132            return VERR_COM_UNEXPECTED; /** @todo Find a better rc. */
     
    151151        && !fCompleted)
    152152    {
    153         HRESULT hr2 = mProgress->notifyComplete(hr,
    154                                                 COM_IIDOF(IGuestSession),
    155                                                 GuestSession::getStaticComponentName(),
    156                                                 strMsg.c_str());
     153        HRESULT hr2 = mProgress->i_notifyComplete(hr,
     154                                                  COM_IIDOF(IGuestSession),
     155                                                  GuestSession::getStaticComponentName(),
     156                                                  strMsg.c_str());
    157157        if (FAILED(hr2))
    158158            return hr2;
  • trunk/src/VBox/Main/src-client/xpcom/module.cpp

    r50727 r50874  
    7474NS_DECL_CLASSINFO(MachineDebugger)
    7575NS_IMPL_THREADSAFE_ISUPPORTS1_CI(MachineDebugger, IMachineDebugger)
    76 NS_DECL_CLASSINFO(Progress)
    77 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(Progress, IProgress)
    7876NS_DECL_CLASSINFO(RemoteUSBDevice)
    7977NS_IMPL_THREADSAFE_ISUPPORTS2_CI(RemoteUSBDevice, IHostUSBDevice, IUSBDevice)
  • trunk/src/VBox/Main/src-server/ApplianceImpl.cpp

    r50444 r50874  
    140140    { ovf::CIMOSType_CIMOS_FreeBSD_64,                           VBOXOSTYPE_FreeBSD_x64 },
    141141    { ovf::CIMOSType_CIMOS_MACOS,                                VBOXOSTYPE_MacOS },
    142     { ovf::CIMOSType_CIMOS_MACOS,                                VBOXOSTYPE_MacOS_x64 },            // there is no CIM 64-bit type for this
     142    { ovf::CIMOSType_CIMOS_MACOS,                                VBOXOSTYPE_MacOS_x64 }, // there is no CIM 64-bit type for this
    143143    { ovf::CIMOSType_CIMOS_MACOS,                                VBOXOSTYPE_MacOS106 },
    144144    { ovf::CIMOSType_CIMOS_MACOS,                                VBOXOSTYPE_MacOS106_x64 },
     
    189189//     { ovf::CIMOSType_CIMOS_VMwareESXi = 104,                                                 // we can't run ESX in a VM
    190190    { ovf::CIMOSType_CIMOS_Windows7,                             VBOXOSTYPE_Win7 },
    191     { ovf::CIMOSType_CIMOS_Windows7,                             VBOXOSTYPE_Win7_x64 },         // there is no CIM 64-bit type for this
     191    { ovf::CIMOSType_CIMOS_Windows7,                             VBOXOSTYPE_Win7_x64 },         // there is no
     192                                                                                                // CIM 64-bit type for this
    192193    { ovf::CIMOSType_CIMOS_CentOS,                               VBOXOSTYPE_RedHat },
    193194    { ovf::CIMOSType_CIMOS_CentOS_64,                            VBOXOSTYPE_RedHat_x64 },
     
    815816    /** @todo: Maybe too cost-intensive; try to find a lighter way */
    816817    while (    RTPathExists(tmpName)
    817             || mVirtualBox->OpenMedium(Bstr(tmpName).raw(), DeviceType_HardDisk, AccessMode_ReadWrite, FALSE /* fForceNewUuid */,  &harddisk) != VBOX_E_OBJECT_NOT_FOUND
    818           )
     818            || mVirtualBox->OpenMedium(Bstr(tmpName).raw(), DeviceType_HardDisk, AccessMode_ReadWrite,
     819                                       FALSE /* fForceNewUuid */,  &harddisk) != VBOX_E_OBJECT_NOT_FOUND)
    819820    {
    820821        RTStrFree(tmpName);
     
    888889                ++cOperations;          // another one for creating the manifest
    889890
    890                 m->ulWeightForManifestOperation = (ULONG)((double)m->ulTotalDisksMB * .1 / 100);    // use .5% of the progress for the manifest
     891                m->ulWeightForManifestOperation = (ULONG)((double)m->ulTotalDisksMB * .1 / 100);    // use .5% of the
     892                                                                                                    // progress for the manifest
    891893                ulTotalOperationsWeight += m->ulWeightForManifestOperation;
    892894            }
     
    916918            if (m->ulTotalDisksMB)
    917919            {
    918                 m->ulWeightForXmlOperation = (ULONG)((double)m->ulTotalDisksMB * 1  / 100);    // use 1% of the progress for OVF file upload (we didn't know the size at this point)
     920                m->ulWeightForXmlOperation = (ULONG)((double)m->ulTotalDisksMB * 1  / 100);    // use 1% of the progress
     921                                                                                               // for OVF file upload
     922                                                                                               // (we didn't know the
     923                                                                                               // size at this point)
    919924                ulTotalOperationsWeight = m->ulTotalDisksMB + m->ulWeightForXmlOperation;
    920925            }
     
    925930                m->ulWeightForXmlOperation = 1;
    926931            }
    927             ULONG ulOVFCreationWeight = (ULONG)((double)ulTotalOperationsWeight * 50.0 / 100.0); /* Use 50% for the creation of the OVF & the disks */
     932            ULONG ulOVFCreationWeight = (ULONG)((double)ulTotalOperationsWeight * 50.0 / 100.0); /* Use 50% for the
     933                                                                                                    creation of the OVF
     934                                                                                                    & the disks */
    928935            ulTotalOperationsWeight += ulOVFCreationWeight;
    929936            break;
     
    931938    }
    932939
    933     Log(("Setting up progress object: ulTotalMB = %d, cDisks = %d, => cOperations = %d, ulTotalOperationsWeight = %d, m->ulWeightForXmlOperation = %d\n",
    934          m->ulTotalDisksMB, m->cDisks, cOperations, ulTotalOperationsWeight, m->ulWeightForXmlOperation));
     940    Utf8Str str;
     941    str = "Setting up progress object: ulTotalMB = %d, cDisks = %d, => cOperations = %d,";
     942    str +=  "ulTotalOperationsWeight = %d, m->ulWeightForXmlOperation = %d\n";
     943    Log((str.c_str(), m->ulTotalDisksMB, m->cDisks, cOperations, ulTotalOperationsWeight, m->ulWeightForXmlOperation));
    935944
    936945    rc = pProgress->init(mVirtualBox, static_cast<IAppliance*>(this),
     
    11721181
    11731182    if (!task->pProgress.isNull())
    1174         task->pProgress->notifyComplete(taskrc);
     1183        task->pProgress->i_notifyComplete(taskrc);
    11751184
    11761185    LogFlowFuncLeave();
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r50652 r50874  
    56625662
    56635663    HRESULT rc = pTask->pMachine->deleteTaskWorker(*pTask);
    5664     pTask->pProgress->notifyComplete(rc);
     5664    pTask->pProgress->i_notifyComplete(rc);
    56655665
    56665666    delete pTask;
     
    83948394        if (!mData->mSession.mProgress.isNull())
    83958395        {
    8396             mData->mSession.mProgress->notifyComplete(rc);
     8396            mData->mSession.mProgress->i_notifyComplete(rc);
    83978397            mData->mSession.mProgress.setNull();
    83988398        }
     
    1312213122    {
    1312313123        if (aReason == Uninit::Normal)
    13124             mData->mSession.mProgress->notifyComplete(S_OK);
     13124            mData->mSession.mProgress->i_notifyComplete(S_OK);
    1312513125        else
    13126             mData->mSession.mProgress->notifyComplete(E_FAIL,
    13127                                                       COM_IIDOF(ISession),
    13128                                                       getComponentName(),
    13129                                                       tr("The VM session was aborted"));
     13126            mData->mSession.mProgress->i_notifyComplete(E_FAIL,
     13127                                                       COM_IIDOF(ISession),
     13128                                                       getComponentName(),
     13129                                                       tr("The VM session was aborted"));
    1313013130        mData->mSession.mProgress.setNull();
    1313113131    }
     
    1331213312    if (mData->mSession.mProgress)
    1331313313    {
    13314         mData->mSession.mProgress->notifyComplete((HRESULT)iResult);
     13314        mData->mSession.mProgress->i_notifyComplete((HRESULT)iResult);
    1331513315        mData->mSession.mProgress.setNull();
    1331613316    }
     
    1339613396    Assert(mConsoleTaskData.mProgress);
    1339713397    if (SUCCEEDED(iResult))
    13398         mConsoleTaskData.mProgress->notifyComplete(S_OK);
     13398        mConsoleTaskData.mProgress->i_notifyComplete(S_OK);
    1339913399    else
    1340013400    {
    1340113401        Utf8Str strErrMsg(aErrMsg);
    1340213402        if (strErrMsg.length())
    13403             mConsoleTaskData.mProgress->notifyComplete(iResult,
    13404                                                        COM_IIDOF(ISession),
    13405                                                        getComponentName(),
    13406                                                        strErrMsg.c_str());
     13403            mConsoleTaskData.mProgress->i_notifyComplete(iResult,
     13404                                                         COM_IIDOF(ISession),
     13405                                                         getComponentName(),
     13406                                                         strErrMsg.c_str());
    1340713407        else
    13408             mConsoleTaskData.mProgress->notifyComplete(iResult);
     13408            mConsoleTaskData.mProgress->i_notifyComplete(iResult);
    1340913409    }
    1341013410
     
    1360113601            /* finalize the progress, someone might wait if a frontend
    1360213602             * closes the session before powering on the VM. */
    13603             mData->mSession.mProgress->notifyComplete(E_FAIL,
    13604                                                       COM_IIDOF(ISession),
    13605                                                       getComponentName(),
    13606                                                       tr("The VM session was closed before any attempt to power it on"));
     13603            mData->mSession.mProgress->i_notifyComplete(E_FAIL,
     13604                                                        COM_IIDOF(ISession),
     13605                                                        getComponentName(),
     13606                                                        tr("The VM session was closed before any attempt to power it on"));
    1360713607            mData->mSession.mProgress.setNull();
    1360813608        }
     
    1464414644    Assert(mConsoleTaskData.mProgress);
    1464514645    if (SUCCEEDED(aRc))
    14646         mConsoleTaskData.mProgress->notifyComplete(S_OK);
     14646        mConsoleTaskData.mProgress->i_notifyComplete(S_OK);
    1464714647    else
    1464814648    {
    1464914649        if (aErrMsg.length())
    14650             mConsoleTaskData.mProgress->notifyComplete(aRc,
    14651                                                        COM_IIDOF(ISession),
    14652                                                        getComponentName(),
    14653                                                        aErrMsg.c_str());
     14650            mConsoleTaskData.mProgress->i_notifyComplete(aRc,
     14651                                                         COM_IIDOF(ISession),
     14652                                                         getComponentName(),
     14653                                                         aErrMsg.c_str());
    1465414654        else
    14655             mConsoleTaskData.mProgress->notifyComplete(aRc);
     14655            mConsoleTaskData.mProgress->i_notifyComplete(aRc);
    1465614656    }
    1465714657
  • trunk/src/VBox/Main/src-server/MachineImplCloneVM.cpp

    r50355 r50874  
    6262struct MachineCloneVMPrivate
    6363{
    64     MachineCloneVMPrivate(MachineCloneVM *a_q, ComObjPtr<Machine> &a_pSrcMachine, ComObjPtr<Machine> &a_pTrgMachine, CloneMode_T a_mode, const RTCList<CloneOptions_T> &opts)
     64    MachineCloneVMPrivate(MachineCloneVM *a_q, ComObjPtr<Machine> &a_pSrcMachine, ComObjPtr<Machine> &a_pTrgMachine,
     65                          CloneMode_T a_mode, const RTCList<CloneOptions_T> &opts)
    6566      : q_ptr(a_q)
    6667      , p(a_pSrcMachine)
     
    9091        HRESULT rc = pTask->q_ptr->run();
    9192
    92         pTask->pProgress->notifyComplete(rc);
     93        pTask->pProgress->i_notifyComplete(rc);
    9394
    9495        pTask->q_ptr->destroy();
     
    104105    inline HRESULT addSaveState(const ComObjPtr<Machine> &machine, ULONG &uCount, ULONG &uTotalWeight);
    105106    inline HRESULT queryBaseName(const ComPtr<IMedium> &pMedium, Utf8Str &strBaseName) const;
    106     HRESULT queryMediasForMachineState(const RTCList<ComObjPtr<Machine> > &machineList, bool fAttachLinked, ULONG &uCount, ULONG &uTotalWeight);
    107     HRESULT queryMediasForMachineAndChildStates(const RTCList<ComObjPtr<Machine> > &machineList, bool fAttachLinked, ULONG &uCount, ULONG &uTotalWeight);
    108     HRESULT queryMediasForAllStates(const RTCList<ComObjPtr<Machine> > &machineList, bool fAttachLinked, ULONG &uCount, ULONG &uTotalWeight);
     107    HRESULT queryMediasForMachineState(const RTCList<ComObjPtr<Machine> > &machineList,
     108                                       bool fAttachLinked, ULONG &uCount, ULONG &uTotalWeight);
     109    HRESULT queryMediasForMachineAndChildStates(const RTCList<ComObjPtr<Machine> > &machineList,
     110                                                bool fAttachLinked, ULONG &uCount, ULONG &uTotalWeight);
     111    HRESULT queryMediasForAllStates(const RTCList<ComObjPtr<Machine> > &machineList, bool fAttachLinked, ULONG &uCount,
     112                                    ULONG &uTotalWeight);
    109113
    110114    /* MachineCloneVM::run helper: */
     
    115119    void updateSnapshotStorageLists(settings::SnapshotsList &sl, const Bstr &bstrOldId, const Bstr &bstrNewId) const;
    116120    void updateStateFile(settings::SnapshotsList &snl, const Guid &id, const Utf8Str &strFile) const;
    117     HRESULT createDifferencingMedium(const ComObjPtr<Machine> &pMachine, const ComObjPtr<Medium> &pParent, const Utf8Str &strSnapshotFolder, RTCList<ComObjPtr<Medium> > &newMedia, ComObjPtr<Medium> *ppDiff) const;
     121    HRESULT createDifferencingMedium(const ComObjPtr<Machine> &pMachine, const ComObjPtr<Medium> &pParent,
     122                                     const Utf8Str &strSnapshotFolder, RTCList<ComObjPtr<Medium> > &newMedia,
     123                                     ComObjPtr<Medium> *ppDiff) const;
    118124    static int copyStateFileProgress(unsigned uPercentage, void *pvUser);
    119125
     
    134140};
    135141
    136 HRESULT MachineCloneVMPrivate::createMachineList(const ComPtr<ISnapshot> &pSnapshot, RTCList< ComObjPtr<Machine> > &machineList) const
    137 {
     142HRESULT MachineCloneVMPrivate::createMachineList(const ComPtr<ISnapshot> &pSnapshot,
     143                                                 RTCList< ComObjPtr<Machine> > &machineList) const
     144 {
    138145    HRESULT rc = S_OK;
    139146    Bstr name;
     
    158165}
    159166
    160 void MachineCloneVMPrivate::updateProgressStats(MEDIUMTASKCHAIN &mtc, bool fAttachLinked, ULONG &uCount, ULONG &uTotalWeight) const
     167void MachineCloneVMPrivate::updateProgressStats(MEDIUMTASKCHAIN &mtc, bool fAttachLinked,
     168                                                ULONG &uCount, ULONG &uTotalWeight) const
    161169{
    162170    if (fAttachLinked)
     
    205213        int vrc = RTFileQuerySize(sst.strSaveStateFile.c_str(), &cbSize);
    206214        if (RT_FAILURE(vrc))
    207             return p->setError(VBOX_E_IPRT_ERROR, p->tr("Could not query file size of '%s' (%Rrc)"), sst.strSaveStateFile.c_str(), vrc);
     215            return p->setError(VBOX_E_IPRT_ERROR, p->tr("Could not query file size of '%s' (%Rrc)"),
     216                               sst.strSaveStateFile.c_str(), vrc);
    208217        /* same rule as above: count both the data which needs to
    209218         * be read and written */
     
    228237}
    229238
    230 HRESULT MachineCloneVMPrivate::queryMediasForMachineState(const RTCList<ComObjPtr<Machine> > &machineList, bool fAttachLinked, ULONG &uCount, ULONG &uTotalWeight)
     239HRESULT MachineCloneVMPrivate::queryMediasForMachineState(const RTCList<ComObjPtr<Machine> > &machineList,
     240                                                          bool fAttachLinked, ULONG &uCount, ULONG &uTotalWeight)
    231241{
    232242    /* This mode is pretty straightforward. We didn't need to know about any
     
    306316}
    307317
    308 HRESULT MachineCloneVMPrivate::queryMediasForMachineAndChildStates(const RTCList<ComObjPtr<Machine> > &machineList, bool fAttachLinked, ULONG &uCount, ULONG &uTotalWeight)
     318HRESULT MachineCloneVMPrivate::queryMediasForMachineAndChildStates(const RTCList<ComObjPtr<Machine> > &machineList,
     319                                                                   bool fAttachLinked, ULONG &uCount, ULONG &uTotalWeight)
    309320{
    310321    /* This is basically a three step approach. First select all medias
     
    468479}
    469480
    470 HRESULT MachineCloneVMPrivate::queryMediasForAllStates(const RTCList<ComObjPtr<Machine> > &machineList, bool fAttachLinked, ULONG &uCount, ULONG &uTotalWeight)
     481HRESULT MachineCloneVMPrivate::queryMediasForAllStates(const RTCList<ComObjPtr<Machine> > &machineList,
     482                                                       bool fAttachLinked, ULONG &uCount, ULONG &uTotalWeight)
    471483{
    472484    /* In this case we create a exact copy of the original VM. This means just
     
    597609}
    598610
    599 void MachineCloneVMPrivate::updateStorageLists(settings::StorageControllersList &sc, const Bstr &bstrOldId, const Bstr &bstrNewId) const
     611void MachineCloneVMPrivate::updateStorageLists(settings::StorageControllersList &sc,
     612                                               const Bstr &bstrOldId, const Bstr &bstrNewId) const
    600613{
    601614    settings::StorageControllersList::iterator it3;
     
    619632}
    620633
    621 void MachineCloneVMPrivate::updateSnapshotStorageLists(settings::SnapshotsList &sl, const Bstr &bstrOldId, const Bstr &bstrNewId) const
     634void MachineCloneVMPrivate::updateSnapshotStorageLists(settings::SnapshotsList &sl, const Bstr &bstrOldId,
     635                                                       const Bstr &bstrNewId) const
    622636{
    623637    settings::SnapshotsList::iterator it;
     
    644658}
    645659
    646 HRESULT MachineCloneVMPrivate::createDifferencingMedium(const ComObjPtr<Machine> &pMachine, const ComObjPtr<Medium> &pParent, const Utf8Str &strSnapshotFolder, RTCList<ComObjPtr<Medium> > &newMedia, ComObjPtr<Medium> *ppDiff) const
     660HRESULT MachineCloneVMPrivate::createDifferencingMedium(const ComObjPtr<Machine> &pMachine, const ComObjPtr<Medium> &pParent,
     661                                                        const Utf8Str &strSnapshotFolder, RTCList<ComObjPtr<Medium> > &newMedia,
     662                                                        ComObjPtr<Medium> *ppDiff) const
    647663{
    648664    HRESULT rc = S_OK;
     
    716732/////////////////////////////////////////////////////////////////////////////
    717733
    718 MachineCloneVM::MachineCloneVM(ComObjPtr<Machine> pSrcMachine, ComObjPtr<Machine> pTrgMachine, CloneMode_T mode, const RTCList<CloneOptions_T> &opts)
    719     : d_ptr(new MachineCloneVMPrivate(this, pSrcMachine, pTrgMachine, mode, opts))
     734MachineCloneVM::MachineCloneVM(ComObjPtr<Machine> pSrcMachine, ComObjPtr<Machine> pTrgMachine, CloneMode_T mode,
     735                               const RTCList<CloneOptions_T> &opts) :
     736                               d_ptr(new MachineCloneVMPrivate(this, pSrcMachine, pTrgMachine, mode, opts))
    720737{
    721738}
     
    881898        switch (d->mode)
    882899        {
    883             case CloneMode_MachineState:          d->queryMediasForMachineState(machineList, fAttachLinked, uCount, uTotalWeight); break;
    884             case CloneMode_MachineAndChildStates: d->queryMediasForMachineAndChildStates(machineList, fAttachLinked, uCount, uTotalWeight); break;
    885             case CloneMode_AllStates:             d->queryMediasForAllStates(machineList, fAttachLinked, uCount, uTotalWeight); break;
     900            case CloneMode_MachineState:          d->queryMediasForMachineState(machineList, fAttachLinked,
     901                                                                                uCount, uTotalWeight);
     902                                                  break;
     903            case CloneMode_MachineAndChildStates: d->queryMediasForMachineAndChildStates(machineList, fAttachLinked,
     904                                                                                         uCount, uTotalWeight);
     905                                                  break;
     906            case CloneMode_AllStates:             d->queryMediasForAllStates(machineList, fAttachLinked, uCount,
     907                                                                             uTotalWeight);
     908                                                  break;
    886909        }
    887910
     
    10131036        if (FAILED(rc)) throw rc;
    10141037        /* The absolute name of the snapshot folder. */
    1015         strTrgSnapshotFolder = Utf8StrFmt("%s%c%s", strTrgMachineFolder.c_str(), RTPATH_DELIMITER, trgMCF.machineUserData.strSnapshotFolder.c_str());
     1038        strTrgSnapshotFolder = Utf8StrFmt("%s%c%s", strTrgMachineFolder.c_str(), RTPATH_DELIMITER,
     1039                                                    trgMCF.machineUserData.strSnapshotFolder.c_str());
    10161040
    10171041        /* Should we rename the disk names. */
     
    10411065                if (FAILED(rc)) throw rc;
    10421066
    1043                 rc = d->pProgress->SetNextOperation(BstrFmt(p->tr("Cloning Disk '%ls' ..."), bstrSrcName.raw()).raw(), mt.uWeight);
     1067                rc = d->pProgress->SetNextOperation(BstrFmt(p->tr("Cloning Disk '%ls' ..."), bstrSrcName.raw()).raw(),
     1068                                                    mt.uWeight);
    10441069                if (FAILED(rc)) throw rc;
    10451070
     
    11421167                             * template: "new name-disk1.vdi". */
    11431168                            if (strSrcTest == strOldVMName)
    1144                                 strNewName = Utf8StrFmt("%s%s", trgMCF.machineUserData.strName.c_str(), RTPathSuffix(Utf8Str(bstrSrcName).c_str()));
     1169                                strNewName = Utf8StrFmt("%s%s", trgMCF.machineUserData.strName.c_str(),
     1170                                                                RTPathSuffix(Utf8Str(bstrSrcName).c_str()));
    11451171                            else if (   strSrcTest.startsWith("{")
    11461172                                     && strSrcTest.endsWith("}"))
     
    11501176                                Guid temp_guid(strSrcTest);
    11511177                                if (temp_guid.isValid() && !temp_guid.isZero())
    1152                                     strNewName = Utf8StrFmt("%s%s", newId.toStringCurly().c_str(), RTPathSuffix(strNewName.c_str()));
     1178                                    strNewName = Utf8StrFmt("%s%s", newId.toStringCurly().c_str(),
     1179                                                                    RTPathSuffix(strNewName.c_str()));
    11531180                            }
    11541181                            else
     
    13221349            if (RT_FAILURE(vrc))
    13231350                throw p->setError(VBOX_E_IPRT_ERROR,
    1324                                   p->tr("Could not create snapshots folder '%s' (%Rrc)"), strTrgSnapshotFolder.c_str(), vrc);
     1351                                  p->tr("Could not create snapshots folder '%s' (%Rrc)"),
     1352                                  strTrgSnapshotFolder.c_str(), vrc);
    13251353        }
    13261354        /* Clone all save state files. */
     
    13281356        {
    13291357            SAVESTATETASK sst = d->llSaveStateFiles.at(i);
    1330             const Utf8Str &strTrgSaveState = Utf8StrFmt("%s%c%s", strTrgSnapshotFolder.c_str(), RTPATH_DELIMITER, RTPathFilename(sst.strSaveStateFile.c_str()));
     1358            const Utf8Str &strTrgSaveState = Utf8StrFmt("%s%c%s", strTrgSnapshotFolder.c_str(), RTPATH_DELIMITER,
     1359                                                        RTPathFilename(sst.strSaveStateFile.c_str()));
    13311360
    13321361            /* Move to next sub-operation. */
    1333             rc = d->pProgress->SetNextOperation(BstrFmt(p->tr("Copy save state file '%s' ..."), RTPathFilename(sst.strSaveStateFile.c_str())).raw(), sst.uWeight);
     1362            rc = d->pProgress->SetNextOperation(BstrFmt(p->tr("Copy save state file '%s' ..."),
     1363                                                RTPathFilename(sst.strSaveStateFile.c_str())).raw(), sst.uWeight);
    13341364            if (FAILED(rc)) throw rc;
    13351365            /* Copy the file only if it was not copied already. */
    13361366            if (!newFiles.contains(strTrgSaveState.c_str()))
    13371367            {
    1338                 int vrc = RTFileCopyEx(sst.strSaveStateFile.c_str(), strTrgSaveState.c_str(), 0, MachineCloneVMPrivate::copyStateFileProgress, &d->pProgress);
     1368                int vrc = RTFileCopyEx(sst.strSaveStateFile.c_str(), strTrgSaveState.c_str(), 0,
     1369                                       MachineCloneVMPrivate::copyStateFileProgress, &d->pProgress);
    13391370                if (RT_FAILURE(vrc))
    13401371                    throw p->setError(VBOX_E_IPRT_ERROR,
    1341                                       p->tr("Could not copy state file '%s' to '%s' (%Rrc)"), sst.strSaveStateFile.c_str(), strTrgSaveState.c_str(), vrc);
     1372                                      p->tr("Could not copy state file '%s' to '%s' (%Rrc)"),
     1373                                            sst.strSaveStateFile.c_str(), strTrgSaveState.c_str(), vrc);
    13421374                newFiles.append(strTrgSaveState);
    13431375            }
     
    13511383
    13521384        {
    1353             rc = d->pProgress->SetNextOperation(BstrFmt(p->tr("Create Machine Clone '%s' ..."), trgMCF.machineUserData.strName.c_str()).raw(), 1);
     1385            rc = d->pProgress->SetNextOperation(BstrFmt(p->tr("Create Machine Clone '%s' ..."),
     1386                                                trgMCF.machineUserData.strName.c_str()).raw(), 1);
    13541387            if (FAILED(rc)) throw rc;
    13551388            /* After modifying the new machine config, we can copy the stuff
  • trunk/src/VBox/Main/src-server/MediumImpl.cpp

    r50472 r50874  
    682682    /* complete the progress if run asynchronously */
    683683    if (pTask->isAsync())
    684     {
    685684        if (!pTask->mProgress.isNull())
    686             pTask->mProgress->notifyComplete(rc);
    687     }
     685            pTask->mProgress->i_notifyComplete(rc);
    688686
    689687    /* pTask is no longer needed, delete it. */
  • trunk/src/VBox/Main/src-server/ProgressProxyImpl.cpp

    r44529 r50874  
    158158    HRESULT hrc = S_OK;
    159159    if (!mCompleted)
    160          hrc = Progress::notifyComplete(aResultCode);
     160         hrc = Progress::i_notifyComplete(aResultCode);
    161161    return hrc;
    162162}
     
    178178        va_list va;
    179179        va_start(va, aText);
    180         hrc = Progress::notifyCompleteV(aResultCode, aIID, pcszComponent, aText, va);
     180        hrc = Progress::i_notifyCompleteV(aResultCode, aIID, pcszComponent, aText, va);
    181181        va_end(va);
    182182    }
     
    376376                        Utf8Str strText(bstrText);
    377377                        LogFlowThisFunc(("Got ErrorInfo(%s); hrcResult=%Rhrc\n", strText.c_str(), hrcResult));
    378                         Progress::notifyComplete((HRESULT)hrcResult,
    379                                                  Guid(bstrIID).ref(),
    380                                                  Utf8Str(bstrComponent).c_str(),
    381                                                  "%s", strText.c_str());
     378                        Progress::i_notifyComplete((HRESULT)hrcResult,
     379                                                   Guid(bstrIID).ref(),
     380                                                   Utf8Str(bstrComponent).c_str(),
     381                                                   "%s", strText.c_str());
    382382                    }
    383383                    else
    384384                    {
    385385                        LogFlowThisFunc(("ErrorInfo failed with hrc=%Rhrc; hrcResult=%Rhrc\n", hrc, hrcResult));
    386                         Progress::notifyComplete((HRESULT)hrcResult,
    387                                                  COM_IIDOF(IProgress),
    388                                                  "ProgressProxy",
    389                                                  tr("No error info"));
     386                        Progress::i_notifyComplete((HRESULT)hrcResult,
     387                                                   COM_IIDOF(IProgress),
     388                                                   "ProgressProxy",
     389                                                   tr("No error info"));
    390390                    }
    391391                }
     
    467467                double rdPercent = ((double)uPct / 100 * muOtherProgressWeight + muOtherProgressStartWeight)
    468468                                 / m_ulTotalOperationsWeight * 100;
    469                 *aPercent = RT_MIN((ULONG)rdPercent, 99); /* mptrOtherProgress is cleared when its completed, so we can never return 100%. */
     469                *aPercent = RT_MIN((ULONG)rdPercent, 99); /* mptrOtherProgress is cleared when its completed,
     470                                                             so we can never return 100%. */
    470471            }
    471472        }
  • trunk/src/VBox/Main/src-server/SnapshotImpl.cpp

    r50355 r50874  
    14221422        && mData->mCurrentSnapshot->i_getDepth() >= SETTINGS_SNAPSHOT_DEPTH_MAX)
    14231423    {
     1424        Utf8Str str;
     1425        str = "Cannot take another snapshot for machine '%s', because it exceeds the maximum";
     1426        str += "snapshot depth limit. Please delete some earlier snapshot which you no longer need";
    14241427        return setError(VBOX_E_INVALID_OBJECT_STATE,
    1425                         tr("Cannot take another snapshot for machine '%s', because it exceeds the maximum snapshot depth limit. Please delete some earlier snapshot which you no longer need"),
     1428                        tr(str.c_str()),
    14261429                        mUserData->s.strName.c_str());
    14271430    }
     
    17311734            ++ulTotalWeight;         // assume one MB weight for each differencing hard disk to manage
    17321735            Assert(pAttach->i_getMedium());
    1733             LogFlowThisFunc(("op %d: considering hard disk attachment %s\n", ulOpCount, pAttach->i_getMedium()->i_getName().c_str()));
     1736            LogFlowThisFunc(("op %d: considering hard disk attachment %s\n", ulOpCount,
     1737                             pAttach->i_getMedium()->i_getName().c_str()));
    17341738        }
    17351739    }
     
    18001804        /* we might have been uninitialized because the session was accidentally
    18011805         * closed by the client, so don't assert */
    1802         aTask.pProgress->notifyComplete(E_FAIL,
    1803                                         COM_IIDOF(IMachine),
    1804                                         getComponentName(),
    1805                                         tr("The session has been accidentally closed"));
     1806        aTask.pProgress->i_notifyComplete(E_FAIL,
     1807                                          COM_IIDOF(IMachine),
     1808                                          getComponentName(),
     1809                                          tr("The session has been accidentally closed"));
    18061810
    18071811        LogFlowThisFuncLeave();
     
    20362040
    20372041    /* set the result (this will try to fetch current error info on failure) */
    2038     aTask.pProgress->notifyComplete(rc);
     2042    aTask.pProgress->i_notifyComplete(rc);
    20392043
    20402044    if (SUCCEEDED(rc))
     
    21102114
    21112115    AutoWriteLock snapshotLock(pSnapshot COMMA_LOCKVAL_SRC_POS);
     2116    Utf8Str str;
    21122117
    21132118    size_t childrenCount = pSnapshot->i_getChildrenCount();
    21142119    if (childrenCount > 1)
     2120    {
     2121        str = "Snapshot '%s' of the machine '%s' cannot be deleted, because it has %d child snapshots,";
     2122        str += "which is more than the one snapshot allowed for deletion";
    21152123        return setError(VBOX_E_INVALID_OBJECT_STATE,
    2116                         tr("Snapshot '%s' of the machine '%s' cannot be deleted, because it has %d child snapshots, which is more than the one snapshot allowed for deletion"),
     2124                        tr(str.c_str()),
    21172125                        pSnapshot->i_getName().c_str(),
    21182126                        mUserData->s.strName.c_str(),
    21192127                        childrenCount);
     2128    }
    21202129
    21212130    if (pSnapshot == mData->mCurrentSnapshot && childrenCount >= 1)
     2131    {
     2132        str = "Snapshot '%s' of the machine '%s' cannot be deleted, because it is the current";
     2133        str += "snapshot and has one child snapshot";
    21222134        return setError(VBOX_E_INVALID_OBJECT_STATE,
    2123                         tr("Snapshot '%s' of the machine '%s' cannot be deleted, because it is the current snapshot and has one child snapshot"),
     2135                        tr(str.c_str()),
    21242136                        pSnapshot->i_getName().c_str(),
    21252137                        mUserData->s.strName.c_str());
     2138    }
    21262139
    21272140    /* If the snapshot being deleted is the current one, ensure current
     
    23402353        /* we might have been uninitialized because the session was accidentally
    23412354         * closed by the client, so don't assert */
    2342         aTask.pProgress->notifyComplete(E_FAIL,
    2343                                         COM_IIDOF(IMachine),
    2344                                         getComponentName(),
    2345                                         tr("The session has been accidentally closed"));
     2355        aTask.pProgress->i_notifyComplete(E_FAIL,
     2356                                          COM_IIDOF(IMachine),
     2357                                          getComponentName(),
     2358                                          tr("The session has been accidentally closed"));
    23462359        LogFlowThisFuncLeave();
    23472360        return;
     
    29062919
    29072920    // report the result (this will try to fetch current error info on failure)
    2908     aTask.pProgress->notifyComplete(rc);
     2921    aTask.pProgress->i_notifyComplete(rc);
    29092922
    29102923    if (SUCCEEDED(rc))
  • trunk/src/VBox/Main/src-server/VFSExplorerImpl.cpp

    r49871 r50874  
    7878 * @return
    7979 */
    80 HRESULT VFSExplorer::init(VFSType_T aType, Utf8Str aFilePath, Utf8Str aHostname, Utf8Str aUsername, Utf8Str aPassword, VirtualBox *aVirtualBox)
     80HRESULT VFSExplorer::init(VFSType_T aType, Utf8Str aFilePath, Utf8Str aHostname, Utf8Str aUsername,
     81                          Utf8Str aPassword, VirtualBox *aVirtualBox)
    8182{
    8283    /* Enclose the state transition NotReady->InInit->Ready */
     
    312313                if (   name != "."
    313314                    && name != "..")
    314                     fileList.push_back(VFSExplorer::Data::DirEntry(name, i_RTToVFSFileType(entry.Info.Attr.fMode), entry.Info.cbObject, entry.Info.Attr.fMode & (RTFS_UNIX_IRWXU | RTFS_UNIX_IRWXG | RTFS_UNIX_IRWXO)));
     315                    fileList.push_back(VFSExplorer::Data::DirEntry(name, i_RTToVFSFileType(entry.Info.Attr.fMode),
     316                                       entry.Info.cbObject,
     317                                       entry.Info.Attr.fMode & (RTFS_UNIX_IRWXU | RTFS_UNIX_IRWXG | RTFS_UNIX_IRWXO)));
    315318            }
    316319        }
     
    339342
    340343    if (!aTask->progress.isNull())
    341         aTask->progress->notifyComplete(rc);
     344        aTask->progress->i_notifyComplete(rc);
    342345
    343346    LogFlowFunc(("rc=%Rhrc\n", rc));
     
    386389
    387390    if (!aTask->progress.isNull())
    388         aTask->progress->notifyComplete(rc);
     391        aTask->progress->i_notifyComplete(rc);
    389392
    390393    LogFlowFunc(("rc=%Rhrc\n", rc));
     
    428431            {
    429432                /* Set always read/write permissions of the current logged in user. */
    430                 fileList.push_back(VFSExplorer::Data::DirEntry(pBuckets->pszName, VFSFileType_Directory, 0, RTFS_UNIX_IRUSR | RTFS_UNIX_IWUSR));
     433                fileList.push_back(VFSExplorer::Data::DirEntry(pBuckets->pszName, VFSFileType_Directory,
     434                                   0, RTFS_UNIX_IRUSR | RTFS_UNIX_IWUSR));
    431435                pBuckets = pBuckets->pNext;
    432436            }
     
    445449                Utf8Str name(pKeys->pszName);
    446450                /* Set always read/write permissions of the current logged in user. */
    447                 fileList.push_back(VFSExplorer::Data::DirEntry(pKeys->pszName, VFSFileType_File, pKeys->cbFile, RTFS_UNIX_IRUSR | RTFS_UNIX_IWUSR));
     451                fileList.push_back(VFSExplorer::Data::DirEntry(pKeys->pszName, VFSFileType_File, pKeys->cbFile,
     452                                   RTFS_UNIX_IRUSR | RTFS_UNIX_IWUSR));
    448453                pKeys = pKeys->pNext;
    449454            }
     
    466471
    467472    if (!aTask->progress.isNull())
    468         aTask->progress->notifyComplete(rc);
     473        aTask->progress->i_notifyComplete(rc);
    469474
    470475    LogFlowFunc(("rc=%Rhrc\n", rc));
     
    520525
    521526    if (!aTask->progress.isNull())
    522         aTask->progress->notifyComplete(rc);
     527        aTask->progress->i_notifyComplete(rc);
    523528
    524529    LogFlowFunc(("rc=%Rhrc\n", rc));
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r50545 r50874  
    25602560    }
    25612561
    2562     d->progress->notifyComplete(rc);
     2562    d->progress->i_notifyComplete(rc);
    25632563
    25642564    LogFlowFuncLeave();
  • trunk/src/VBox/Main/src-server/generic/NetIf-generic.cpp

    r50196 r50874  
    157157}
    158158
    159 int NetIfEnableStaticIpConfigV6(VirtualBox * /* vBox */, HostNetworkInterface * pIf, IN_BSTR aOldIPV6Address, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength)
     159int NetIfEnableStaticIpConfigV6(VirtualBox * /* vBox */, HostNetworkInterface * pIf, IN_BSTR aOldIPV6Address,
     160                                IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength)
    160161{
    161162    char szAddress[5*8 + 1 + 5 + 1];
     
    205206            if (RT_FAILURE(rc))
    206207            {
    207                 progress->notifyComplete(E_FAIL,
    208                                          COM_IIDOF(IHostNetworkInterface),
    209                                          HostNetworkInterface::getStaticComponentName(),
    210                                          "Failed to get program path, rc=%Rrc\n", rc);
     208                progress->i_notifyComplete(E_FAIL,
     209                                           COM_IIDOF(IHostNetworkInterface),
     210                                           HostNetworkInterface::getStaticComponentName(),
     211                                           "Failed to get program path, rc=%Rrc\n", rc);
    211212                return rc;
    212213            }
     
    235236                    if (!strncmp(VBOXNETADPCTL_NAME ":", szBuf, sizeof(VBOXNETADPCTL_NAME)))
    236237                    {
    237                         progress->notifyComplete(E_FAIL,
    238                                                  COM_IIDOF(IHostNetworkInterface),
    239                                                  HostNetworkInterface::getStaticComponentName(),
    240                                                  "%s", szBuf);
     238                        progress->i_notifyComplete(E_FAIL,
     239                                                   COM_IIDOF(IHostNetworkInterface),
     240                                                   HostNetworkInterface::getStaticComponentName(),
     241                                                   "%s", szBuf);
    241242                        pclose(fp);
    242243                        return E_FAIL;
     
    254255                        if (RT_FAILURE(rc))
    255256                        {
    256                             progress->notifyComplete(E_FAIL,
    257                                                      COM_IIDOF(IHostNetworkInterface),
    258                                                      HostNetworkInterface::getStaticComponentName(),
    259                                                      "Failed to get config info for %s (as reported by '" VBOXNETADPCTL_NAME " add')\n", szBuf);
     257                            progress->i_notifyComplete(E_FAIL,
     258                                                       COM_IIDOF(IHostNetworkInterface),
     259                                                       HostNetworkInterface::getStaticComponentName(),
     260                                                       "Failed to get config info for %s (as reported by '"
     261                                                       VBOXNETADPCTL_NAME " add')\n", szBuf);
    260262                        }
    261263                        else
     
    273275                    if ((rc = pclose(fp)) != 0)
    274276                    {
    275                         progress->notifyComplete(E_FAIL,
    276                                                  COM_IIDOF(IHostNetworkInterface),
    277                                                  HostNetworkInterface::getStaticComponentName(),
    278                                                  "Failed to execute '" VBOXNETADPCTL_NAME " add' (exit status: %d)", rc);
     277                        progress->i_notifyComplete(E_FAIL,
     278                                                   COM_IIDOF(IHostNetworkInterface),
     279                                                   HostNetworkInterface::getStaticComponentName(),
     280                                                   "Failed to execute '" VBOXNETADPCTL_NAME " add' (exit status: %d)", rc);
    279281                        rc = VERR_INTERNAL_ERROR;
    280282                    }
     
    284286                    /* Failed to add an interface */
    285287                    rc = VERR_PERMISSION_DENIED;
    286                     progress->notifyComplete(E_FAIL,
    287                                              COM_IIDOF(IHostNetworkInterface),
    288                                              HostNetworkInterface::getStaticComponentName(),
    289                                              "Failed to execute '" VBOXNETADPCTL_NAME " add' (exit status: %d). Check permissions!", rc);
     288                    progress->i_notifyComplete(E_FAIL,
     289                                               COM_IIDOF(IHostNetworkInterface),
     290                                               HostNetworkInterface::getStaticComponentName(),
     291                                               "Failed to execute '" VBOXNETADPCTL_NAME
     292                                               " add' (exit status: %d). Check permissions!", rc);
    290293                    pclose(fp);
    291294                }
    292295            }
    293296            if (RT_SUCCESS(rc))
    294                 progress->notifyComplete(rc);
     297                progress->i_notifyComplete(rc);
    295298            else
    296299                hrc = E_FAIL;
     
    337340            rc = NetIfAdpCtl(Utf8Str(ifname).c_str(), "remove", NULL, NULL);
    338341            if (RT_FAILURE(rc))
    339                 progress->notifyComplete(E_FAIL,
    340                                          COM_IIDOF(IHostNetworkInterface),
    341                                          HostNetworkInterface::getStaticComponentName(),
    342                                          "Failed to execute '" VBOXNETADPCTL_NAME "' (exit status: %d)", rc);
     342                progress->i_notifyComplete(E_FAIL,
     343                                           COM_IIDOF(IHostNetworkInterface),
     344                                           HostNetworkInterface::getStaticComponentName(),
     345                                           "Failed to execute '" VBOXNETADPCTL_NAME "' (exit status: %d)", rc);
    343346            else
    344                 progress->notifyComplete(S_OK);
     347                progress->i_notifyComplete(S_OK);
    345348        }
    346349    }
    347350    else
    348351    {
    349         progress->notifyComplete(hr);
     352        progress->i_notifyComplete(hr);
    350353        rc = VERR_INTERNAL_ERROR;
    351354    }
  • trunk/src/VBox/Main/src-server/xpcom/server.cpp

    r50369 r50874  
    114114NS_IMPL_THREADSAFE_ISUPPORTS1_CI(SnapshotMachine, IMachine)
    115115
    116 NS_DECL_CLASSINFO(Progress)
    117 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(Progress, IProgress)
    118 
    119116NS_DECL_CLASSINFO(ProgressProxy)
    120117NS_IMPL_THREADSAFE_ISUPPORTS1_CI(ProgressProxy, IProgress)
Note: See TracChangeset for help on using the changeset viewer.

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