41 #ifndef YQPkgConflictList_h 42 #define YQPkgConflictList_h 48 #include <QScrollArea> 50 #include <zypp/Resolver.h> 51 #include <zypp/ResolverProblem.h> 52 #include <zypp/ProblemSolution.h> 58 class YQPkgConflictResolution;
84 void fill( zypp::ResolverProblemList problemList );
94 int count()
const {
return _conflicts.count(); }
123 void saveToFile(
const QString filename,
bool interactive )
const;
127 QList<YQPkgConflict*> _conflicts;
128 QVBoxLayout *_layout;
154 zypp::ResolverProblem_Ptr problem );
164 zypp::ResolverProblem_Ptr
problem()
const {
return _problem; }
170 zypp::ProblemSolution_Ptr userSelectedResolution();
180 void detailsExpanded();
191 void formatHeading();
202 zypp::ResolverProblem_Ptr _problem;
203 QLabel * _resolutionsHeader;
204 QList<zypp::ProblemSolution_Ptr> _resolutions;
205 QMap<QRadioButton *, zypp::ProblemSolution_Ptr> _solutions;
206 QMap<QLabel *, zypp::ProblemSolution_Ptr> _details;
207 QVBoxLayout * _layout;
210 #endif // ifndef YQPkgConflictList_h YQPkgConflictList(QWidget *parent)
Constructor.
void applyResolutions()
Apply the choices the user made.
Display package dependency conflicts in a tree list and let the user choose how to resolve each confl...
void saveToFile(const QString filename, bool interactive) const
Save the conflict list in its current state to a file.
bool isEmpty() const
Check if the conflict list is empty.
virtual ~YQPkgConflict()
Destructor.
zypp::ResolverProblem_Ptr problem() const
Returns the corresponding ResolverProblem.
int count() const
Returns the number of conflicts in the list.
virtual ~YQPkgConflictList()
Destructor.
void askSaveToFile() const
Ask for a file name and save the current conflict list to file.
void fill(zypp::ResolverProblemList problemList)
Fill the list with the specified problems.
Root item for each individual conflict.
Dialog that takes care of dependency checking and resolving conflicts.
void updatePackages()
Update package states - they may have changed.