libyui-qt-pkg
YQPkgConflictDialog.h
1 /**************************************************************************
2 Copyright (C) 2000 - 2010 Novell, Inc.
3 All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 
19 **************************************************************************/
20 
21 
22 /*---------------------------------------------------------------------\
23 | |
24 | __ __ ____ _____ ____ |
25 | \ \ / /_ _/ ___|_ _|___ \ |
26 | \ V / _` \___ \ | | __) | |
27 | | | (_| |___) || | / __/ |
28 | |_|\__,_|____/ |_| |_____| |
29 | |
30 | core system |
31 | (C) SuSE GmbH |
32 \----------------------------------------------------------------------/
33 
34  File: YQPkgConflictDialog.h
35 
36  Author: Stefan Hundhammer <shundhammer.de>
37 
38 /-*/
39 
40 
41 #ifndef YQPkgConflictDialog_h
42 #define YQPkgConflictDialog_h
43 
44 #include <QDialog>
45 #include <QMenu>
46 #include <QLabel>
47 
48 class YQPkgConflictList;
49 class PMManager;
50 class QPushButton;
51 class QMenu;
52 class QLabel;
53 
54 
59 class YQPkgConflictDialog: public QDialog
60 {
61  Q_OBJECT
62 
63 public:
64 
69  YQPkgConflictDialog( QWidget * parent );
70 
74  virtual ~YQPkgConflictDialog();
75 
80  virtual QSize sizeHint() const;
81 
86  double averageSolveTime() const;
87 
91  double totalSolveTime() const { return _totalSolveTime; }
92 
96  int solveCount() const { return _solveCount; }
97 
101  static void resetIgnoredDependencyProblems();
102 
103 
104 public slots:
105 
113  int solveAndShowConflicts();
114 
123  int verifySystem();
124 
136 
137 
138 signals:
139 
143  void updatePackages();
144 
145 
146 protected:
147 
151  void prepareSolving();
152 
158  int processSolverResult( bool success );
159 
166  void keyPressEvent( QKeyEvent * e );
167 
168 
169 
170  //
171  // Data members
172  //
173 
174  YQPkgConflictList * _conflictList;
175  QMenu * _expertMenu;
176  QLabel * _busyPopup;
177 
178  double _totalSolveTime;
179  int _solveCount;
180 };
181 
182 
183 
184 #endif // ifndef YQPkgConflictDialog_h
int processSolverResult(bool success)
Definition: YQPkgConflictDialog.cc:325
void askCreateSolverTestCase()
Definition: YQPkgConflictDialog.cc:381
virtual QSize sizeHint() const
Definition: YQPkgConflictDialog.cc:239
int solveCount() const
Definition: YQPkgConflictDialog.h:96
void keyPressEvent(QKeyEvent *e)
Definition: YQPkgConflictDialog.cc:432
Display package dependency conflicts in a tree list and let the user choose how to resolve each confl...
Definition: YQPkgConflictList.h:66
double averageSolveTime() const
Definition: YQPkgConflictDialog.cc:371
double totalSolveTime() const
Definition: YQPkgConflictDialog.h:91
int verifySystem()
Definition: YQPkgConflictDialog.cc:269
void prepareSolving()
Definition: YQPkgConflictDialog.cc:286
virtual ~YQPkgConflictDialog()
Definition: YQPkgConflictDialog.cc:232
static void resetIgnoredDependencyProblems()
Definition: YQPkgConflictDialog.cc:364
YQPkgConflictDialog(QWidget *parent)
Definition: YQPkgConflictDialog.cc:83
Dialog that takes care of dependency checking and resolving conflicts.
Definition: YQPkgConflictDialog.h:59
int solveAndShowConflicts()
Definition: YQPkgConflictDialog.cc:246