libyui-ncurses-pkg  2.46.1
 All Classes Functions
NCPkgRepoTable Class Reference
Inheritance diagram for NCPkgRepoTable:
Collaboration diagram for NCPkgRepoTable:

Public Member Functions

 NCPkgRepoTable (YWidget *parent, YTableHeader *tableHeader, NCPackageSelector *pkg)
 A helper class to hold repository data in a neat table widget. More...
 
virtual void addLine (ZyppRepo r, const std::vector< std::string > &cols)
 Add one line (with tag) to the repositories table. More...
 
void fillHeader ()
 
NCPkgRepoTaggetTag (const int &index)
 Get tag of repository table line on current index, ( contains repository reference) More...
 
ZyppRepo getRepo (int index)
 Get repository reference from selected line's tag. More...
 
std::string showDescription (ZyppRepo r)
 
virtual NCursesEvent wHandleInput (wint_t ch)
 
ZyppProduct findProductForRepo (ZyppRepo repo)
 Find single zypp::Product for this repository (null product if multiple products found) More...
 
bool fillRepoList ()
 Add items to the repository list (assoc. More...
 
bool showRepoPackages ()
 

Detailed Description

Definition at line 92 of file NCPkgFilterRepo.h.

Constructor & Destructor Documentation

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

Definition at line 84 of file NCPkgFilterRepo.cc.

Here is the call graph for this function:

Member Function Documentation

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)

Definition at line 121 of file NCPkgFilterRepo.cc.

bool NCPkgRepoTable::fillRepoList ( )

Add items to the repository list (assoc.

product name, if any, and URL)

Returns
bool (always true ;-) )

Definition at line 219 of file NCPkgFilterRepo.cc.

Here is the call graph for this function:

ZyppProduct NCPkgRepoTable::findProductForRepo ( ZyppRepo  repo)

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

Parameters
repozypp::Repository
Returns
ZyppProduct

Definition at line 290 of file NCPkgFilterRepo.cc.

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

Definition at line 177 of file NCPkgFilterRepo.cc.

Here is the call graph for this function:

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

Definition at line 151 of file NCPkgFilterRepo.cc.


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