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; }
180 void detailsExpanded();
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.
void saveToFile(QFile &file) const
save one item to file.
bool isEmpty() const
Check if the conflict list is empty.
virtual ~YQPkgConflict()
Destructor.
zypp::ResolverProblem_Ptr problem() const
Returns the corresponding ResolverProblem.
zypp::ProblemSolution_Ptr userSelectedResolution()
Returns the resolution the user selected or 0 if he didn't select one.
int count() const
Returns the number of conflicts in the list.
void formatHeading()
Format the text heading line for this item.
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.
YQPkgConflict(QWidget *parent, zypp::ResolverProblem_Ptr problem)
Constructor.
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.
void addSolutions()
Add suggestions how to resolve this conflict.