libyui-ncurses-pkg  2.44.4
 All Classes Functions
NCPackageSelector Class Reference

Public Types

enum  FilterMode {
  Patterns, Languages, Repositories, RPMGroups,
  Search, Summary, PkgClassification
}
 

Public Member Functions

 NCPackageSelector (long modeFlags)
 
virtual ~NCPackageSelector ()
 
void setFlags (long modeFlags)
 
void readSysconfig ()
 
void writeSysconfig ()
 
void createPkgLayout (YWidget *parent, NCPkgTable::NCPkgTableType type)
 
void createYouLayout (YWidget *parent)
 
NCPkgTablePackageList ()
 
NCPkgPopupDepsDepsPopup ()
 
NCPkgDiskspacediskSpacePopup ()
 
YLabel * PackageLabel ()
 
YLabel * PatternLabel ()
 
NCPkgPackageDetailsInfoText ()
 
void setInfoText (NCPkgPackageDetails *itext)
 
NCPkgTableVersionsList ()
 
void setVersionsList (NCPkgTable *table)
 
NCPkgTablePatchPkgs ()
 
NCPkgTablePatchPkgsVersions ()
 
YReplacePoint * ReplacePoint ()
 
NCRichText * FilterDescription ()
 
NCPkgSearchSettingsSearchSettings ()
 
bool checkNow (bool *ok)
 
bool systemVerification (bool *ok)
 
bool fillPatchList (NCPkgMenuFilter::PatchFilter filter)
 
bool fillUpdateList ()
 
bool fillPatchPackages (NCPkgTable *pkgTable, ZyppObj youPatch)
 
bool fillPatchSearchList (const std::string &expr, bool checkName, bool checkSum)
 
bool fillDefaultList ()
 
bool isYouMode ()
 
bool isUpdateMode ()
 
bool isRepoMgrEnabled ()
 
bool isTestMode ()
 
std::string ActionAtExit ()
 
void setActionAtExit (std::string action)
 
bool isCleanDepsOnRemove ()
 
void setCleanDepsOnRemove (bool on)
 
bool isAllowVendorChange ()
 
void setAllowVendorChange (bool on)
 
bool isInstallAlreadyRecommended ()
 
void setInstallAlreadyRecommended (bool on)
 
bool InstallRecommended ()
 
bool isVerifySystem ()
 
void setVerifySystem (bool on)
 
bool VerifySystem ()
 
bool isAutoCheck ()
 
void setAutoCheck (bool check)
 
bool AutoCheck ()
 
bool handleEvent (const NCursesEvent &event)
 
void showPatchPkgVersions ()
 
void showPatchPackages ()
 
void showVersionsList ()
 
void showInformation ()
 
void clearInfoArea ()
 
wrect deleteReplacePoint ()
 
void replaceFilter (FilterMode mode)
 
void replaceFilterDescr (bool b)
 
bool OkButtonHandler (const NCursesEvent &event)
 
bool CancelHandler (const NCursesEvent &event)
 
bool LinkHandler (std::string link)
 
bool showPackageDependencies (bool doit)
 
void showSelectionDependencies ()
 
void updatePackageList ()
 
bool checkPatch (ZyppPatch patch, ZyppSel selectable, NCPkgMenuFilter::PatchFilter filter)
 
bool showLicensePopup (std::string pkgName, std::string license)
 
void showDiskSpace ()
 
void showDownloadSize ()
 
void saveState ()
 
void restoreState ()
 
bool diffState ()
 
bool showPendingLicenseAgreements ()
 
bool showPendingLicenseAgreements (ZyppPoolIterator begin, ZyppPoolIterator end)
 
bool showLicenseAgreement (ZyppSel &slbPtr, std::string licenseText)
 
std::set< std::string > getVerifiedPkgs ()
 
void insertVerifiedPkg (std::string pkgname)
 
void clearVerifiedPkgs ()
 

Friends

std::ostream & operator<< (std::ostream &STREAM, const NCPackageSelector &OBJ)
 

Detailed Description

Definition at line 114 of file NCPackageSelector.h.

Constructor & Destructor Documentation

NCPackageSelector::NCPackageSelector ( long  modeFlags)

The package selector class handles the events and holds the data needed for the package selection.

Parameters
uiThe NCurses UI
optThe widget options

Definition at line 109 of file NCPackageSelector.cc.

Here is the call graph for this function:

NCPackageSelector::~NCPackageSelector ( )
virtual

Destructor

Definition at line 157 of file NCPackageSelector.cc.

Member Function Documentation

bool NCPackageSelector::CancelHandler ( const NCursesEvent &  event)

Handler function for "Cancel button pressed"

Parameters
eventThe Ncurses event
Returns
bool

Definition at line 1205 of file NCPackageSelector.cc.

Here is the call graph for this function:

bool NCPackageSelector::checkPatch ( ZyppPatch  patch,
ZyppSel  selectable,
NCPkgMenuFilter::PatchFilter  filter 
)

Check if 'patch' matches the selected filter. Returns true if there is a match, false otherwise or if 'patch' is 0.

Returns
bool

Definition at line 766 of file NCPackageSelector.cc.

Here is the call graph for this function:

void NCPackageSelector::clearVerifiedPkgs ( )
inline

Empty the std::set of packages selected for automatic changes

Returns
void

Definition at line 506 of file NCPackageSelector.h.

void NCPackageSelector::createPkgLayout ( YWidget *  parent,
NCPkgTable::NCPkgTableType  type 
)

Create layout for the PackageSelector

Parameters
parentParent is PackageSelectorStart
typeThe package table type
Returns
void

Definition at line 1721 of file NCPackageSelector.cc.

