libyui-qt-pkg
2.42.5
|
Public Member Functions | |
YQPkgObjListItem (YQPkgObjList *pkgObjList, ZyppSel selectable, ZyppObj zyppObj=0) | |
YQPkgObjListItem (YQPkgObjList *pkgObjList) | |
virtual | ~YQPkgObjListItem () |
ZyppSel | selectable () const |
ZyppObj | zyppObj () const |
bool | editable () const |
void | setEditable (bool editable=true) |
virtual ZyppStatus | status () const |
virtual bool | bySelection () const |
virtual void | setStatus (ZyppStatus newStatus, bool sendSignals=true) |
virtual void | setStatusIcon () |
virtual void | updateStatus () |
virtual void | cycleStatus () |
bool | candidateIsNewer () const |
bool | installedIsNewer () const |
bool | isSatisfied () const |
bool | isBroken () const |
void | showNotifyTexts (ZyppStatus status) |
bool | showLicenseAgreement () |
virtual bool | operator< (const QTreeWidgetItem &other) const |
int | versionPoints () const |
virtual void | updateData () |
virtual QString | toolTip (int column) |
bool | isExcluded () const |
void | setExcluded (bool exclude=true) |
bool | debugIsBroken () const |
bool | debugIsSatisfied () const |
void | setDebugIsBroken (bool val=true) |
void | setDebugIsSatisfied (bool val=true) |
void | toggleDebugIsBroken () |
void | toggleDebugIsSatisfied () |
int | statusCol () const |
int | nameCol () const |
int | summaryCol () const |
int | sizeCol () const |
int | versionCol () const |
int | instVersionCol () const |
int | brokenIconCol () const |
int | satisfiedIconCol () const |
void | setText (int column, const QString &text) |
Static Public Member Functions | |
static bool | showLicenseAgreement (ZyppSel sel) |
Protected Member Functions | |
YQPkgObjListItem (YQPkgObjList *pkgObjList, QY2ListViewItem *parent, ZyppSel selectable, ZyppObj zyppObj=0) | |
void | init () |
virtual void | applyChanges () |
void | solveResolvableCollections () |
void | setText (int column, const string text) |
void | setText (int column, const zypp::Edition &edition) |
Protected Attributes | |
YQPkgObjList * | _pkgObjList |
ZyppSel | _selectable |
ZyppObj | _zyppObj |
bool | _editable:1 |
bool | _candidateIsNewer:1 |
bool | _installedIsNewer:1 |
bool | _debugIsBroken:1 |
bool | _debugIsSatisfied:1 |
bool | _excluded:1 |
Definition at line 426 of file YQPkgObjList.h.
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.
Definition at line 924 of file YQPkgObjList.cc.
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.
Definition at line 953 of file YQPkgObjList.cc.
|
protected |
Constructor for non-root items.
Definition at line 938 of file YQPkgObjList.cc.
|
virtual |
Destructor
Definition at line 964 of file YQPkgObjList.cc.
|
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 YQPkgPatchListItem, YQPkgPatternListItem, YQPkgLangListItem, YQPkgSelListItem, and YQPkgProductListItem.
Definition at line 655 of file YQPkgObjList.h.
|
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.
Definition at line 1122 of file YQPkgObjList.cc.
|
inline |
Check if the candidate is newer than the installed version.
Definition at line 526 of file YQPkgObjList.h.
|
virtual |
Cycle the package status to the next valid value.
Reimplemented in YQPkgPatchListItem, YQPkgPatternListItem, and YQPkgLangListItem.
Definition at line 1260 of file YQPkgObjList.cc.
|
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.
Definition at line 478 of file YQPkgObjList.h.
|
protected |
Initialize internal data and set fields accordingly. Only works for items presenting selectables - see YQPkgObjListItem
Definition at line 971 of file YQPkgObjList.cc.
|
inline |
Check if the installed version is newer than the candidate.
Definition at line 531 of file YQPkgObjList.h.
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.
Definition at line 1223 of file YQPkgObjList.cc.
|
inline |
Returns 'true' if this item is excluded.
Definition at line 606 of file YQPkgObjList.h.
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.
Definition at line 1211 of file YQPkgObjList.cc.
|
virtual |
sorting function
Reimplemented in YQPkgListItem, YQPkgPatchListItem, YQPkgPatternListItem, and YQPkgLangListItem.
Definition at line 1511 of file YQPkgObjList.cc.
|
inline |
Returns the original selectable within the package manager backend.
Definition at line 466 of file YQPkgObjList.h.
|
inline |
Set this item's editable status.
Definition at line 483 of file YQPkgObjList.h.
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.
Definition at line 1590 of file YQPkgObjList.cc.
|
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.
Definition at line 1133 of file YQPkgObjList.cc.
|
virtual |
Set a status icon according to the package's status.
Definition at line 1169 of file YQPkgObjList.cc.
|
protected |
Set a column text via STL string. ( QListViewItem::setText() expects a QString! )
Definition at line 1095 of file YQPkgObjList.cc.
|
inline |
Re-declare ordinary setText() method so the compiler doesn't get confused which one to use.
Definition at line 674 of file YQPkgObjList.h.
|
protected |
Set a column text via Edition.
Definition at line 1102 of file YQPkgObjList.cc.
|
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.
Definition at line 1382 of file YQPkgObjList.cc.
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.
Definition at line 1375 of file YQPkgObjList.cc.
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.
Definition at line 1341 of file YQPkgObjList.cc.
|
protected |
Do a "small" solver run for all "resolvable collections", i.e., for selections, patterns, languages, patches.
Definition at line 1154 of file YQPkgObjList.cc.
|
virtual |
Returns the (binary RPM) package status
Reimplemented in YQPkgLangListItem.
Definition at line 1109 of file YQPkgObjList.cc.
|
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.
Definition at line 1461 of file YQPkgObjList.cc.
|
virtual |
Update this item's data completely. Triggered by QY2ListView::updateAllItemData().
Reimplemented from QY2ListViewItem.
Reimplemented in YQPkgListItem.
Definition at line 1088 of file YQPkgObjList.cc.
|
virtual |
Update this item's status. Triggered by QY2ListView::updateAllItemStates(). Overwritten from QY2ListViewItem.
Definition at line 1162 of file YQPkgObjList.cc.
int YQPkgObjListItem::versionPoints | ( | ) | const |
Calculate a numerical value to compare versions, based on version relations:
Definition at line 1576 of file YQPkgObjList.cc.
|
inline |
Returns the original object within the package manager backend.
Definition at line 471 of file YQPkgObjList.h.