libyui-qt-pkg  2.45.15.2
YQPkgListItem Class Reference
Inheritance diagram for YQPkgListItem:
Collaboration diagram for YQPkgListItem:

Public Member Functions

 YQPkgListItem (YQPkgList *pkgList, ZyppSel selectable, ZyppPkg zyppPkg)
 Constructor. More...
 
virtual ~YQPkgListItem ()
 Destructor.
 
YQPkgListpkgList ()
 Returns the parent package list.
 
ZyppPkg zyppPkg () const
 Returns the original object within the package manager backend.
 
bool installSourceRpm () const
 Returns the source RPM package status: Should the source RPM be installed?
 
void setInstallSourceRpm (bool installSourceRpm)
 Set the source RPM status.
 
void toggleSourceRpmStatus ()
 Cycle the source package status to the next valid value.
 
bool hasSourceRpm () const
 Returns whether or not a source RPM is available for this package.
 
virtual bool operator< (const QTreeWidgetItem &other) const
 sorting function
 
virtual void updateData ()
 Update this item's data completely. More...
 
virtual QString toolTip (int column)
 Returns a tool tip text for a specific column of this item. More...
 
bool isDimmed () const
 Returns true if this package is to be displayed dimmed, i.e. More...
 
void setDimmed (bool d=true)
 Set the 'dimmed' flag.
 
int srpmStatusCol () const
 
- Public Member Functions inherited from 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. More...
 
 YQPkgObjListItem (YQPkgObjList *pkgObjList)
 Constructor for root items: Creates a YQPkgObjList item that does not correspond to a ZYPP selectable. More...
 
virtual ~YQPkgObjListItem ()
 Destructor.
 
ZyppSel selectable () const
 Returns the original selectable within the package manager backend.
 
ZyppObj zyppObj () const
 Returns the original object within the package manager backend.
 
bool editable () const
 Return whether or not this items is editable, i.e. More...
 
void setEditable (bool editable=true)
 Set this item's editable status.
 
virtual ZyppStatus status () const
 Returns the (binary RPM) package status.
 
virtual bool bySelection () const
 Returns 'true' if this selectable's status is set by a selection (rather than by the user or by the dependency solver).
 
virtual void setStatus (ZyppStatus newStatus, bool sendSignals=true)
 Set the (binary RPM) package status. More...
 
virtual void setStatusIcon ()
 Set a status icon according to the package's status.
 
virtual void updateStatus ()
 Update this item's status. More...
 
virtual void cycleStatus ()
 Cycle the package status to the next valid value.
 
bool candidateIsNewer () const
 Check if the candidate is newer than the installed version.
 
bool installedIsNewer () const
 Check if the installed version is newer than the candidate.
 
bool isSatisfied () const
 Check if this item is satisfied, even though it is not installed. More...
 
bool isBroken () const
 Check if this item is "broken": If it is installed, but any of its dependencies are no longer satisfied. More...
 
void 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.
 
bool 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.
 
int versionPoints () const
 Calculate a numerical value to compare versions, based on version relations: More...
 
bool isExcluded () const
 Returns 'true' if this item is excluded.
 
void setExcluded (bool exclude=true)
 Set this item's exclude flag. More...
 
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)
 Re-declare ordinary setText() method so the compiler doesn't get confused which one to use.
 

Protected Member Functions

void setSourceRpmIcon ()
 Set the suitable icon for the source RPM status.
 
- Protected Member Functions inherited from YQPkgObjListItem
 YQPkgObjListItem (YQPkgObjList *pkgObjList, QY2ListViewItem *parent, ZyppSel selectable, ZyppObj zyppObj=0)
 Constructor for non-root items.
 
void init ()
 Initialize internal data and set fields accordingly. More...
 
virtual void applyChanges ()
 Apply changes hook. More...
 
void solveResolvableCollections ()
 Do a "small" solver run for all "resolvable collections", i.e., for selections, patterns, languages, patches.
 
void setText (int column, const string text)
 Set a column text via STL string. More...
 
void setText (int column, const zypp::Edition &edition)
 Set a column text via Edition.
 

Protected Attributes

YQPkgList_pkgList
 
ZyppPkg _zyppPkg
 
bool _dimmed
 
- Protected Attributes inherited from YQPkgObjListItem
YQPkgObjList_pkgObjList
 
ZyppSel _selectable
 
ZyppObj _zyppObj
 
bool _editable:1
 
bool _candidateIsNewer:1
 
bool _installedIsNewer:1
 
bool _debugIsBroken:1
 
bool _debugIsSatisfied:1
 
bool _excluded:1
 

Additional Inherited Members

- Static Public Member Functions inherited from YQPkgObjListItem
static bool showLicenseAgreement (ZyppSel sel)
 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. More...
 

Detailed Description

Definition at line 278 of file YQPkgList.h.

Constructor & Destructor Documentation

◆ YQPkgListItem()

YQPkgListItem::YQPkgListItem ( YQPkgList pkgList,
ZyppSel  selectable,
ZyppPkg  zyppPkg 
)

Constructor.

Creates a YQPkgList item that corresponds to the package manager object that 'pkg' refers to.

Definition at line 758 of file YQPkgList.cc.

Here is the call graph for this function:

Member Function Documentation

◆ isDimmed()

bool YQPkgListItem::isDimmed ( ) const
inline

Returns true if this package is to be displayed dimmed, i.e.

with grey text foreground rather than the normal black.

Definition at line 351 of file YQPkgList.h.

◆ toolTip()

QString YQPkgListItem::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 YQPkgObjList.

Reimplemented from YQPkgObjListItem.

Definition at line 871 of file YQPkgList.cc.

Here is the call graph for this function:

◆ updateData()

void YQPkgListItem::updateData ( )
virtual

Update this item's data completely.

Triggered by QY2ListView::updateAllItemData().

Reimplemented from YQPkgObjList.

Reimplemented from YQPkgObjListItem.

Definition at line 782 of file YQPkgList.cc.

Here is the call graph for this function:

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