Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

VBoxProblemReporter Class Reference

#include <VBoxProblemReporter.h>

List of all members.


Detailed Description

The VBoxProblemReporter class is a central place to handle all problem/error situations that happen during application runtime and require the user's attention.

The role of this class is to describe the problem and/or the cause of the error to the user and give him the opportunity to select an action (when appropriate).

Every problem sutiation has its own (correspondingly named) method in this class that takes a list of arguments necessary to describe the situation and to provide the appropriate actions. The method then returns the choice to the caller.

Definition at line 51 of file VBoxProblemReporter.h.


Public Types

enum  { AutoConfirmed = 0x8000 }
enum  Type {
  Info = 1, Question, Warning, Error,
  Critical, GuruMeditation
}

Public Slots

void resetSuppressedMessages ()
void showHelpAboutDialog ()
void showHelpHelpDialog ()
void showHelpWebDialog ()

Public Member Functions

bool askAboutSnapshotAndStateDiscarding ()
bool askForOverridingFile (const QString &aPath, QWidget *aParent=NULL) const
bool askForOverridingFileIfExists (const QString &path, QWidget *aParent=NULL) const
bool askForOverridingFiles (const QVector< QString > &aPaths, QWidget *aParent=NULL) const
bool askForOverridingFilesIfExists (const QVector< QString > &aPaths, QWidget *aParent=NULL) const
void cannotAccessUSB (const COMBaseWithEI &aObj)
void cannotACPIShutdownMachine (const CConsole &console)
void cannotApplyMachineSettings (const CMachine &machine, const COMResult &res)
void cannotAttachHardDisk (QWidget *aParent, const CMachine &aMachine, const QString &aLocation, KStorageBus aBus, LONG aChannel, LONG aDevice)
void cannotAttachUSBDevice (const CConsole &console, const QString &device, const CVirtualBoxErrorInfo &error)
void cannotAttachUSBDevice (const CConsole &console, const QString &device)
void cannotCheckFiles (const CProgress &aProgress, QWidget *aParent=NULL) const
void cannotCloseMedium (QWidget *aParent, const VBoxMedium &aMedium, const COMResult &aResult)
void cannotConnectRegister (QWidget *aParent, const QString &aURL, const QString &aReason)
void cannotCopyFile (const QString &aSrc, const QString &aDst, int aVRC)
void cannotCreateHardDiskStorage (QWidget *aParent, const CVirtualBox &aVBox, const QString &aLocaiton, const CHardDisk &aHD, const CProgress &aProgress)
void cannotCreateHostInterface (const CProgress &aProgress, QWidget *aParent=0)
void cannotCreateHostInterface (const CHost &aHost, QWidget *aParent=0)
void cannotCreateMachine (const CVirtualBox &vbox, const CMachine &machine, QWidget *parent=0)
void cannotCreateMachine (const CVirtualBox &vbox, QWidget *parent=0)
void cannotCreateSharedFolder (QWidget *, const CConsole &, const QString &, const QString &)
void cannotCreateSharedFolder (QWidget *, const CMachine &, const QString &, const QString &)
void cannotCreateVirtualBox (const CVirtualBox &vbox)
void cannotDeleteFile (const QString &path, QWidget *aParent=NULL) const
void cannotDeleteHardDiskStorage (QWidget *aParent, const CHardDisk &aHD, const CProgress &aProgress)
void cannotDeleteMachine (const CVirtualBox &vbox, const CMachine &machine)
void cannotDetachHardDisk (QWidget *aParent, const CMachine &aMachine, const QString &aLocation, KStorageBus aBus, LONG aChannel, LONG aDevice)
void cannotDetachUSBDevice (const CConsole &console, const QString &device, const CVirtualBoxErrorInfo &error)
void cannotDetachUSBDevice (const CConsole &console, const QString &device)
void cannotDiscardCurrentSnapshotAndState (const CProgress &progress)
void cannotDiscardCurrentSnapshotAndState (const CConsole &console)
void cannotDiscardCurrentState (const CProgress &progress)
void cannotDiscardCurrentState (const CConsole &console)
void cannotDiscardSavedState (const CConsole &console)
void cannotDiscardSnapshot (const CProgress &aProgress, const QString &aSnapshotName)
void cannotDiscardSnapshot (const CConsole &aConsole, const QString &aSnapshotName)
void cannotDownloadGuestAdditions (const QString &aURL, const QString &aReason)
void cannotEjectDrive ()
int cannotEnterFullscreenMode (ULONG aWidth, ULONG aHeight, ULONG aBpp, ULONG64 aMinVRAM)
void cannotEnterSeamlessMode (ULONG aWidth, ULONG aHeight, ULONG aBpp, ULONG64 aMinVRAM)
void cannotExportAppliance (const CProgress &aProgress, CAppliance *aAppliance, QWidget *aParent=NULL) const
void cannotExportAppliance (const CMachine &aMachine, CAppliance *aAppliance, QWidget *aParent=NULL) const
void cannotExportAppliance (CAppliance *aAppliance, QWidget *aParent=NULL) const
int cannotFindGuestAdditions (const QString &aSrc1, const QString &aSrc2)
void cannotFindLanguage (const QString &aLangID, const QString &aNlsPath)
void cannotFindMachineByName (const CVirtualBox &vbox, const QString &name)
void cannotGetMediaAccessibility (const VBoxMedium &aMedium)
void cannotImportAppliance (const CProgress &aProgress, CAppliance *aAppliance, QWidget *aParent=NULL) const
void cannotImportAppliance (CAppliance *aAppliance, QWidget *aParent=NULL) const
void cannotInitCOM (HRESULT rc)
void cannotLoadGlobalConfig (const CVirtualBox &vbox, const QString &error)
void cannotLoadLanguage (const QString &aLangFile)
void cannotLoadMachineSettings (const CMachine &machine, bool strict=true, QWidget *parent=0)
void cannotMountMedium (QWidget *aParent, const CMachine &aMachine, const VBoxMedium &aMedium, const COMResult &aResult)
void cannotOpenMedium (QWidget *aParent, const CVirtualBox &aVBox, VBoxDefs::MediaType aType, const QString &aLocation)
void cannotOpenSession (const CVirtualBox &vbox, const CMachine &machine, const CProgress &progress=CProgress())
void cannotOpenSession (const CSession &session)
void cannotOpenURL (const QString &aURL)
void cannotPauseMachine (const CConsole &console)
void cannotRemoveFiles (const CProgress &aProgress, QWidget *aParent=NULL) const
void cannotRemoveHostInterface (const CProgress &aProgress, const CHostNetworkInterface &aIface, QWidget *aParent=0)
void cannotRemoveHostInterface (const CHost &aHost, const CHostNetworkInterface &aIface, QWidget *aParent=0)
void cannotRemoveSharedFolder (QWidget *, const CConsole &, const QString &, const QString &)
void cannotRemoveSharedFolder (QWidget *, const CMachine &, const QString &, const QString &)
void cannotResumeMachine (const CConsole &console)
void cannotRunInSelectorMode ()
void cannotSaveGlobalConfig (const CVirtualBox &vbox)
void cannotSaveGlobalSettings (const CVirtualBox &vbox, QWidget *parent=0)
void cannotSaveMachineSettings (const CMachine &machine, QWidget *parent=0)
void cannotSaveMachineState (const CProgress &progress)
void cannotSaveMachineState (const CConsole &console)
void cannotSendACPIToMachine ()
void cannotSetSnapshotFolder (const CMachine &aMachine, const QString &aPath)
void cannotSetSystemProperties (const CSystemProperties &props)
void cannotStartMachine (const CProgress &progress)
void cannotStartMachine (const CConsole &console)
void cannotStopMachine (const CProgress &progress)
void cannotStopMachine (const CConsole &console)
void cannotTakeSnapshot (const CProgress &progress)
void cannotTakeSnapshot (const CConsole &console)
void cannotUnmountMedium (QWidget *aParent, const CMachine &aMachine, const VBoxMedium &aMedium, const COMResult &aResult)
int confirmChangeAddControllerSlots (QWidget *aParent) const
int confirmDeleteHardDiskStorage (QWidget *aParent, const QString &aLocation)
int confirmDeletingHostInterface (const QString &aName, QWidget *aParent=0)
int confirmDetachAddControllerSlots (QWidget *aParent) const
bool confirmDiscardSavedState (const CMachine &machine)
bool confirmDownloadAdditions (const QString &aURL, ulong aSize)
bool confirmGoingFullscreen (const QString &aHotKey)
bool confirmGoingSeamless (const QString &aHotKey)
bool confirmHardDisklessMachine (QWidget *aParent)
bool confirmInputCapture (bool *aAutoConfirmed=NULL)
bool confirmMachineDeletion (const CMachine &machine)
bool confirmMountAdditions (const QString &aURL, const QString &aSrc)
bool confirmReleaseMedium (QWidget *aParent, const VBoxMedium &aMedium, const QString &aUsage)
bool confirmRemoveMedium (QWidget *aParent, const VBoxMedium &aMedium)
int confirmRunNewHDWzdOrVDM (QWidget *aParent)
bool confirmVMReset (QWidget *aParent)
bool isValid () const
QWidget * mainWindowShown () const
int message (QWidget *aParent, Type aType, const QString &aMessage, const char *aAutoConfirmId, int aButton1=0, int aButton2=0, int aButton3=0, const QString &aText1=QString::null, const QString &aText2=QString::null, const QString &aText3=QString::null) const
int message (QWidget *aParent, Type aType, const QString &aMessage, const QString &aDetails=QString::null, const char *aAutoConfirmId=0, int aButton1=0, int aButton2=0, int aButton3=0, const QString &aText1=QString::null, const QString &aText2=QString::null, const QString &aText3=QString::null) const
bool messageOkCancel (QWidget *aParent, Type aType, const QString &aMessage, const char *aAutoConfirmId, const QString &aOkText=QString::null, const QString &aCancelText=QString::null) const
bool messageOkCancel (QWidget *aParent, Type aType, const QString &aMessage, const QString &aDetails=QString::null, const char *aAutoConfirmId=0, const QString &aOkText=QString::null, const QString &aCancelText=QString::null) const
bool messageYesNo (QWidget *aParent, Type aType, const QString &aMessage, const char *aAutoConfirmId, const QString &aYesText=QString::null, const QString &aNoText=QString::null) const
bool messageYesNo (QWidget *aParent, Type aType, const QString &aMessage, const QString &aDetails=QString::null, const char *aAutoConfirmId=0, const QString &aYesText=QString::null, const QString &aNoText=QString::null) const
void remindAboutAutoCapture ()
bool remindAboutGuruMeditation (const CConsole &aConsole, const QString &aLogFolder)
bool remindAboutInaccessibleMedia ()
void remindAboutMouseIntegration (bool aSupportsAbsolute)
bool remindAboutPausedVMInput ()
void remindAboutWrongColorDepth (ulong aRealBPP, ulong aWantedBPP)
void sayCannotOverwriteHardDiskStorage (QWidget *aParent, const QString &aLocation)
void showBETAWarning ()
bool showModalProgressDialog (CProgress &aProgress, const QString &aTitle, QWidget *aParent, int aMinDuration=2000)
void showRegisterResult (QWidget *aParent, const QString &aResult)
void showRuntimeError (const CConsole &console, bool fatal, const QString &errorID, const QString &errorMsg) const
void showUpdateFailure (QWidget *aParent, const QString &aReason)
void showUpdateNotFound (QWidget *aParent)
void showUpdateSuccess (QWidget *aParent, const QString &aVersion, const QString &aLink)
int warnAboutAutoConvertedSettings (const QString &aFormatVersion, const QString &aFileList, bool aAfterRefresh)
void warnAboutNewAdditions (QWidget *, const QString &, const QString &)
void warnAboutOldAdditions (QWidget *, const QString &, const QString &)
void warnAboutTooOldAdditions (QWidget *, const QString &, const QString &)
bool warnAboutVirtNotEnabled64BitsGuest ()
bool warnAboutVirtNotEnabledGuestRequired ()

Static Public Member Functions

static QString formatErrorInfo (const COMResult &aRC)
static QString formatErrorInfo (const COMBaseWithEI &aWrapper)
static QString formatErrorInfo (const CVirtualBoxErrorInfo &aInfo)
static QString formatErrorInfo (const COMErrorInfo &aInfo, HRESULT aWrapperRC=S_OK)
static QString formatRC (HRESULT aRC)
static VBoxProblemReporterinstance ()
static QString toAccusative (VBoxDefs::MediaType aType)

Static Private Member Functions

static QString doFormatErrorInfo (const COMErrorInfo &aInfo, HRESULT aWrapperRC=S_OK)

Friends

VBoxProblemReportervboxProblem ()

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index