22 #ifndef YQPkgServiceList_h 23 #define YQPkgServiceList_h 27 #include "QY2ListView.h" 28 #include <zypp/Product.h> 37 typedef std::string ZyppService;
79 void addService( ZyppService service,
const zypp::RepoManager &mgr );
85 int nameCol()
const {
return _nameCol; }
178 int nameCol()
const {
return _serviceList->nameCol(); }
180 virtual bool operator< (
const QTreeWidgetItem & other )
const;
187 ZyppService _zyppService;
188 std::string _zyppServiceName;
192 #endif // ifndef YQPkgServiceList_h void filterStart()
Emitted when the filtering starts.
void filter()
Filter according to the view's rules and current selection.
ZyppService zyppService() const
Returns the ZYPP service this item corresponds to (its alias)
virtual ~YQPkgServiceList()
Destructor.
std::string zyppServiceName() const
Returns the ZYPP service name this item corresponds to.
const YQPkgServiceList * serviceList() const
Returns the parent list.
virtual ~YQPkgServiceListItem()
Destructor.
void filterIfVisible()
Same as filter(), but only if this widget is currently visible.
void filterNearMatch(ZyppSel selectable, ZyppPkg pkg)
Emitted during filtering for each pkg that matches the filter and the candidate package does not come...
YQPkgServiceList(QWidget *parent)
Constructor.
void filterFinished()
Emitted when filtering is finished.
A widget to display a list of libzypp services.
static ZyppProduct singleProduct(ZyppService service)
Returns the product on a source if it has one single product or 0 if there are no or multiple product...
void fillList()
Fill the list.
void addService(ZyppService service, const zypp::RepoManager &mgr)
Add a service to the list.
YQPkgServiceListItem * selection() const
Returns the currently selected item or 0 if there is none.
YQPkgServiceListItem(YQPkgServiceList *parentList, ZyppService service, const zypp::RepoManager &mgr)
Constructor.
void filterMatch(ZyppSel selectable, ZyppPkg pkg)
Emitted during filtering for each pkg that matches the filter and the candidate package comes from th...