libyui-qt-pkg
Loading...
Searching...
No Matches
YQPkgConflictList Class Reference

Display package dependency conflicts in a tree list and let the user choose how to resolve each conflict. More...

#include <YQPkgConflictList.h>

Inheritance diagram for YQPkgConflictList:
Collaboration diagram for YQPkgConflictList:

Public Slots

void applyResolutions ()
 
void askSaveToFile () const
 
void clear ()
 
void relayout ()
 

Signals

void updatePackages ()
 

Public Member Functions

 YQPkgConflictList (QWidget *parent)
 
virtual ~YQPkgConflictList ()
 
void fill (zypp::ResolverProblemList problemList)
 
bool isEmpty () const
 
int count () const
 
void saveToFile (const QString filename, bool interactive) const
 

Protected Attributes

QList< YQPkgConflict * > _conflicts
 
QVBoxLayout * _layout
 

Detailed Description

Display package dependency conflicts in a tree list and let the user choose how to resolve each conflict.

Constructor & Destructor Documentation

◆ YQPkgConflictList()

YQPkgConflictList::YQPkgConflictList ( QWidget *  parent)

Constructor.

◆ ~YQPkgConflictList()

YQPkgConflictList::~YQPkgConflictList ( )
virtual

Destructor.

Member Function Documentation

◆ applyResolutions

void YQPkgConflictList::applyResolutions ( )
slot

Apply the choices the user made.

◆ askSaveToFile

void YQPkgConflictList::askSaveToFile ( ) const
slot

Ask for a file name and save the current conflict list to file.

◆ count()

int YQPkgConflictList::count ( ) const
inline

Returns the number of conflicts in the list.

◆ fill()

void YQPkgConflictList::fill ( zypp::ResolverProblemList  problemList)

Fill the list with the specified problems.

◆ isEmpty()

bool YQPkgConflictList::isEmpty ( ) const
inline

Check if the conflict list is empty.

◆ saveToFile()

void YQPkgConflictList::saveToFile ( const QString  filename,
bool  interactive 
) const

Save the conflict list in its current state to a file. Retains the current 'expanded' state, i.e. writes only those entries that are currently open (not collapsed) in the tree.

Posts error popups if 'interactive' is 'true' (only log entries otherwise).

◆ updatePackages

void YQPkgConflictList::updatePackages ( )
signal

Update package states - they may have changed.


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