libyui-ncurses-pkg
 
Loading...
Searching...
No Matches
NCPkgRepoTable Class Reference
Inheritance diagram for NCPkgRepoTable:
Collaboration diagram for NCPkgRepoTable:

Public Member Functions

 NCPkgRepoTable (YWidget *parent, YTableHeader *tableHeader, NCPackageSelector *pkg)
 
virtual void addLine (ZyppRepo r, const std::vector< std::string > &cols)
 
void fillHeader ()
 
NCPkgRepoTaggetTag (const int &index)
 
ZyppRepo getRepo (int index)
 
std::string showDescription (ZyppRepo r)
 
virtual NCursesEvent wHandleInput (wint_t ch)
 
ZyppProduct findProductForRepo (ZyppRepo repo)
 
bool fillRepoList ()
 
bool showRepoPackages ()
 

Constructor & Destructor Documentation

◆ NCPkgRepoTable()

NCPkgRepoTable::NCPkgRepoTable ( YWidget * parent,
YTableHeader * tableHeader,
NCPackageSelector * pkg )

A helper class to hold repository data in a neat table widget

Parameters
parentA parent widget
optWidget options

Member Function Documentation

◆ addLine()

void NCPkgRepoTable::addLine ( ZyppRepo r,
const std::vector< std::string > & cols )
virtual

Add one line (with tag) to the repositories table

Parameters
ZyppRepoReference to zypp::Repository
colsString std::vector with repository data (name + URL)

◆ fillRepoList()

bool NCPkgRepoTable::fillRepoList ( )

Add items to the repository list (assoc. product name, if any, and URL)

Returns
bool (always true;-) )

◆ findProductForRepo()

ZyppProduct NCPkgRepoTable::findProductForRepo ( ZyppRepo repo)

Find single zypp::Product for this repository (null product if multiple products found)

Parameters
repozypp::Repository
Returns
ZyppProduct

◆ getRepo()

ZyppRepo NCPkgRepoTable::getRepo ( int index)

Get repository reference from selected line's tag

Parameters
indexIndex of selected table line
Returns
ZyppRepo Associated zypp::Repository reference

◆ getTag()

NCPkgRepoTag * NCPkgRepoTable::getTag ( const int & index)

Get tag of repository table line on current index, ( contains repository reference)

Parameters
indexIndex of selected table line
Returns
NCPkgRepoTag* Tag of selected line

The documentation for this class was generated from the following files: