VBoxVMListBox.h revision 8626efb77a54075699c0d56747b4236cd92ba0fe
/** @file
*
* VBox frontends: Qt GUI ("VirtualBox"):
* VBoxVMListBox, VBoxVMListBoxItem class declarations
*/
/*
* Copyright (C) 2006 InnoTek Systemberatung GmbH
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License as published by the Free Software Foundation,
* in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
* distribution. VirtualBox OSE is distributed in the hope that it will
* be useful, but WITHOUT ANY WARRANTY of any kind.
*
* If you received this file as part of a commercial VirtualBox
* distribution, then only the terms of your commercial VirtualBox
* license agreement apply instead of the previous paragraph.
*/
#ifndef __VBoxVMListBox_h__
#define __VBoxVMListBox_h__
#include "COMDefs.h"
#include "VBoxSelectorWnd.h"
#include "VBoxGlobal.h"
#include <qlistbox.h>
#include <qfont.h>
#include <qdatetime.h>
struct QUuid;
/**
*
* The VBoxVMListBox class is a visual representation of the list of
* existing VMs in the VBox GUI.
*
* Every item in the list box is an instance of the VBoxVMListBoxItem
* class.
*/
{
virtual ~VBoxVMListBox();
{
}
void refresh();
const QColorGroup &activeColorGroup() const;
int mMargin;
bool mGaveFocusToPopup;
};
/**
*
* The VBoxVMListBoxItem class is a visual representation of the virtual
* machine in the VBoxVMListBox widget.
*
* It holds a CMachine instance (passed to the constructor) to
* get an access to various VM data.
*/
{
VBoxVMListBox *vmListBox() const
{
}
void recache();
QString toolTipText() const;
bool accessible() const { return mAccessible; }
bool switchTo();
/* cached machine data (to minimize server requests) */
bool mAccessible;
};
#endif // __VBoxVMListItem_h__