+
+// ================================================================
+/*!
+ * ProductsView::hasBinaries
+ * Returns true if product supports "binaries" installation mode
+ */
+// ================================================================
+bool ProductsView::hasBinaries( QCheckListItem* item ) const
+{
+ if ( item->childCount() > 0 ) {
+ QCheckListItem* subItem = (QCheckListItem*)( item->firstChild() );
+ while( subItem ) {
+ if ( subItem->text() == tr( "install binaries" ) )
+ return true;
+ subItem = (QCheckListItem*)( subItem->nextSibling() );
+ }
+ }
+ return false;
+}
+
+// ================================================================
+/*!
+ * ProductsView::hasSources
+ * Returns true if product supports "sources" installation mode
+ */
+// ================================================================
+bool ProductsView::hasSources( QCheckListItem* item ) const
+{
+ if ( item->childCount() > 0 ) {
+ QCheckListItem* subItem = (QCheckListItem*)( item->firstChild() );
+ while( subItem ) {
+ if ( subItem->text() == tr( "install sources" ) )
+ return true;
+ subItem = (QCheckListItem*)( subItem->nextSibling() );
+ }
+ }
+ return false;
+}
+
+// ================================================================
+/*!
+ * ProductsView::hasNative
+ * Returns true if product supports "native" installation mode
+ */
+// ================================================================
+bool ProductsView::hasNative( QCheckListItem* item ) const
+{
+ if ( item->childCount() > 0 ) {
+ QCheckListItem* subItem = (QCheckListItem*)( item->firstChild() );
+ while( subItem ) {
+ if ( subItem->text() == tr( "use native" ) )
+ return true;
+ subItem = (QCheckListItem*)( subItem->nextSibling() );
+ }
+ }
+ return false;
+}