VBoxMediaComboBox.h revision fc148a6b23d25a87561beaffe0ba06c3ba93bf5a
/** @file
*
* VBox frontends: Qt GUI ("VirtualBox"):
* VBoxMediaComboBox class declaration
*/
/*
* Copyright (C) 2006-2007 Sun Microsystems, Inc.
*
* 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 (GPL) 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.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#ifndef __VBoxMediaComboBox_h__
#define __VBoxMediaComboBox_h__
#include "VBoxGlobal.h"
#include <QComboBox>
#include <QPixmap>
{
void refresh();
void repopulate();
void setNullItemPresent (bool aNullItemPresent);
void setShowDiffs (bool aShowDiffs);
bool showDiffs() const { return mShowDiffs; }
void mediumEnumStarted();
void mediumEnumerated (const VBoxMedium &);
void mediumAdded (const VBoxMedium &);
void mediumUpdated (const VBoxMedium &);
void processActivated (int aIndex);
// void processIndexChanged (int aIndex);
void addNoMediaItem();
void updateToolTip (int);
void appendItem (const VBoxMedium &);
void replaceItem (int, const VBoxMedium &);
/** Obtruncated VBoxMedium structure. */
struct Medium
{
Medium() {}
};
bool mShowDiffs : 1;
bool mNullItemPresent : 1;
};
#endif /* __VBoxMediaComboBox_h__ */