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

VBoxGlobal Class Reference

List of all members.


Detailed Description

The VBoxGlobal class incapsulates the global VirtualBox data.

There is only one instance of this class per VirtualBox application, the reference to it is returned by the static instance() method, or by the global vboxGlobal() function, that is just an inlined shortcut.

Definition at line 382 of file VBoxGlobal.h.


Public Types

typedef QHash< long, QString > QLongStringHash
typedef QMap< long, QString > QLongStringMap
typedef QHash< ulong, QString > QULongStringHash
typedef QMap< ulong, QString > QULongStringMap

Public Slots

bool openURL (const QString &aURL)
bool openURL (const QString &aURL)
void showRegistrationDialog (bool aForce=true)
void showRegistrationDialog (bool aForce=true)
void showUpdateDialog (bool aForce=true)

Signals

void canShowRegDlg (bool aCanShow)
void canShowRegDlg (bool aCanShow)
void canShowUpdDlg (bool aCanShow)
void dockIconUpdateChanged (const VBoxChangeDockIconUpdateEvent &e)
void machineDataChanged (const VBoxMachineDataChangeEvent &e)
void machineDataChanged (const VBoxMachineDataChangeEvent &e)
void machineRegistered (const VBoxMachineRegisteredEvent &e)
void machineRegistered (const VBoxMachineRegisteredEvent &e)
void machineStateChanged (const VBoxMachineStateChangeEvent &e)
void machineStateChanged (const VBoxMachineStateChangeEvent &e)
void mediaEnumFinished (const VBoxMediaList &aList)
void mediaEnumStarted ()
void mediumAdded (const VBoxMedium &)
void mediumAdded (const VBoxMedium &)
void mediumEnumerated (const VBoxMedium &aMedum)
void mediumEnumerated (const VBoxMedium &aMedum, int aIndex)
void mediumEnumFinished (const VBoxMediaList &aList)
void mediumEnumStarted ()
void mediumRemoved (VBoxDefs::MediaType, const QUuid &)
void mediumRemoved (VBoxDefs::MediaType, const QUuid &)
void mediumUpdated (const VBoxMedium &)
void mediumUpdated (const VBoxMedium &)
void sessionStateChanged (const VBoxSessionStateChangeEvent &e)
void sessionStateChanged (const VBoxSessionStateChangeEvent &e)
void snapshotChanged (const VBoxSnapshotEvent &e)
void snapshotChanged (const VBoxSnapshotEvent &e)

Public Member Functions

