Changeset 548 in vbox for trunk/src/VBox/Frontends/VirtualBox/include/VBoxMediaComboBox.h
- Timestamp:
- Feb 2, 2007 1:57:12 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxMediaComboBox.h
r382 r548 27 27 28 28 #include <qcombobox.h> 29 #include <quuid.h>30 29 31 30 class QListBoxItem; … … 37 36 public: 38 37 39 VBoxMediaComboBox (QWidget *aParent = 0, 40 const char *aName = 0, int aType = 0);38 VBoxMediaComboBox (QWidget *aParent = 0, const char *aName = 0, 39 int aType = 0, bool aUseEmptyItem = false); 41 40 ~VBoxMediaComboBox() {} 42 41 43 42 void refresh(); 44 void appendItem (const QString &, const QUuid &, const QString &);45 void replaceItem (int, const QString &, const QString &);46 void removeLastItem();47 void setReadyForRefresh();48 void setRequiredItem (const QUuid &);49 43 void setUseEmptyItem (bool); 50 44 void setBelongsTo (const QUuid &); 51 45 QUuid getId(); 52 46 QUuid getBelongsTo(); 53 void setCurrentItem (int);47 void setCurrentItem (const QUuid &); 54 48 55 49 protected slots: 56 50 57 void mediaEnumerated (const VBoxMedia &); 58 void listEnumerated (const VBoxMediaList &); 51 void mediaEnumStarted(); 52 void mediaEnumerated (const VBoxMedia &, int); 53 void mediaEnumFinished (const VBoxMediaList &); 54 void mediaAdded (const VBoxMedia &); 55 void mediaUpdated (const VBoxMedia &); 56 void mediaRemoved (VBoxDefs::DiskType, const QUuid &); 59 57 void processOnItem (QListBoxItem *); 60 void updateToolTip(int);58 void processActivated (int); 61 59 62 60 protected: 63 61 64 void loadCleanContent(); 65 int updateMedia (const QString &, const QUuid &, const QString &, 66 VBoxMedia::Status); 62 void updateToolTip (int); 63 void setCurrentItem (int); 64 void processMedia (const VBoxMedia &); 65 void processHdMedia (const VBoxMedia &); 66 void processCdMedia (const VBoxMedia &); 67 void processFdMedia (const VBoxMedia &); 68 void appendItem (const QString &, const QUuid &, 69 const QString &, QPixmap *); 70 void replaceItem (int, const QString &, 71 const QString &, QPixmap *); 72 void updateShortcut (const QString &, const QUuid &, const QString &, 73 VBoxMedia::Status); 67 74 68 75 int mType; … … 72 79 QUuid mRequiredId; 73 80 bool mUseEmptyItem; 74 bool mToBeRefreshed; 81 QPixmap mPmInacc; 82 QPixmap mPmError; 75 83 }; 76 84
Note:
See TracChangeset
for help on using the changeset viewer.