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; }
157 ZyppService
zyppService()
const {
return _zyppService; }
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 filterIfVisible()
Same as filter(), but only if this widget is currently visible.
void filter()
Filter according to the view's rules and current selection.
void filterNearMatch(ZyppSel selectable, ZyppPkg pkg)
Emitted during filtering for each pkg that matches the filter and the candidate package does not come...
void filterFinished()
Emitted when filtering is finished.
void fillList()
Fill the list.
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...
YQPkgServiceListItem(YQPkgServiceList *parentList, ZyppService service, const zypp::RepoManager &mgr)
Constructor.
virtual ~YQPkgServiceListItem()
Destructor.
YQPkgServiceListItem * selection() const
Returns the currently selected item or 0 if there is none.
std::string zyppServiceName() const
Returns the ZYPP service name this item corresponds to.
A widget to display a list of libzypp services.
void addService(ZyppService service, const zypp::RepoManager &mgr)
Add a service to the list.
ZyppService zyppService() const
Returns the ZYPP service this item corresponds to (its alias)
const YQPkgServiceList * serviceList() const
Returns the parent list.
void filterMatch(ZyppSel selectable, ZyppPkg pkg)
Emitted during filtering for each pkg that matches the filter and the candidate package comes from th...
YQPkgServiceList(QWidget *parent)
Constructor.
virtual ~YQPkgServiceList()
Destructor.