void addMedium (const VBoxMedium &)
void addMedium (const VBoxMedium &)
bool checkForAutoConvertedSettings (bool aAfterRefresh=false)
bool checkForAutoConvertedSettings ()
void checkForAutoConvertedSettingsAfterRefresh ()
void cleanup ()
void cleanup ()
QStringList COMPortNames () const
QStringList COMPortNames () const
VBoxConsoleWndconsoleWnd ()
VBoxConsoleWndconsoleWnd ()
const VBoxMediaList & currentMediaList () const
const VBoxMediaList & currentMediaList () const
QString details (const CUSBDevice &aDevice) const
QString details (const CHardDisk2 &aHD, bool aPredictDiff)
QString details (const CUSBDevice &aDevice) const
QString details (const CHardDisk2 &aHD, bool aPredictDiff)
QString detailsReport (const CMachine &aMachine, bool aIsNewVM, bool aWithLinks)
QString detailsReport (const CMachine &aMachine, bool aIsNewVM, bool aWithLinks)
QStringList deviceTypeStrings () const
QStringList deviceTypeStrings () const
QPixmap errorIcon () const
QPixmap errorIcon () const
bool findMedium (const CMedium &, VBoxMedium &) const
bool findMedium (const CMedium &, VBoxMedium &) const
VBoxMedium getMedium (const CMedium &aObj) const
VBoxMedium getMedium (const CMedium &aObj) const
QString hardDiskTypeString (const CHardDisk2 &aHD) const
QString hardDiskTypeString (const CHardDisk2 &aHD) const
QString helpFile () const
bool isDebuggerAutoShowEnabled () const
bool isMediaEnumerationStarted () const
bool isMediaEnumerationStarted () const
bool isValid ()
bool isValid ()
bool isVMConsoleProcess () const
bool isVMConsoleProcess () const
void languageChange ()
QString languageCountry () const
QString languageCountry () const
QString languageCountryEnglish () const
QString languageCountryEnglish () const
QString languageName () const
QString languageName () const
QString languageNameEnglish () const
QString languageNameEnglish () const
QString languageTranslators () const
QString languageTranslators () const
QStringList LPTPortNames () const
QStringList LPTPortNames () const
QWidget * mainWindow () const
int mainWindowCount ()
QUuid managedVMUuid () const
QUuid managedVMUuid () const
CSession openExistingSession (const QUuid &aId)
CSession openExistingSession (const QUuid &aId)
CSession openSession (const QUuid &aId, bool aExisting=false)
CSession openSession (const QUuid &aId, bool aExisting=false)
QString platformInfo ()
void removeMedium (VBoxDefs::MediaType, const QUuid &)
void removeMedium (VBoxDefs::MediaType, const QUuid &)
void retranslateUi ()
VBoxSelectorWndselectorWnd ()
VBoxSelectorWndselectorWnd ()
void setMainWindow (QWidget *aMainWindow)
bool setSettings (const VBoxGlobalSettings &gs)
bool setSettings (const VBoxGlobalSettings &gs)
const VBoxGlobalSettingssettings () const
const VBoxGlobalSettingssettings () const
QPixmap snapshotIcon (bool online) const
QPixmap snapshotIcon (bool online) const
void startEnumeratingMedia ()
void startEnumeratingMedia ()
bool startMachine (const QUuid &id)
bool startMachine (const QUuid &id)
KAudioControllerType toAudioControllerType (const QString &s) const
KAudioControllerType toAudioControllerType (const QString &s) const
KAudioDriverType toAudioDriverType (const QString &s) const
KAudioDriverType toAudioDriverType (const QString &s) const
KClipboardMode toClipboardModeType (const QString &s) const
KClipboardMode toClipboardModeType (const QString &s) const
const QColor & toColor (KMachineState s) const
const QColor & toColor (KMachineState s) const
QString toCOMPortName (ulong aIRQ, ulong aIOBase) const
QString toCOMPortName (ulong aIRQ, ulong aIOBase) const
bool toCOMPortNumbers (const QString &aName, ulong &aIRQ, ulong &aIOBase) const
bool toCOMPortNumbers (const QString &aName, ulong &aIRQ, ulong &aIOBase) const
KDeviceType toDeviceType (const QString &s) const
KDeviceType toDeviceType (const QString &s) const
QString toFullString (KStorageBus aBus, LONG aChannel, LONG aDevice) const
QString toFullString (KStorageBus aBus, LONG aChannel, LONG aDevice) const
QPixmap toIcon (KMachineState s) const
QPixmap toIcon (KMachineState s) const
KIDEControllerType toIDEControllerType (const QString &s) const
KIDEControllerType toIDEControllerType (const QString &s) const
QString toLPTPortName (ulong aIRQ, ulong aIOBase) const
QString toLPTPortName (ulong aIRQ, ulong aIOBase) const
bool toLPTPortNumbers (const QString &aName, ulong &aIRQ, ulong &aIOBase) const
bool toLPTPortNumbers (const QString &aName, ulong &aIRQ, ulong &aIOBase) const
KNetworkAdapterType toNetworkAdapterType (const QString &s) const
KNetworkAdapterType toNetworkAdapterType (const QString &s) const
KNetworkAttachmentType toNetworkAttachmentType (const QString &s) const
KNetworkAttachmentType toNetworkAttachmentType (const QString &s) const
QString toolTip (const CUSBDeviceFilter &aFilter) const
QString toolTip (const CUSBDevice &aDevice) const
QString toolTip (const CUSBDevice &aDevice) const
KPortMode toPortMode (const QString &s) const
KPortMode toPortMode (const QString &s) const
KStorageBus toStorageBusType (const QString &aBus) const
KStorageBus toStorageBusType (const QString &aBus) const
LONG toStorageChannel (KStorageBus aBus, const QString &aChannel) const
LONG toStorageChannel (KStorageBus aBus, const QString &aChannel) const
LONG toStorageDevice (KStorageBus aBus, LONG aChannel, const QString &aDevice) const
LONG toStorageDevice (KStorageBus aBus, LONG aChannel, const QString &aDevice) const
QString toString (KUSBDeviceState aState) const
QString toString (KNetworkAttachmentType t) const
QString toString (KNetworkAdapterType t) const
QString toString (KAudioControllerType t) const
QString toString (KAudioDriverType t) const
QString toString (KDeviceType t) const
QString toString (KIDEControllerType t) const
QString toString (KClipboardMode t) const
QString toString (KUSBDeviceFilterAction t) const
QString toString (KPortMode t) const
QString toString (KVRDPAuthType t) const
QString toString (KHardDiskType t) const
QString toString (KStorageBus aBus, LONG aChannel, LONG aDevice) const
QString toString (KStorageBus aBus, LONG aChannel) const
QString toString (KStorageBus aBus) const
QString toString (KSessionState s) const
QString toString (KMachineState s) const
QString toString (KUSBDeviceState aState) const
QString toString (KNetworkAttachmentType t) const
QString toString (KNetworkAdapterType t) const
QString toString (KAudioControllerType t) const
QString toString (KAudioDriverType t) const
QString toString (KDeviceType t) const
QString toString (KIDEControllerType t) const
QString toString (KClipboardMode t) const
QString toString (KUSBDeviceFilterAction t) const
QString toString (KPortMode t) const
QString toString (KVRDPAuthType t) const
QString toString (KHardDiskType t) const
QString toString (KStorageBus aBus, LONG aChannel, LONG aDevice) const
QString toString (KStorageBus aBus, LONG aChannel) const
QString toString (KStorageBus aBus) const
QString toString (KSessionState s) const
QString toString (KMachineState s) const
KUSBDeviceFilterAction toUSBDevFilterAction (const QString &s) const
KUSBDeviceFilterAction toUSBDevFilterAction (const QString &s) const
KVRDPAuthType toVRDPAuthType (const QString &s) const
KVRDPAuthType toVRDPAuthType (const QString &s) const
void updateMedium (const VBoxMedium &)
void updateMedium (const VBoxMedium &)
QString versionString ()
QString versionString ()
CVirtualBox virtualBox () const
CVirtualBox virtualBox () const
QList< CGuestOSType > vmGuestOSFamilyList () const
CGuestOSType vmGuestOSType (const QString &aTypeId, const QString &aFamilyId=QString::null) const
CGuestOSType vmGuestOSType (int aIndex) const
QString vmGuestOSTypeDescription (const QString &aTypeId) const
QString vmGuestOSTypeDescription (const QString &aId) const
QStringList vmGuestOSTypeDescriptions () const
QPixmap vmGuestOSTypeIcon (const QString &aTypeId) const
QPixmap vmGuestOSTypeIcon (const QString &aId) const
int vmGuestOSTypeIndex (const QString &aId) const
QList< CGuestOSType > vmGuestOSTypeList (const QString &aFamilyId) const
VBoxDefs::RenderMode vmRenderMode () const
VBoxDefs::RenderMode vmRenderMode () const
const char * vmRenderModeStr () const
const char * vmRenderModeStr () const
QPixmap warningIcon () const
QPixmap warningIcon () const

