#include <YQPkgConflictList.h>
Inheritance diagram for YQPkgConflict:
Public Member Functions | |
YQPkgConflict (YQPkgConflictList *parentList, const PkgDep::ErrorResult &errorResult) | |
virtual | ~YQPkgConflict () |
PkgDep::ErrorResult & | errorResult () |
bool | needAlternative () |
bool | hasCollisions () |
bool | hasOpenRequirements () |
void | applyResolution () |
bool | isIgnored () |
void | ignore () |
Static Public Member Functions | |
static bool | isIgnored (const QString &conflictHeader) |
static void | ignore (const QString &conflictHeader) |
static void | resetIgnoredConflicts () |
static void | saveIgnoredConflicts () |
static void | loadIgnoredConflicts () |
static bool | haveIgnoredConflicts () |
static QAction * | actionResetIgnoredConflicts (YQPkgConflictDialog *dialog=0) |
static void | updateActions () |
Protected Member Functions | |
void | formatHeading () |
void | dumpLists () |
void | dumpList (QListViewItem *parent, PkgDep::RelInfoList &list, int splitThreshold=-1, const QString &header=QString::null) |
void | addResolutionSuggestions () |
void | addUndoResolution (QY2CheckListItem *parent) |
void | addAlternativesList (QY2CheckListItem *parent) |
void | addDeleteConflictsResolution (QY2CheckListItem *parent) |
void | addDeleteReferersResolution (QY2CheckListItem *parent) |
void | addIgnoreResolution (QY2CheckListItem *parent) |
void | dumpDeleteList (QListViewItem *parent, PkgDep::SolvableList &solvablelist) |
void | bruteForceDelete (PkgDep::SolvableList &solvablelist) |
virtual void | paintCell (QPainter *painter, const QColorGroup &colorGroup, int column, int width, int alignment) |
Protected Attributes | |
PMObjectPtr | _pmObj |
bool | _isPkg |
QString | _shortName |
QString | _fullName |
PMSelectable::UI_Status | _status |
PMSelectable::UI_Status | _undo_status |
bool | _canIgnore |
QListViewItem * | _resolutionsHeader |
PkgDep::ErrorResult | _conflict |
YQPkgConflictList * | _parentList |
Static Protected Attributes | |
static QMap< QString, bool > | _ignore |
static QAction * | _actionResetIgnoredConflicts = 0 |
|
Constructor. |
|
Destructor. |
|
Returns a pointer to the one and only internal QAction that resets ignored dependency conflicts. If none exists yet, it will be created. 'dialog' is the conflict dialog this action is connected to. |
|
Add a list of alternatives if there are any. |
|
Add resolution suggestion: Delete all conflicting packages. |
|
Add brute force resolution suggestion: Delete all dependent packages. |
|
Add resolution suggestion: Ignore conflict, risk inconsistent system |
|
Add suggestions how to resolve this conflict. |
|
Add resolution suggestion: Undo what caused this conflict ( i.e. don't remove, don't install, ... ). |
|
Apply the choices the user made. |
|
Remove everything in the remove list. |
|
Dump the specified list (remove_to_solve_conflict/remove_referers) into the conflict list. |
|
Dump a list of package relations into the conflict list: Create a new list entry for each list entry. If 'header' is non-null, create a bracketing list item with text 'header' and insert the list items below that new item. Splits into a sublist at ( about ) 'splitThreshold' if this is > 1. Does nothing if the list is empty. |
|
Dump all relevant lists from the internal ErrorResult into the conflict list. |
|
Access the internal ErrorResult. |
|
Format the text heading line for this item. |
|
Returns if this package collides with other packages. |
|
Returns if this package has open ( unresolved ) requirements. |
|
Returns 'true' if there are any ignored conflicts, 'false' otherwise. |
|
Ignore a conflict with header ( first text line in list ) 'conflictHeader'. |
|
Ignore this conflict - i.e. add it to the ignore list. |
|
Check if a conflict with header ( first text line in list ) 'conflictHeader is ignored. |
|
Check if this conflict with header should be ignored. |
|
Load ignored conflicts from ( predefined ) file. |
|
Returns if this conflict needs an alternative from a list. |
|
Paint method. Reimplemented from QListViewItem a different font can be used. Reimplemented from QY2ListViewItem. Reimplemented from QY2ListViewItem. |
|
Reset all ignored conflicts as if the user had never selected any conflict to ignore. |
|
Save all ignored conflicts to ( predefined ) file. |
|
Update the enabled / disabled state of all internal QActions ( that are created yet - this method will not create any if they don't exist yet ). |
|
|
|
|
|
|
|
|
|
Conflicts that are to be ignored. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|