|
YQPkgObjList * | _pkgObjList |
|
ZyppSel | _selectable |
|
ZyppObj | _zyppObj |
|
bool | _editable:1 |
|
bool | _candidateIsNewer:1 |
|
bool | _installedIsNewer:1 |
|
bool | _debugIsBroken:1 |
|
bool | _debugIsSatisfied:1 |
|
bool | _excluded:1 |
|
◆ YQPkgObjListItem() [1/3]
YQPkgObjListItem::YQPkgObjListItem |
( |
YQPkgObjList * | pkgObjList, |
|
|
ZyppSel | selectable, |
|
|
ZyppObj | zyppObj = 0 ) |
Constructor for root items: Creates a YQPkgObjList item that corresponds to the ZYPP selectable that 'selectable' refers to. 'zyppObj' has to be one object of 'selectable'. If it is 0, selectable->theObject() will be used.
◆ YQPkgObjListItem() [2/3]
YQPkgObjListItem::YQPkgObjListItem |
( |
YQPkgObjList * | pkgObjList | ) |
|
Constructor for root items: Creates a YQPkgObjList item that does not correspond to a ZYPP selectable. You need to overload AND RUN init yourself then.
◆ YQPkgObjListItem() [3/3]
YQPkgObjListItem::YQPkgObjListItem |
( |
YQPkgObjList * | pkgObjList, |
|
|
QY2ListViewItem * | parent, |
|
|
ZyppSel | selectable, |
|
|
ZyppObj | zyppObj = 0 ) |
|
protected |
Constructor for non-root items.
◆ ~YQPkgObjListItem()
YQPkgObjListItem::~YQPkgObjListItem |
( |
| ) |
|
|
virtual |
◆ applyChanges()
virtual void YQPkgObjListItem::applyChanges |
( |
| ) |
|
|
inlineprotectedvirtual |
Apply changes hook. This is called each time the user changes the status of a list item manually (if the old status is different from the new one). Insert code to propagate changes to other objects here, for example to trigger a "small" solver run (Resolver::transactObjKind() etc.).
This default implementation does nothing.
Reimplemented in YQPkgLangListItem, YQPkgPatchListItem, YQPkgPatternListItem, and YQPkgProductListItem.
◆ bySelection()
bool YQPkgObjListItem::bySelection |
( |
| ) |
const |
|
virtual |
Returns 'true' if this selectable's status is set by a selection (rather than by the user or by the dependency solver).
Reimplemented in YQPkgLangListItem.
◆ candidateIsNewer()
bool YQPkgObjListItem::candidateIsNewer |
( |
| ) |
const |
|
inline |
Check if the candidate is newer than the installed version.
◆ cycleStatus()
void YQPkgObjListItem::cycleStatus |
( |
| ) |
|
|
virtual |
◆ editable()
bool YQPkgObjListItem::editable |
( |
| ) |
const |
|
inline |
Return whether or not this items is editable, i.e. the user can change its status. This requires the corresponding list to be editable, too. Items are editable by default.
◆ init()
void YQPkgObjListItem::init |
( |
| ) |
|
|
protected |
Initialize internal data and set fields accordingly. Only works for items presenting selectables - see YQPkgObjListItem
◆ installedIsNewer()
bool YQPkgObjListItem::installedIsNewer |
( |
| ) |
const |
|
inline |
Check if the installed version is newer than the candidate.
◆ isBroken()
bool YQPkgObjListItem::isBroken |
( |
| ) |
const |
Check if this item is "broken": If it is installed, but any of its dependencies are no longer satisfied. This is useful for package collections, e.g., patterns and patches.
◆ isExcluded()
bool YQPkgObjListItem::isExcluded |
( |
| ) |
const |
|
inline |
Returns 'true' if this item is excluded.
◆ isSatisfied()
bool YQPkgObjListItem::isSatisfied |
( |
| ) |
const |
Check if this item is satisfied, even though it is not installed. This is useful for package collections, e.g., patterns and patches: 'true' is returned if all requirements are fulfilled, but the object itself is not installed.
◆ operator<()
bool YQPkgObjListItem::operator< |
( |
const QTreeWidgetItem & | other | ) |
const |
|
virtual |
◆ selectable()
ZyppSel YQPkgObjListItem::selectable |
( |
| ) |
const |
|
inline |
Returns the original selectable within the package manager backend.
◆ setEditable()
void YQPkgObjListItem::setEditable |
( |
bool | editable = true | ) |
|
|
inline |
Set this item's editable status.
◆ setExcluded()
void YQPkgObjListItem::setExcluded |
( |
bool | exclude = true | ) |
|
Set this item's exclude flag. Note that this is just a marker. It is the caller's responsibility to add or remove it from exclude lists etc.
◆ setStatus()
void YQPkgObjListItem::setStatus |
( |
ZyppStatus | newStatus, |
|
|
bool | sendSignals = true ) |
|
virtual |
Set the (binary RPM) package status.
If 'sendSignals' is 'true' (default), the parent list will be requested to send update signals. List operations might want to use this for optimizations to send the signals only once after all changes are done.
Reimplemented in YQPkgLangListItem.
◆ setStatusIcon()
void YQPkgObjListItem::setStatusIcon |
( |
| ) |
|
|
virtual |
Set a status icon according to the package's status.
◆ setText() [1/3]
void YQPkgObjListItem::setText |
( |
int | column, |
|
|
const QString & | text ) |
|
inline |
Re-declare ordinary setText() method so the compiler doesn't get confused which one to use.
◆ setText() [2/3]
void YQPkgObjListItem::setText |
( |
int | column, |
|
|
const string | text ) |
|
protected |
Set a column text via STL string. ( QListViewItem::setText() expects a QString! )
◆ setText() [3/3]
void YQPkgObjListItem::setText |
( |
int | column, |
|
|
const zypp::Edition & | edition ) |
|
protected |
Set a column text via Edition.
◆ showLicenseAgreement() [1/2]
bool YQPkgObjListItem::showLicenseAgreement |
( |
| ) |
|
Display this item's license agreement (if there is any) that corresponds to its current status (S_Install, S_Update) in a pop-up window.
◆ showLicenseAgreement() [2/2]
bool YQPkgObjListItem::showLicenseAgreement |
( |
ZyppSel | sel | ) |
|
|
static |
Display a selectable's license agreement (if there is any) that corresponds to its current status (S_Install, S_Update) in a pop-up window.
Returns 'true' if the user agreed to that license , 'false' otherwise. The item's status may have changed to S_Taboo, S_Proteced or S_Del if the user disagreed with the license.
◆ showNotifyTexts()
void YQPkgObjListItem::showNotifyTexts |
( |
ZyppStatus | status | ) |
|
Display this item's notify text (if there is any) that corresponds to the specified status (S_Install, S_Del) in a pop-up window.
◆ solveResolvableCollections()
void YQPkgObjListItem::solveResolvableCollections |
( |
| ) |
|
|
protected |
Do a "small" solver run for all "resolvable collections", i.e., for selections, patterns, languages, patches.
◆ status()
ZyppStatus YQPkgObjListItem::status |
( |
| ) |
const |
|
virtual |
◆ toolTip()
QString YQPkgObjListItem::toolTip |
( |
int | column | ) |
|
|
virtual |
Returns a tool tip text for a specific column of this item. 'column' is -1 if the mouse pointer is in the tree indentation area.
Reimplemented from QY2ListViewItem.
Reimplemented in YQPkgListItem, and YQPkgPatchListItem.
◆ updateData()
void YQPkgObjListItem::updateData |
( |
| ) |
|
|
virtual |
Update this item's data completely. Triggered by QY2ListView::updateAllItemData().
Reimplemented from QY2ListViewItem.
Reimplemented in YQPkgListItem.
◆ updateStatus()
void YQPkgObjListItem::updateStatus |
( |
| ) |
|
|
virtual |
Update this item's status. Triggered by QY2ListView::updateAllItemStates(). Overwritten from QY2ListViewItem.
◆ versionPoints()
int YQPkgObjListItem::versionPoints |
( |
| ) |
const |
Calculate a numerical value to compare versions, based on version relations:
- Installed newer than candidate (red)
- Candidate newer than installed (blue) - worthwhile updating
- Installed
- Not installed, but candidate available
◆ zyppObj()
ZyppObj YQPkgObjListItem::zyppObj |
( |
| ) |
const |
|
inline |
Returns the original object within the package manager backend.
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-qt-pkg/src/YQPkgObjList.h
- /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-qt-pkg/src/YQPkgObjList.cc