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

Public Member Functions

 NCPkgServiceTable (YWidget *parent, YTableHeader *tableHeader, NCPackageSelector *pkg)
 
virtual void addLine (ZyppService r, const std::vector< std::string > &cols)
 
void fillHeader ()
 
NCPkgServiceTaggetTag (int index)
 
ZyppService getService (int index)
 
std::string getDescription (ZyppService r)
 
virtual NCursesEvent wHandleInput (wint_t ch)
 
bool fillServiceList ()
 
void showServicePackages ()
 

Static Public Member Functions

static bool any_service ()
 

Constructor & Destructor Documentation

◆ NCPkgServiceTable()

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

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

Parameters
parentA parent widget
tableHeadertable header
pkgthe master object

Member Function Documentation

◆ addLine()

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

Add one line (with tag) to the services table

Parameters
ZyppServiceReference to zypp::Service
colsString std::vector with service data (name + URL)

◆ any_service()

bool NCPkgServiceTable::any_service ( )
static
Returns
bool any service is present at all

◆ fillServiceList()

bool NCPkgServiceTable::fillServiceList ( )

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

Returns
bool (always true;-) )

◆ getDescription()

std::string NCPkgServiceTable::getDescription ( ZyppService r)
Returns
HTML contents for the description pane

◆ getService()

ZyppService NCPkgServiceTable::getService ( int index)

Get service reference from selected line's tag

Parameters
indexIndex of selected table line
Returns
ZyppService Associated zypp::Service reference

◆ getTag()

NCPkgServiceTag * NCPkgServiceTable::getTag ( int index)

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

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

◆ showServicePackages()

void NCPkgServiceTable::showServicePackages ( )

Make the Package List show the packages for the currently selected service


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