libyui-qt-pkg  2.42.5
 All Classes Functions Variables Enumerations
YQPkgListItem Class Reference
Inheritance diagram for YQPkgListItem:
Collaboration diagram for YQPkgListItem:

Public Member Functions

 YQPkgListItem (YQPkgList *pkgList, ZyppSel selectable, ZyppPkg zyppPkg)
 
virtual ~YQPkgListItem ()
 
YQPkgListpkgList ()
 
ZyppPkg zyppPkg () const
 
bool installSourceRpm () const
 
void setInstallSourceRpm (bool installSourceRpm)
 
void toggleSourceRpmStatus ()
 
bool hasSourceRpm () const
 
virtual bool operator< (const QTreeWidgetItem &other) const
 
virtual void updateData ()
 
virtual QString toolTip (int column)
 
bool isDimmed () const
 
void setDimmed (bool d=true)
 
int srpmStatusCol () const
 
- Public Member Functions inherited from YQPkgObjListItem
 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 ()
 
int versionPoints () const
 
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)
 

Protected Member Functions

void setSourceRpmIcon ()
 
- Protected Member Functions inherited from YQPkgObjListItem
 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

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)
 

Detailed Description

Definition at line 278 of file YQPkgList.h.

Constructor & Destructor Documentation

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 755 of file YQPkgList.cc.

Here is the call graph for this function:

YQPkgListItem::~YQPkgListItem ( )
virtual

Destructor

Definition at line 772 of file YQPkgList.cc.

Member Function Documentation

bool YQPkgListItem::hasSourceRpm ( ) const

Returns whether or not a source RPM is available for this package.

Definition at line 787 of file YQPkgList.cc.

Here is the call graph for this function:

bool YQPkgListItem::installSourceRpm ( ) const

Returns the source RPM package status: Should the source RPM be installed?

Definition at line 801 of file YQPkgList.cc.

Here is the call graph for this function:

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.

bool YQPkgListItem::operator< ( const QTreeWidgetItem &  other) const
virtual

sorting function

Reimplemented from YQPkgObjListItem.

Definition at line 946 of file YQPkgList.cc.

Here is the call graph for this function:

YQPkgList* YQPkgListItem::pkgList ( )
inline

Returns the parent package list.

Definition at line 298 of file YQPkgList.h.

void YQPkgListItem::setDimmed ( bool  d = true)
inline

Set the 'dimmed' flag.

Definition at line 356 of file YQPkgList.h.

void YQPkgListItem::setInstallSourceRpm ( bool  installSourceRpm)

Set the source RPM status

Definition at line 846 of file YQPkgList.cc.

Here is the call graph for this function:

void YQPkgListItem::setSourceRpmIcon ( )
protected

Set the suitable icon for the source RPM status.

Definition at line 818 of file YQPkgList.cc.

Here is the call graph for this function:

void YQPkgListItem::toggleSourceRpmStatus ( )

Cycle the source package status to the next valid value.

Definition at line 861 of file YQPkgList.cc.

Here is the call graph for this function:

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 868 of file YQPkgList.cc.

Here is the call graph for this function:

void YQPkgListItem::updateData ( )
virtual

Update this item's data completely. Triggered by QY2ListView::updateAllItemData().

Reimplemented from YQPkgObjList.

Reimplemented from YQPkgObjListItem.

Definition at line 779 of file YQPkgList.cc.

Here is the call graph for this function:

ZyppPkg YQPkgListItem::zyppPkg ( ) const
inline

Returns the original object within the package manager backend.

Definition at line 303 of file YQPkgList.h.


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