Lines Matching defs:UIMediumItem
59 class UIMediumItem : public QTreeWidgetItem
63 /** UIMediumItem type for rtti needs. */
67 UIMediumItem(const UIMedium &medium, QTreeWidget *pParent)
73 UIMediumItem(const UIMedium &medium, UIMediumItem *pParent)
220 /** UIMediumItem extension representing hard-disk item. */
221 class UIMediumItemHD : public UIMediumItem
227 : UIMediumItem(medium, pParent)
231 UIMediumItemHD(const UIMedium &medium, UIMediumItem *pParent)
232 : UIMediumItem(medium, pParent)
395 /** UIMediumItem extension representing optical-disk item. */
396 class UIMediumItemCD : public UIMediumItem
402 : UIMediumItem(medium, pParent)
478 /** UIMediumItem extension representing floppy-disk item. */
479 class UIMediumItemFD : public UIMediumItem
485 : UIMediumItem(medium, pParent)
562 /** Functor allowing to check if passed UIMediumItem is suitable by @a strID. */
570 /** Determines whether passed UIMediumItem is suitable by @a strID. */
571 bool isItSuitable(UIMediumItem *pItem) const { return pItem->id() == m_strID; }
576 /** Functor allowing to check if passed UIMediumItem is suitable by @a state. */
584 /** Determines whether passed UIMediumItem is suitable by @a state. */
585 bool isItSuitable(UIMediumItem *pItem) const { return pItem->state() == m_state; }
715 UIMediumItem *pMediumItem = createMediumItem(medium);
810 UIMediumItem *pMediumItem = currentMediumItem();
821 UIMediumItem *pMediumItem = currentMediumItem();
836 UIMediumItem *pMediumItem = currentMediumItem();
847 UIMediumItem *pMediumItem = currentMediumItem();
1339 if (UIMediumItem *pMediumItem = mediumItem(UIMediumType_HardDisk))
1341 if (UIMediumItem *pMediumItem = mediumItem(UIMediumType_DVD))
1343 if (UIMediumItem *pMediumItem = mediumItem(UIMediumType_Floppy))
1387 UIMediumItem *pMediumItem = mediumItem(type);
1421 UIMediumItem *pMediumItem = currentMediumItem();
1489 void UIMediumManager::updateTabIcons(UIMediumItem *pMediumItem, Action action)
1558 UIMediumItem *pInaccessibleMediumItem = searchItem(pMediumItem->treeWidget(), lookForState, &ignoreID);
1599 UIMediumItem *pCurrentItem = mediumItem(UIMediumType_HardDisk);
1639 UIMediumItem *pCurrentItem = mediumItem(UIMediumType_DVD);
1672 UIMediumItem *pCurrentItem = mediumItem(UIMediumType_Floppy);
1860 UIMediumItem* UIMediumManager::createMediumItem(const UIMedium &medium)
1866 UIMediumItem *pMediumItem = 0;
1949 UIMediumItem* UIMediumManager::createHardDiskItem(const UIMedium &medium)
1959 UIMediumItem *pMediumItem = searchItem(pTreeWidget, CheckIfSuitableByID(medium.id()));
1968 UIMediumItem *pParentMediumItem = searchItem(pTreeWidget, CheckIfSuitableByID(medium.parentID()));
2009 UIMediumItem *pMediumItem = searchItem(treeWidget(type), CheckIfSuitableByID(medium.id()));
2037 UIMediumItem *pMediumItem = 0;
2091 UIMediumItem* UIMediumManager::mediumItem(UIMediumType type) const
2177 UIMediumItem* UIMediumManager::currentMediumItem() const
2236 UIMediumItem* UIMediumManager::searchItem(QTreeWidget *pTreeWidget, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException)
2247 UIMediumItem* UIMediumManager::searchItem(QTreeWidgetItem *pParentItem, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException)
2254 if (UIMediumItem *pMediumParentItem = toMediumItem(pParentItem))
2261 if (UIMediumItem *pMediumChildItem = toMediumItem(pParentItem->child(iChildIndex)))
2262 if (UIMediumItem *pRequiredMediumChildItem = searchItem(pMediumChildItem, condition, pException))
2270 bool UIMediumManager::checkMediumFor(UIMediumItem *pItem, Action action)
2319 UIMediumItem* UIMediumManager::toMediumItem(QTreeWidgetItem *pItem)
2321 /* Cast passed QTreeWidgetItem to UIMediumItem if possible: */
2322 return pItem && pItem->type() == UIMediumItem::Type ? static_cast<UIMediumItem*>(pItem) : 0;