VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/include/VBoxMediaComboBox.h@ 1

Last change on this file since 1 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1/** @file
2 *
3 * VBox frontends: Qt GUI ("VirtualBox"):
4 * VBoxMediaComboBox class declaration
5 */
6
7/*
8 * Copyright (C) 2006 InnoTek Systemberatung GmbH
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.215389.xyz. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License as published by the Free Software Foundation,
14 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
15 * distribution. VirtualBox OSE is distributed in the hope that it will
16 * be useful, but WITHOUT ANY WARRANTY of any kind.
17 *
18 * If you received this file as part of a commercial VirtualBox
19 * distribution, then only the terms of your commercial VirtualBox
20 * license agreement apply instead of the previous paragraph.
21 */
22
23#ifndef __VBoxMediaComboBox_h__
24#define __VBoxMediaComboBox_h__
25
26#include <qcombobox.h>
27#include <quuid.h>
28
29struct VBoxMedia;
30typedef QValueList <VBoxMedia> VBoxMediaList;
31
32class VBoxMediaComboBox : public QComboBox
33{
34 Q_OBJECT
35
36public:
37
38 VBoxMediaComboBox (QWidget *aParent = 0,
39 const char *aName = 0, int aType = 0);
40 ~VBoxMediaComboBox () {}
41
42 void refresh();
43 QUuid getId();
44 void appendItem (const QString&, const QUuid&);
45 void removeLastItem();
46 void setRequiredItem (const QUuid&);
47 void setUseEmptyItem (bool);
48 void setReadyForRefresh();
49 void setBelongsTo (const QUuid&);
50 QUuid getBelongsTo();
51 void loadShortCuts (const QStringList&, const QStringList&);
52
53protected slots:
54
55 void updateShortcuts (const VBoxMediaList &);
56
57protected:
58
59 int mType;
60 QStringList mUuidList;
61 QUuid mMachineId;
62 QUuid mRequiredId;
63 bool mUseEmptyItem;
64 bool mToBeRefreshed;
65 bool mWasEnabled;
66};
67
68#endif /* __VBoxMediaComboBox_h__ */
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette