#include <YQPkgObjList.h>
Inheritance diagram for YQPkgObjListItem:
Public Member Functions | |
YQPkgObjListItem (YQPkgObjList *pkgObjList, PMObjectPtr pmObj) | |
virtual | ~YQPkgObjListItem () |
PMObjectPtr | pmObj () |
const PMObjectPtr | constPMObj () const |
bool | editable () const |
void | setEditable (bool editable=true) |
PMSelectable::UI_Status | status () const |
bool | bySelection () const |
virtual void | setStatus (PMSelectable::UI_Status newStatus) |
virtual void | updateStatus () |
virtual void | setStatusIcon () |
virtual void | cycleStatus () |
bool | candidateIsNewer () const |
bool | installedIsNewer () const |
void | setText (int column, const string text) |
void | setText (int column, const QString &text) |
void | setText (int column, const PkgEdition &edition) |
void | showNotifyTexts (PMSelectable::UI_Status status) |
bool | showLicenseAgreement (PMSelectable::UI_Status status) |
virtual int | compare (QListViewItem *other, int col, bool ascending) const |
int | versionPoints () const |
virtual void | updateData () |
virtual QString | toolTip (int column) |
int | statusCol () const |
int | nameCol () const |
int | summaryCol () const |
int | sizeCol () const |
int | versionCol () const |
int | instVersionCol () const |
Protected Member Functions | |
void | init () |
Protected Attributes | |
YQPkgObjList * | _pkgObjList |
PMObjectPtr | _pmObj |
bool | _editable |
bool | _candidateIsNewer |
bool | _installedIsNewer |
|
Constructor. Creates a YQPkgObjList item that corresponds to the package manager object that 'pkg' refers to. |
|
Destructor |
|
Returns 'true' if this selectable's status is set by a selection ( rather than by the user or by the dependency solver ). |
|
Check if the candidate is newer than the installed version. |
|
Comparison function used for sorting the list. Returns: -1 if this < other 0 if this == other +1 if this > other Reimplemented from QListViewItem Reimplemented from QY2ListViewItem. Reimplemented in YQPkgListItem, YQPkgSelListItem, and YQPkgYouPatchListItem. |
|
Returns the original object within the package manager backend. |
|
Cycle the package status to the next valid value. Reimplemented in YQPkgYouPatchListItem. |
|
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. |
|
Initialize internal data and set fields accordingly. |
|
Check if the installed version is newer than the candidate. |
|
|
|
|
|
Returns the original object within the package manager backend. |
|
Set this item's editable status. |
|
Set the ( binary RPM ) package status Reimplemented in YQPkgSelListItem, and YQPkgYouPatchListItem. |
|
Set a status icon according to the package's status. |
|
Set a column text via PkgEdition. |
|
Re-declare ordinary setText() method so the compiler doesn't get confused which one to use. |
|
Set a column text via STL string. ( QListViewItem::setText() expects a QString! ) |
|
Display this item's license agreement (if there is any) that corresponds to the specified 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. |
|
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. |
|
|
|
Returns the ( binary RPM ) package status |
|
Reimplemented in YQPkgSelListItem, and YQPkgYouPatchListItem. |
|
Reimplemented in YQPkgSelListItem, and YQPkgYouPatchListItem. |
|
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 from QY2ListViewItem. Reimplemented in YQPkgListItem, and YQPkgYouPatchListItem. |
|
Update this item's data completely. Triggered by QY2ListView::updateAllItemData(). Reimplemented from QY2ListViewItem. Reimplemented from QY2ListViewItem. Reimplemented in YQPkgListItem. |
|
Update this item's status. Triggered by QY2ListView::updateAllItemStates(). Overwritten from QY2ListViewItem. Reimplemented from QY2ListViewItem. |
|
|
|
Calculate a numerical value to compare versions, based on version relations:
|
|
|
|
|
|
|
|
|
|
|