41 #ifndef YQPkgRepoList_h
42 #define YQPkgRepoList_h
45 #include "QY2ListView.h"
46 #include <zypp/Repository.h>
47 #include <zypp/Product.h>
52 typedef zypp::Repository ZyppRepo;
106 int nameCol()
const {
return _nameCol; }
107 int urlCol()
const {
return _urlCol; }
198 int nameCol()
const {
return _repoList->nameCol(); }
199 int urlCol()
const {
return _repoList->urlCol(); }
201 virtual bool operator< (
const QTreeWidgetItem & other )
const;
211 #endif // ifndef YQPkgRepoList_h
void fillList()
Fill the list.
void filter()
Filter according to the view's rules and current selection.
static int countEnabledRepositories()
Returns the number of enabled repositories.
YQPkgRepoList(QWidget *parent)
Constructor.
void filterNearMatch(ZyppSel selectable, ZyppPkg pkg)
Emitted during filtering for each pkg that matches the filter and the candidate package does not come...
void filterStart()
Emitted when the filtering starts.
const YQPkgRepoList * repoList() const
Returns the parent list.
virtual ~YQPkgRepoList()
Destructor.
YQPkgRepoListItem * selection() const
Returns the currently selected item or 0 if there is none.
YQPkgRepoListItem(YQPkgRepoList *parentList, ZyppRepo repo)
Constructor.
void filterFinished()
Emitted when filtering is finished.
void filterMatch(ZyppSel selectable, ZyppPkg pkg)
Emitted during filtering for each pkg that matches the filter and the candidate package comes from th...
virtual ~YQPkgRepoListItem()
Destructor.
static ZyppProduct singleProduct(ZyppRepo repo)
Returns the product on a source if it has one single product or 0 if there are no or multiple product...
Display a list of zypp::Selection objects.
ZyppRepo zyppRepo() const
Returns the ZYPP repository this item corresponds to.
void addRepo(ZyppRepo repo)
Add a repository to the list.
void filterIfVisible()
Same as filter(), but only if this widget is currently visible.