43 #define YUILogComponent "qt-pkg" 46 #include "YQPkgUpdateProblemFilterView.h" 50 #include <zypp/ZYppFactory.h> 51 #include <zypp/Resolver.h> 58 : QTextBrowser( parent )
62 <h2>Update Problem</h2>\n\ 64 The packages in this list cannot be updated automatically.\n\ 66 <p>Possible reasons:</p>\n\ 68 <li>They are obsoleted by other packages\n\ 69 <li>There is no newer version to update to on any installation media\n\ 70 <li>They are third-party packages\n\ 74 Please choose manually what to do with them.\n\ 75 The safest course of action is to delete them.\n\ 101 list<zypp::PoolItem> problemList = zypp::getZYpp()->resolver()->problematicUpdateItems();
103 for ( list<zypp::PoolItem>::const_iterator it = problemList.begin();
104 it != problemList.end();
107 ZyppPkg pkg = tryCastToZyppPkg( (*it).resolvable() );
115 yuiMilestone() <<
"Problematic package: " 116 << pkg->name() <<
"-" << pkg->edition().asString()
132 return ! zypp::getZYpp()->resolver()->problematicUpdateItems().empty();
136 #include "YQPkgUpdateProblemFilterView.moc" void filter()
Filter according to the view's rules and current selection.
virtual ~YQPkgUpdateProblemFilterView()
Destructor.
void filterStart()
Emitted when the filtering starts.
void filterFinished()
Emitted when filtering is finished.
void filterIfVisible()
Same as filter(), but only if this widget is currently visible.
static bool haveProblematicPackages()
Check if there are any problematic packages at all, i.e.
ZyppSel findZyppSel(ZyppPkg pkg)
Find the corresponding ZyppSel to a ZyppPkg.
void filterMatch(ZyppSel selectable, ZyppPkg pkg)
Emitted during filtering for each pkg that matches the filter.
YQPkgUpdateProblemFilterView(QWidget *parent)
Constructor.