Static Public Member Functions

static bool activateWindow (WId aWId, bool aSwitchDesktop=true)
static bool activateWindow (WId aWId, bool aSwitchDesktop=true)
static void adoptLabelPixmap (QLabel *)
static void adoptLabelPixmap (QLabel *)
static void centerWidget (QWidget *aWidget, QWidget *aRelative, bool aCanResize=true)
static void centerWidget (QWidget *aWidget, QWidget *aRelative, bool aCanResize=true)
static QChar decimalSep ()
static QChar decimalSep ()
static QString extractKeyFromActionText (const QString &aText)
static QWidget * findWidget (QWidget *aParent, const char *aName, const char *aClassName=NULL, bool aRecursive=false)
static QWidget * findWidget (QWidget *aParent, const char *aName, const char *aClassName=NULL, bool aRecursive=false)
static QString formatSize (quint64 aSize, uint aDecimal=2, VBoxDefs::FormatSize aMode=VBoxDefs::FormatSize_Round)
static QString formatSize (Q_UINT64, int aMode=0)
static QString getExistingDirectory (const QString &aDir, QWidget *aParent, const QString &aCaption=QString::null, bool aDirOnly=TRUE, bool resolveSymlinks=TRUE)
static QString getExistingDirectory (const QString &aDir, QWidget *aParent, const char *aName=0, const QString &aCaption=QString::null, bool aDirOnly=TRUE, bool resolveSymlinks=TRUE)
static QString getFirstExistingDir (const QString &)
static QString getFirstExistingDir (const QString &)
static QString getOpenFileName (const QString &aStartWith, const QString &aFilters, QWidget *aParent, const QString &aCaption, QString *aSelectedFilter=NULL, bool aResolveSymLinks=true)
static QString getOpenFileName (const QString &, const QString &, QWidget *, const char *, const QString &, QString *defaultFilter=0, bool resolveSymLinks=true)
static QStringList getOpenFileNames (const QString &aStartWith, const QString &aFilters, QWidget *aParent, const QString &aCaption, QString *aSelectedFilter=NULL, bool aResolveSymLinks=true, bool aSingleFile=false)
static QList< QPair< QString,
QString > > 
HDDBackends ()
static QString highlight (const QString &aStr, bool aToolTip=false)
static QString highlight (const QString &aStr, bool aToolTip=false)
static QIcon iconSet (const char *aNormal, const char *aDisabled=NULL, const char *aActive=NULL)
static QIconSet iconSet (const char *aNormal, const char *aDisabled=0, const char *aActive=0)
static QIconSet iconSetEx (const char *aNormal, const char *aSmallNormal, const char *aDisabled=0, const char *aSmallDisabled=0, const char *aActive=0, const char *aSmallActive=0)
static QIcon iconSetFull (const QSize &aNormalSize, const QSize &aSmallSize, const char *aNormal, const char *aSmallNormal, const char *aDisabled=NULL, const char *aSmallDisabled=NULL, const char *aActive=NULL, const char *aSmallActive=NULL)
static QString insertKeyToActionText (const QString &aText, const QString &aKey)
static VBoxGlobalinstance ()
static VBoxGlobalinstance ()
static bool isDOSType (const QString &aOSTypeId)
static bool isDOSType (const QString &aOSTypeId)
static QPixmap joinPixmaps (const QPixmap &aPM1, const QPixmap &aPM2)
static QPixmap joinPixmaps (const QPixmap &aPM1, const QPixmap &aPM2)
static QString languageId ()
static QString languageId ()
static void loadLanguage (const QString &aLangId=QString::null)
static void loadLanguage (const QString &aLangId=QString::null)
static QString locationForHTML (const QString &aFileName)
static QString locationForHTML (const QString &aFileName)
static QRect normalizeGeometry (const QRect &aRect, const QRect &aBoundRect, bool aCanResize=true)
static QRect normalizeGeometry (const QRect &aRect, const QRect &aBoundRect, bool aCanResize=true)
static quint64 parseSize (const QString &)
static Q_UINT64 parseSize (const QString &)
static QString removeAccelMark (const QString &aText)
static QString removeAccelMark (const QString &aText)
static quint64 requiredVideoMemory (CMachine *aMachine=0)
static void setLayoutMargin (QLayout *aLayout, int aMargin)
static void setTextLabel (QToolButton *aToolButton, const QString &aTextLabel)
static void setTextLabel (QToolButton *aToolButton, const QString &aTextLabel)
static QString sizeRegexp ()
static QString sizeRegexp ()
static QIcon standardIcon (QStyle::StandardPixmap aStandard, QWidget *aWidget=NULL)
static QString systemLanguageId ()
static QString systemLanguageId ()

