00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: YQPkgConflictDialog.h 00014 00015 Author: Stefan Hundhammer <sh@suse.de> 00016 00017 /-*/ 00018 00019 // -*- c++ -*- 00020 00021 00022 #ifndef YQPkgConflictDialog_h 00023 #define YQPkgConflictDialog_h 00024 00025 #include <qdialog.h> 00026 00027 class YQPkgConflictList; 00028 class PMManager; 00029 class QPushButton; 00030 class QPopupMenu; 00031 class QLabel; 00032 00033 00038 class YQPkgConflictDialog: public QDialog 00039 { 00040 Q_OBJECT 00041 00042 public: 00043 00051 YQPkgConflictDialog( PMManager * selectableManager, 00052 QWidget * parent ); 00053 00057 virtual ~YQPkgConflictDialog(); 00058 00063 virtual QSize sizeHint() const; 00064 00069 PMManager * selectableManager() const { return _selectableManager; } 00070 00075 double averageSolveTime() const; 00076 00080 double totalSolveTime() const { return _totalSolveTime; } 00081 00085 int solveCount() const { return _solveCount; } 00086 00087 00088 public slots: 00089 00097 int solveAndShowConflicts(); 00098 00102 void ignoreAll(); 00103 00108 void resetIgnoredConflicts(); 00109 00110 00111 signals: 00112 00116 void updatePackages(); 00117 00118 00119 protected: 00120 00121 PMManager * _selectableManager; 00122 YQPkgConflictList * _conflictList; 00123 QPopupMenu * _expertMenu; 00124 QLabel * _busyPopup; 00125 00126 double _totalSolveTime; 00127 int _solveCount; 00128 }; 00129 00130 00131 00132 #endif // ifndef YQPkgConflictDialog_h