libyui-qt-pkg  2.45.5
 All Classes Functions Variables Enumerations
YQPkgConflictDialog Class Reference

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

#include <YQPkgConflictDialog.h>

Inheritance diagram for YQPkgConflictDialog:
Collaboration diagram for YQPkgConflictDialog:

Public Slots

int solveAndShowConflicts ()
 Run the package dependency solver for the current package set and open the conflict dialog if there are any conflicts. More...
 
int verifySystem ()
 Run the package dependency solver for the currently installed system plus the packages that are marked for installation (or update or...) and open the conflict dialog if there are any conflicts. More...
 
void askCreateSolverTestCase ()
 Mini-wizard to generate solver test case: More...
 

Signals

void updatePackages ()
 Update package states - they may have changed.
 

Public Member Functions

 YQPkgConflictDialog (QWidget *parent)
 Constructor. More...
 
virtual ~YQPkgConflictDialog ()
 Destructor.
 
virtual QSize sizeHint () const
 Reimplemented from QWidget: Reserve a reasonable amount of space.
 
double averageSolveTime () const
 Returns the average time in seconds used for solving or 0 if solving hasn't taken place yet.
 
double totalSolveTime () const
 Returns the total amount of time in seconds used for solving.
 
int solveCount () const
 Returns the times solving has taken place (with this dialog).
 

Static Public Member Functions

static void resetIgnoredDependencyProblems ()
 Reset all previously ignored dependency problems.
 

Protected Member Functions

void prepareSolving ()
 Initialize solving: Post "busy" popup etc.
 
int processSolverResult (bool success)
 Process the result of solving: Post conflict dialog, if neccessary. More...
 
void keyPressEvent (QKeyEvent *e)
 Event handler for keyboard input. More...
 

Protected Attributes

YQPkgConflictList_conflictList
 
QMenu * _expertMenu
 
QLabel * _busyPopup
 
double _totalSolveTime
 
int _solveCount
 

Detailed Description

Dialog that takes care of dependency checking and resolving conflicts.

Definition at line 59 of file YQPkgConflictDialog.h.

Constructor & Destructor Documentation

YQPkgConflictDialog::YQPkgConflictDialog ( QWidget *  parent)

Constructor.

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

Definition at line 82 of file YQPkgConflictDialog.cc.

Here is the call graph for this function:

Member Function Documentation

void YQPkgConflictDialog::askCreateSolverTestCase ( )
slot

Mini-wizard to generate solver test case:

  • Inform user what this is all about
  • Tell user where the files will go
  • Generate test case
  • Ask user if he would like to pack it all into y2logs.tgz
  • Prompt user for path for y2logs.tgz
  • Save y2logs.tgz

Definition at line 384 of file YQPkgConflictDialog.cc.

void YQPkgConflictDialog::keyPressEvent ( QKeyEvent *  e)
protected

Event handler for keyboard input.

Only very special keys are processed here.

Inherited from QWidget.

Definition at line 435 of file YQPkgConflictDialog.cc.

int YQPkgConflictDialog::processSolverResult ( bool  success)
protected

Process the result of solving: Post conflict dialog, if neccessary.

'success' is the return value of the preceding solver call. Returns either QDialog::Accepted or QDialog::Rejected.

Definition at line 328 of file YQPkgConflictDialog.cc.

Here is the call graph for this function:

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.

Definition at line 249 of file YQPkgConflictDialog.cc.

Here is the call graph for this function:

int YQPkgConflictDialog::verifySystem ( )
slot

Run the package dependency solver for the currently installed system plus the packages that are marked for installation (or update or...) and open the conflict dialog if there are any conflicts.

Returns only when the conflict dialog is closed.

Returns QDialog::Accepted or QDialog::Rejected.

Definition at line 272 of file YQPkgConflictDialog.cc.

Here is the call graph for this function:


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