◆ NCPkgServiceTable()
NCPkgServiceTable::NCPkgServiceTable |
( |
YWidget * |
parent, |
|
|
YTableHeader * |
tableHeader, |
|
|
NCPackageSelector * |
pkg |
|
) |
| |
A helper class to hold service data in a neat table widget
- Parameters
-
parent | A parent widget |
tableHeader | table header |
pkg | the master object |
◆ addLine()
void NCPkgServiceTable::addLine |
( |
ZyppService |
r, |
|
|
const std::vector< std::string > & |
cols |
|
) |
| |
|
virtual |
Add one line (with tag) to the services table
- Parameters
-
ZyppService | Reference to zypp::Service |
cols | String 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
-
index | Index of selected table line |
- Returns
- ZyppService Associated zypp::Service reference
◆ getTag()
Get tag of service table line on current index, (contains service reference)
- Parameters
-
index | Index 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:
- /builddir/build/BUILD/libyui-4.6.0/libyui-ncurses-pkg/src/NCPkgFilterService.h
- /builddir/build/BUILD/libyui-4.6.0/libyui-ncurses-pkg/src/NCPkgFilterService.cc