Here is the call graph for this function:

void NCPackageSelector::createYouLayout ( YWidget *  parent)

Create layout for the Online Update

Parameters
parentParent is PackageSelectorStart
Returns
void

Definition at line 1637 of file NCPackageSelector.cc.

Here is the call graph for this function:

bool NCPackageSelector::fillDefaultList ( )

Fills the default package table

Definition at line 1840 of file NCPackageSelector.cc.

Here is the call graph for this function:

bool NCPackageSelector::fillPatchList ( NCPkgMenuFilter::PatchFilter  filter)

Fills the package table with YOU patches matching the filter

Parameters
filter
Returns
bool

Definition at line 576 of file NCPackageSelector.cc.

Here is the call graph for this function:

bool NCPackageSelector::fillPatchPackages ( NCPkgTable pkgTable,
ZyppObj  youPatch 
)

Fills the list of packages belonging to the youPatch

Parameters
pkgTableThe table widget
youPatchShow all packages belonging to the patch
Returns
bool

Definition at line 698 of file NCPackageSelector.cc.

Here is the call graph for this function:

bool NCPackageSelector::fillPatchSearchList ( const std::string &  expr,
bool  checkName,
bool  checkSum 
)

Fills the package table with packages matching the search expression

Parameters
exprThe search expression
ignoreCaseIgnore case (true or false)
checkNameSearch in package name (true or false)
checkSummaryCheck the summary (true or false)
checkProvidesCheck in Provides (true or false)
checkRequiresCheck in Requires (true or false)
Returns
bool

Definition at line 524 of file NCPackageSelector.cc.

Here is the call graph for this function:

bool NCPackageSelector::fillUpdateList ( )

Fills the package table with packages with update problems

Returns
bool

Definition at line 646 of file NCPackageSelector.cc.

Here is the call graph for this function:

std::set<std::string> NCPackageSelector::getVerifiedPkgs ( )
inline

Get list of packages already selected for automatic changes (usually via 'verify system' call)

Returns
std::set <std::string>

Definition at line 489 of file NCPackageSelector.h.

bool NCPackageSelector::handleEvent ( const NCursesEvent &  event)

Handle the given event. For the given event (the widget-id is contained in the event) the corresponding handler is executed.

Parameters
eventThe NCurses event
Returns
bool

Definition at line 452 of file NCPackageSelector.cc.

Here is the call graph for this function:

void NCPackageSelector::insertVerifiedPkg ( std::string  pkgname)
inline

Insert package name into the list of already selected for automatic changes

Parameters
pkgnamePackage name

Definition at line 498 of file NCPackageSelector.h.

bool NCPackageSelector::LinkHandler ( std::string  link)

Handles hyperlinks in package description

Parameters
linkThe link
Returns
bool

Definition at line 1163 of file NCPackageSelector.cc.

bool NCPackageSelector::OkButtonHandler ( const NCursesEvent &  event)

Handler function for "OK button pressed"

Parameters
eventThe Ncurses event
Returns
bool

Definition at line 1244 of file NCPackageSelector.cc.

Here is the call graph for this function:

void NCPackageSelector::saveState ( )

Check for changes

Definition at line 397 of file NCPackageSelector.cc.

void NCPackageSelector::showDiskSpace ( )

Calls the package mananager (updateDu()) and shows the required disk space

Definition at line 1525 of file NCPackageSelector.cc.

void NCPackageSelector::showDownloadSize ( )

Shows the total download size

Definition at line 1549 of file NCPackageSelector.cc.

Here is the call graph for this function:

void NCPackageSelector::showInformation ( )

Creates an NCRichText widget for package (patch) information

Returns
void

Definition at line 876 of file NCPackageSelector.cc.

bool NCPackageSelector::showLicenseAgreement ( ZyppSel &  slbPtr,
std::string  licenseText 
)

Show popup with license.

Returns
bool

Definition at line 1400 of file NCPackageSelector.cc.

Here is the call graph for this function:

bool NCPackageSelector::showLicensePopup ( std::string  pkgName,
std::string  license 
)

Shows 'End User License Agreement' popup with license text

Parameters
pkgNamethe package name
licensethe license text
Returns
bool license confirmed?

Definition at line 1475 of file NCPackageSelector.cc.

Here is the call graph for this function:

bool NCPackageSelector::showPackageDependencies ( bool  doit)

Checks and shows the dependencies

Parameters
doittrue: do the check, false: only check if auto check is on

Definition at line 1446 of file NCPackageSelector.cc.

void NCPackageSelector::showPatchPackages ( )

Creates an NCPkgTable widget and shows all packages belonging to a patch

Returns
void

Definition at line 933 of file NCPackageSelector.cc.

Here is the call graph for this function:

void NCPackageSelector::showPatchPkgVersions ( )

Creates an NCPkgTable widget and shows all versions of all packages belonging to a patch

Returns
void

Definition at line 968 of file NCPackageSelector.cc.

Here is the call graph for this function:

bool NCPackageSelector::showPendingLicenseAgreements ( )

Check for license

Definition at line 1341 of file NCPackageSelector.cc.

void NCPackageSelector::showSelectionDependencies ( )

Checks and shows the selectiondependencies

Definition at line 1466 of file NCPackageSelector.cc.

Here is the call graph for this function:

void NCPackageSelector::showVersionsList ( )

Creates an NCPkgTable widget and shows all verions a the selected package

Returns
void

Definition at line 898 of file NCPackageSelector.cc.

Here is the call graph for this function:

void NCPackageSelector::updatePackageList ( )

Updates the status in list of packages

Definition at line 1511 of file NCPackageSelector.cc.

Here is the call graph for this function:


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