Protected Member Functions

bool event (QEvent *e)
bool event (QEvent *e)
bool eventFilter (QObject *, QEvent *)
bool eventFilter (QObject *, QEvent *)

Private Member Functions

void init ()
void init ()

Private Attributes

QULongStringMap audioControllerTypes
QULongStringMap audioDriverTypes
CVirtualBoxCallback callback
QULongStringMap clipboardTypes
bool detailReportTemplatesReady
QULongStringMap deviceTypes
QULongStringMap diskTypes
QString diskTypes_Differencing
VBoxGlobalSettings gset
QULongStringMap ideControllerTypes
QULongStringMap machineStates
QULongStringHash mAudioControllerTypes
QULongStringHash mAudioDriverTypes
QULongStringHash mClipboardTypes
VBoxConsoleWndmConsoleWnd
bool mDetailReportTemplatesReady
QULongStringHash mDeviceTypes
QULongStringHash mDiskTypes
QString mDiskTypes_Differencing
QPixmap mErrorIcon
QList< QString > mFamilyIDs
QULongStringHash mIDEControllerTypes
QULongStringHash mMachineStates
QWidget * mMainWindow
QThread * mMediaEnumThread
VBoxMediaList mMediaList
QULongStringHash mNetworkAdapterTypes
QULongStringHash mNetworkAttachmentTypes
QPixmap mOfflineSnapshotIcon
QPixmap mOnlineSnapshotIcon
QHash< QString, QPixmap * > mOsTypeIcons
QULongStringHash mPortModeTypes
VBoxSelectorWndmSelectorWnd
QULongStringHash mSessionStates
QIntDict< QPixmap > mStateIcons
QLongStringHash mStorageBusChannels
QLongStringHash mStorageBusDevices
QULongStringHash mStorageBuses
QList< QList< CGuestOSType > > mTypes
VBoxUpdateDlg * mUpdDlg
QULongStringHash mUSBDeviceStates
QULongStringHash mUSBFilterActionTypes
QString mUserDefinedPortName
bool mValid
CVirtualBox mVBox
QString mVerString
QHash< ulong, QColor * > mVMStateColors
QHash< ulong, QPixmap * > mVMStateIcons
QULongStringHash mVRDPAuthTypes
QPixmap mWarningIcon
QULongStringMap networkAdapterTypes
QULongStringMap networkAttachmentTypes
QULongStringMap portModeTypes
QULongStringMap sessionStates
QLongStringMap storageBusChannels
QLongStringMap storageBusDevices
QULongStringMap storageBuses
QULongStringMap USBDeviceStates
QULongStringMap usbFilterActionTypes
QString verString
QDict< QPixmap > vm_os_type_icons
QValueVector< CGuestOSType > vm_os_types
VBoxDefs::RenderMode vm_render_mode
const char * vm_render_mode_str
QIntDict< QColor > vm_state_color
QUuid vmUuid
QULongStringMap vrdpAuthTypes

Friends

class VBoxCallback
VBoxGlobalvboxGlobal ()
VBoxGlobalvboxGlobal ()

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

Generated by  Doxygen 1.6.0   Back to index