VBoxVMListBox.h revision b9042bb7a5efd07d617a8a7d812b669d75682779
d25f483469fdeb2ca813928eec854375b2eb65cdnd * VBox frontends: Qt GUI ("VirtualBox"):
d25f483469fdeb2ca813928eec854375b2eb65cdnd * VBoxVMListBox, VBoxVMListBoxItem class declarations
db878466c5e95073429dda0bdd001f45e9486e16fielding * Copyright (C) 2006 InnoTek Systemberatung GmbH
db878466c5e95073429dda0bdd001f45e9486e16fielding * This file is part of VirtualBox Open Source Edition (OSE), as
db878466c5e95073429dda0bdd001f45e9486e16fielding * available from http://www.virtualbox.org. This file is free software;
db878466c5e95073429dda0bdd001f45e9486e16fielding * you can redistribute it and/or modify it under the terms of the GNU
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end * General Public License as published by the Free Software Foundation,
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end * distribution. VirtualBox OSE is distributed in the hope that it will
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end * be useful, but WITHOUT ANY WARRANTY of any kind.
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end * If you received this file as part of a commercial VirtualBox
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end * distribution, then only the terms of your commercial VirtualBox
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end * license agreement apply instead of the previous paragraph.
117a9c5156c08125e2060ff892adac4634b7ad2dnd * The VBoxVMListBox class is a visual representation of the list of
1cb160a981947e75a8353da3fe40a653aa87100eslive * existing VMs in the VBox GUI.
d25f483469fdeb2ca813928eec854375b2eb65cdnd * Every item in the list box is an instance of the VBoxVMListBoxItem
1cb160a981947e75a8353da3fe40a653aa87100eslive VBoxVMListBox (QWidget *aParent = 0, const char *aName = NULL,
1cb160a981947e75a8353da3fe40a653aa87100eslive return aS == CEnums::SessionClosed ? font() : mStateBusyFont;
4930be147adf9e3f6d3ca9313a6524f9bf654b2dnd * The VBoxVMListBoxItem class is a visual representation of the virtual
4930be147adf9e3f6d3ca9313a6524f9bf654b2dnd * machine in the VBoxVMListBox widget.
4930be147adf9e3f6d3ca9313a6524f9bf654b2dnd * It holds a CMachine instance (passed to the constructor) to
4930be147adf9e3f6d3ca9313a6524f9bf654b2dnd * get an access to various VM data.
4930be147adf9e3f6d3ca9313a6524f9bf654b2dnd VBoxVMListBoxItem (VBoxVMListBox *aLB, const CMachine &aM);
1cb160a981947e75a8353da3fe40a653aa87100eslive const CVirtualBoxErrorInfo &accessError() const { return mAccessError; }
d25f483469fdeb2ca813928eec854375b2eb65cdnd /* cached machine data (to minimize server requests) */