libyui-ncurses-pkg  2.48.5.2
NCPkgServiceTable Class Reference
Inheritance diagram for NCPkgServiceTable:
Collaboration diagram for NCPkgServiceTable:

Public Member Functions

 NCPkgServiceTable (YWidget *parent, YTableHeader *tableHeader, NCPackageSelector *pkg)
 A helper class to hold service data in a neat table widget. More...
 
virtual void addLine (ZyppService r, const std::vector< std::string > &cols)
 Add one line (with tag) to the services table. More...
 
void fillHeader ()
 
NCPkgServiceTaggetTag (int index)
 Get tag of service table line on current index, (contains service reference) More...
 
ZyppService getService (int index)
 Get service reference from selected line's tag. More...
 
std::string getDescription (ZyppService r)
 
virtual NCursesEvent wHandleInput (wint_t ch)
 
bool fillServiceList ()
 Add items to the service list (assoc. More...
 
void showServicePackages ()
 Make the Package List show the packages for the currently selected service.
 

Static Public Member Functions

static bool any_service ()
 

Detailed Description

Definition at line 76 of file NCPkgFilterService.h.

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

Definition at line 70 of file NCPkgFilterService.cc.

Here is the call graph for this function:

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)

Definition at line 119 of file NCPkgFilterService.cc.

◆ any_service()

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

Definition at line 79 of file NCPkgFilterService.cc.

◆ fillServiceList()

bool NCPkgServiceTable::fillServiceList ( )

Add items to the service list (assoc.

product name, if any, and URL)

Returns
bool (always true ;-) )

Definition at line 209 of file NCPkgFilterService.cc.

Here is the call graph for this function:

◆ getDescription()

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

Definition at line 190 of file NCPkgFilterService.cc.

◆ 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

Definition at line 175 of file NCPkgFilterService.cc.

Here is the call graph for this function:

◆ 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

Definition at line 149 of file NCPkgFilterService.cc.


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