ProgressImpl.h revision c829b606c5535f37e00ffee381cca0815a57f319
bc7702b098b63031767174206f5df14a8ccb45cfDaniel Mack * VirtualBox COM class implementation
bc7702b098b63031767174206f5df14a8ccb45cfDaniel Mack * Copyright (C) 2006-2010 Sun Microsystems, Inc.
bc7702b098b63031767174206f5df14a8ccb45cfDaniel Mack * This file is part of VirtualBox Open Source Edition (OSE), as
bc7702b098b63031767174206f5df14a8ccb45cfDaniel Mack * available from http://www.virtualbox.org. This file is free software;
bc7702b098b63031767174206f5df14a8ccb45cfDaniel Mack * you can redistribute it and/or modify it under the terms of the GNU
bc7702b098b63031767174206f5df14a8ccb45cfDaniel Mack * General Public License (GPL) as published by the Free Software
bc7702b098b63031767174206f5df14a8ccb45cfDaniel Mack * Foundation, in version 2 as it comes in the "COPYING" file of the
bc7702b098b63031767174206f5df14a8ccb45cfDaniel Mack * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
bc7702b098b63031767174206f5df14a8ccb45cfDaniel Mack * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
bc7702b098b63031767174206f5df14a8ccb45cfDaniel Mack * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
bc7702b098b63031767174206f5df14a8ccb45cfDaniel Mack * Clara, CA 95054 USA or visit http://www.sun.com if you need
bc7702b098b63031767174206f5df14a8ccb45cfDaniel Mack * additional information or have any questions.
bc7702b098b63031767174206f5df14a8ccb45cfDaniel Mack////////////////////////////////////////////////////////////////////////////////
// protected initializer/uninitializer for internal purposes only
#if !defined (VBOX_COM_INPROC)
double calcTotalPercent();
void checkForAutomaticTimeout(void);
#if !defined (VBOX_COM_INPROC)
void (*m_pfnCancelCallback)(void *);
void *m_pvCancelUserArg;
ULONG m_cOperations; // number of operations (so that progress dialog can display something like 1/3)
ULONG m_ulOperationsCompletedWeight; // summed-up weight of operations that have been completed; initially 0
Bstr m_bstrOperationDescription; // name of current operation; initially from constructor, changed with setNextOperation()
ULONG m_ulOperationPercent; // percentage of current operation, set with setCurrentOperationProgress()
void FinalRelease();
// public initializer/uninitializer for internal purposes only
#if !defined (VBOX_COM_INPROC)
return init(
#if !defined (VBOX_COM_INPROC)
aId);
#if !defined (VBOX_COM_INPROC)
return init(
#if !defined (VBOX_COM_INPROC)
aId);
#if !defined (VBOX_COM_INPROC)
void uninit();
const char *aText, ...);
bool notifyPointOfNoReturn(void);