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

Public Member Functions

 YQPkgLangListItem (YQPkgLangList *pkgSelList, const zypp::Locale &lang)
 
virtual ~YQPkgLangListItem ()
 
zypp::Locale zyppLang () const
 
virtual void init ()
 overloaded
 
int statusCol () const
 
virtual ZyppStatus status () const
 
virtual void setStatus (ZyppStatus newStatus, bool sendSignals=true)
 
virtual bool bySelection () const
 
virtual void cycleStatus ()
 
virtual bool operator< (const QTreeWidgetItem &other) 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 void setStatusIcon ()
 
virtual void updateStatus ()
 
bool candidateIsNewer () const
 
bool installedIsNewer () const
 
bool isSatisfied () const
 
bool isBroken () const
 
void showNotifyTexts (ZyppStatus status)
 
bool showLicenseAgreement ()
 
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)
 

Protected Member Functions

virtual void applyChanges ()
 
- Protected Member Functions inherited from YQPkgObjListItem
 YQPkgObjListItem (YQPkgObjList *pkgObjList, QY2ListViewItem *parent, ZyppSel selectable, ZyppObj zyppObj=0)
 
void init ()
 
void solveResolvableCollections ()
 
void setText (int column, const string text)
 
void setText (int column, const zypp::Edition &edition)
 

Protected Attributes

YQPkgLangList_langList
 
zypp::Locale _zyppLang
 
- 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 136 of file YQPkgLangList.h.

Constructor & Destructor Documentation

YQPkgLangListItem::YQPkgLangListItem ( YQPkgLangList pkgSelList,
const zypp::Locale &  lang 
)

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

Definition at line 205 of file YQPkgLangList.cc.

Here is the call graph for this function:

YQPkgLangListItem::~YQPkgLangListItem ( )
virtual

Destructor

Definition at line 215 of file YQPkgLangList.cc.

Member Function Documentation

void YQPkgLangListItem::applyChanges ( )
protectedvirtual

Propagate status changes in this list to other lists: Have the solver transact all languages.

Reimplemented from YQPkgObjListItem.

Reimplemented from YQPkgObjListItem.

Definition at line 222 of file YQPkgLangList.cc.

Here is the call graph for this function:

bool YQPkgLangListItem::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 from YQPkgObjListItem.

Definition at line 293 of file YQPkgLangList.cc.

void YQPkgLangListItem::cycleStatus ( )
virtual

Cycle the package status to the next valid value.

Reimplemented from YQPkgObjListItem.

Definition at line 300 of file YQPkgLangList.cc.

Here is the call graph for this function:

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

Sorting function. Redefined here (bnc#428355) as the one from parent YQPkgObjList can't be used - it refers to zyppObj's which are NULL here as zypp::Locale is not zypp::ResObject anymore

Reimplemented from YQPkgObjListItem.

Definition at line 314 of file YQPkgLangList.cc.

Here is the call graph for this function:

void YQPkgLangListItem::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 from YQPkgObjListItem.

Definition at line 255 of file YQPkgLangList.cc.

Here is the call graph for this function:

ZyppStatus YQPkgLangListItem::status ( ) const
virtual

override this two as we don't have a real selectable and the status depends on the language

Reimplemented from YQPkgObjListItem.

Definition at line 246 of file YQPkgLangList.cc.

zypp::Locale YQPkgLangListItem::zyppLang ( ) const
inline

Returns the original object within the package manager backend.

Definition at line 155 of file YQPkgLangList.h.


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