libyui-qt-pkg
Loading...
Searching...
No Matches
YQPkgConflictDialog.h
1/*
2 Copyright (c) 2000 - 2010 Novell, Inc.
3 Copyright (c) 2021 SUSE LLC
4
5 This library is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as
7 published by the Free Software Foundation; either version 2.1 of the
8 License, or (at your option) version 3.0 of the License. This library
9 is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12 License for more details. You should have received a copy of the GNU
13 Lesser General Public License along with this library; if not, write
14 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
15 Floor, Boston, MA 02110-1301 USA
16*/
17
18
19/*
20 File: YQPkgConflictDialog.h
21 Author: Stefan Hundhammer <shundhammer.de>
22*/
23
24
25#ifndef YQPkgConflictDialog_h
26#define YQPkgConflictDialog_h
27
28#include <QDialog>
29#include <QMenu>
30#include <QLabel>
31
33class PMManager;
34class QPushButton;
35class QMenu;
36class QLabel;
37
38
43class YQPkgConflictDialog: public QDialog
44{
45 Q_OBJECT
46
47public:
48
53 YQPkgConflictDialog( QWidget * parent );
54
58 virtual ~YQPkgConflictDialog();
59
64 virtual QSize sizeHint() const;
65
70 double averageSolveTime() const;
71
75 double totalSolveTime() const { return _totalSolveTime; }
76
80 int solveCount() const { return _solveCount; }
81
86
87
88public slots:
89
98
107 int verifySystem();
108
120
121
122signals:
123
128
129
130protected:
131
135 void prepareSolving();
136
142 int processSolverResult( bool success );
143
150 void keyPressEvent( QKeyEvent * e );
151
152
153
154 //
155 // Data members
156 //
157
158 YQPkgConflictList * _conflictList;
159 QMenu * _expertMenu;
160 QLabel * _busyPopup;
161
162 double _totalSolveTime;
163 int _solveCount;
164};
165
166
167
168#endif // ifndef YQPkgConflictDialog_h
Dialog that takes care of dependency checking and resolving conflicts.
Definition YQPkgConflictDialog.h:44
int solveCount() const
Definition YQPkgConflictDialog.h:80
YQPkgConflictDialog(QWidget *parent)
Definition YQPkgConflictDialog.cc:68
int solveAndShowConflicts()
Definition YQPkgConflictDialog.cc:231
void keyPressEvent(QKeyEvent *e)
Definition YQPkgConflictDialog.cc:417
int verifySystem()
Definition YQPkgConflictDialog.cc:254
void askCreateSolverTestCase()
Definition YQPkgConflictDialog.cc:366
void prepareSolving()
Definition YQPkgConflictDialog.cc:271
int processSolverResult(bool success)
Definition YQPkgConflictDialog.cc:310
double totalSolveTime() const
Definition YQPkgConflictDialog.h:75
virtual ~YQPkgConflictDialog()
Definition YQPkgConflictDialog.cc:217
static void resetIgnoredDependencyProblems()
Definition YQPkgConflictDialog.cc:349
virtual QSize sizeHint() const
Definition YQPkgConflictDialog.cc:224
double averageSolveTime() const
Definition YQPkgConflictDialog.cc:356
Display package dependency conflicts in a tree list and let the user choose how to resolve each confl...
Definition YQPkgConflictList.h:51