1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
13 File: YQPkgUpdateProblemFilterView.h
15 Author: Stefan Hundhammer <sh@suse.de>
20 #ifndef YQPkgUpdateProblemFilterView_h
21 #define YQPkgUpdateProblemFilterView_h
25 #include <q3textbrowser.h>
26 #include "YQPkgSelMapper.h"
30 * @short Filter view for packages that made problems during update
32 class YQPkgUpdateProblemFilterView : public Q3TextBrowser
41 YQPkgUpdateProblemFilterView( QWidget * parent );
46 virtual ~YQPkgUpdateProblemFilterView();
49 * Check if there are any problematic packages at all, i.e. if it is
50 * worthwhile to create this widget at all
52 static bool haveProblematicPackages();
58 * Filter according to the view's rules and current selection.
59 * Emits those signals:
61 * filterMatch() for each pkg that matches the filter
67 * Same as filter(), but only if this widget is currently visible.
69 void filterIfVisible();
75 * Emitted when the filtering starts. Use this to clear package lists
76 * etc. prior to adding new entries.
81 * Emitted during filtering for each pkg that matches the filter.
83 void filterMatch( ZyppSel selectable,
87 * Emitted when filtering is finished.
89 void filterFinished();
94 YQPkgSelMapper _selMapper;
99 #endif // ifndef YQPkgUpdateProblemFilterView_h