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; }
182 ZyppRepo
zyppRepo()
const {
return _zyppRepo; }
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 addRepo(ZyppRepo repo)
Add a repository to the list.
virtual ~YQPkgRepoList()
Destructor.
void filterIfVisible()
Same as filter(), but only if this widget is currently visible.
void filterMatch(ZyppSel selectable, ZyppPkg pkg)
Emitted during filtering for each pkg that matches the filter and the candidate package comes from th...
void filterNearMatch(ZyppSel selectable, ZyppPkg pkg)
Emitted during filtering for each pkg that matches the filter and the candidate package does not come...
ZyppRepo zyppRepo() const
Returns the ZYPP repository this item corresponds to.
void fillList()
Fill the list.
YQPkgRepoListItem(YQPkgRepoList *parentList, ZyppRepo repo)
Constructor.
void filter()
Filter according to the view's rules and current selection.
YQPkgRepoList(QWidget *parent)
Constructor.
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...
virtual ~YQPkgRepoListItem()
Destructor.
void filterStart()
Emitted when the filtering starts.
const YQPkgRepoList * repoList() const
Returns the parent list.
static int countEnabledRepositories()
Returns the number of enabled repositories.
void filterFinished()
Emitted when filtering is finished.
Display a list of libzypp repositories.
YQPkgRepoListItem * selection() const
Returns the currently selected item or 0 if there is none.