Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

YQPkgConflictDialog Class Reference

Dialog that takes care of dependency checking and resolving conflicts. More...

#include <YQPkgConflictDialog.h>

List of all members.

Public Slots

int solveAndShowConflicts ()
void ignoreAll ()
void resetIgnoredConflicts ()

Signals

void updatePackages ()

Public Member Functions

 YQPkgConflictDialog (PMManager *selectableManager, QWidget *parent)
virtual ~YQPkgConflictDialog ()
virtual QSize sizeHint () const
PMManagerselectableManager () const
double averageSolveTime () const
double totalSolveTime () const
int solveCount () const

Protected Attributes

PMManager_selectableManager
YQPkgConflictList_conflictList
QPopupMenu * _expertMenu
QLabel * _busyPopup
double _totalSolveTime
int _solveCount


Detailed Description

Dialog that takes care of dependency checking and resolving conflicts.


Constructor & Destructor Documentation

YQPkgConflictDialog::YQPkgConflictDialog PMManager selectableManager,
QWidget *  parent
 

Constructor. Does not pop up a dialog yet. Use solveAndShowConflicts().

'selectableManager' is one of &Y2PM::packageManager() or &Y2PM::selectionManager().

YQPkgConflictDialog::~YQPkgConflictDialog  )  [virtual]
 

Destructor.


Member Function Documentation

double YQPkgConflictDialog::averageSolveTime  )  const
 

Returns the average time in seconds used for solving or 0 if solving hasn't taken place yet.

void YQPkgConflictDialog::ignoreAll  )  [slot]
 

Ignore all conflicts.

void YQPkgConflictDialog::resetIgnoredConflicts  )  [slot]
 

Reset all ignored conflicts as if the user had never selected any conflict to ignore.

PMManager* YQPkgConflictDialog::selectableManager  )  const [inline]
 

Returns the selectable manager used by this dialog to resolve dependencies.

QSize YQPkgConflictDialog::sizeHint  )  const [virtual]
 

Reimplemented from QWidget: Reserve a reasonable amount of space.

int YQPkgConflictDialog::solveAndShowConflicts  )  [slot]
 

Run the package dependency solver for the current package set and open the conflict dialog if there are any conflicts. Returns only when the conflict dialog is closed.

Returns QDialog::Accepted or QDialog::Rejected.

int YQPkgConflictDialog::solveCount  )  const [inline]
 

Returns the times solving has taken place ( with this dialog ).

double YQPkgConflictDialog::totalSolveTime  )  const [inline]
 

Returns the total amount of time in seconds used for solving.

void YQPkgConflictDialog::updatePackages  )  [signal]
 

Update package states - they may have changed.


Member Data Documentation

QLabel* YQPkgConflictDialog::_busyPopup [protected]
 

YQPkgConflictList* YQPkgConflictDialog::_conflictList [protected]
 

QPopupMenu* YQPkgConflictDialog::_expertMenu [protected]
 

PMManager* YQPkgConflictDialog::_selectableManager [protected]
 

int YQPkgConflictDialog::_solveCount [protected]
 

double YQPkgConflictDialog::_totalSolveTime [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Oct 14 19:03:48 2005 for yast2-qt by doxygen 1.3.6