libyui-qt-pkg
Loading...
Searching...
No Matches
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)

Constructor & Destructor Documentation

◆ YQPkgLangListItem()

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

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

◆ ~YQPkgLangListItem()

YQPkgLangListItem::~YQPkgLangListItem ( )
virtual

Destructor

Member Function Documentation

◆ applyChanges()

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.

◆ bySelection()

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.

◆ cycleStatus()

void YQPkgLangListItem::cycleStatus ( )
virtual

Cycle the package status to the next valid value.

Reimplemented from YQPkgObjListItem.

◆ operator<()

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.

◆ setStatus()

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.

◆ status()

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.

◆ zyppLang()

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

Returns the original object within the package manager backend.


The documentation for this class was generated from the following files:
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-qt-pkg/src/YQPkgLangList.h
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-qt-pkg/src/YQPkgLangList.cc