libyui-qt-pkg  2.45.15
YQPkgPackageKitGroupsFilterView Class Reference

Filter view for PackageKit groups. More...

#include <YQPkgPackageKitGroupsFilterView.h>

Inheritance diagram for YQPkgPackageKitGroupsFilterView:
Collaboration diagram for YQPkgPackageKitGroupsFilterView:

Public Slots

void filter ()
 Filter according to the view's rules and current selection. More...
 
void filterIfVisible ()
 Same as filter(), but only if this widget is currently visible.
 
void selectSomething ()
 Select a list entry (if there is any). More...
 

Signals

void filterStart ()
 Emitted when the filtering starts. More...
 
void filterMatch (ZyppSel selectable, ZyppPkg pkg)
 Emitted during filtering for each pkg that matches the filter.
 
void filterFinished ()
 Emitted when filtering is finished.
 

Public Member Functions

 YQPkgPackageKitGroupsFilterView (QWidget *parent)
 Constructor.
 
virtual ~YQPkgPackageKitGroupsFilterView ()
 Destructor.
 
YQPkgPackageKitGroupselection () const
 Returns the currently selected item or 0 if there is none.
 
bool check (ZyppSel selectable, ZyppPkg pkg)
 Check if 'pkg' matches the selected group. More...
 
YPkgGroupEnum selectedGroup () const
 Returns the (untranslated!) currently selected group enum.
 

Protected Slots

void slotSelectionChanged (QTreeWidgetItem *newSelection)
 

Protected Member Functions

void fillGroups ()
 

Protected Attributes

YPkgGroupEnum _selectedGroup
 
std::map< YPkgGroupEnum, YQPkgPackageKitGroup * > _groupsMap
 
std::map< std::string, YPkgGroupEnum > _groupsCache
 

Detailed Description

Filter view for PackageKit groups.

Uses the packages' RPM group tags and maps them to the corresponding PackageKit group.

Definition at line 108 of file YQPkgPackageKitGroupsFilterView.h.

Member Function Documentation

◆ check()

bool YQPkgPackageKitGroupsFilterView::check ( ZyppSel  selectable,
ZyppPkg  pkg 
)

Check if 'pkg' matches the selected group.

Returns true if there is a match, false otherwise.

Definition at line 350 of file YQPkgPackageKitGroupsFilterView.cc.

Here is the call graph for this function:

◆ filter

void YQPkgPackageKitGroupsFilterView::filter ( )
slot

Filter according to the view's rules and current selection.

Emits those signals: filterStart() filterMatch() for each pkg that matches the filter filterFinished()

Definition at line 275 of file YQPkgPackageKitGroupsFilterView.cc.

Here is the call graph for this function:

◆ filterStart

void YQPkgPackageKitGroupsFilterView::filterStart ( )
signal

Emitted when the filtering starts.

Use this to clear package lists etc. prior to adding new entries.

◆ selectSomething

void YQPkgPackageKitGroupsFilterView::selectSomething ( )
slot

Select a list entry (if there is any).

Usually this will be the first list entry, but don't rely on that - this might change without notice. Emits signal currentItemChanged().

Definition at line 256 of file YQPkgPackageKitGroupsFilterView.cc.


The documentation for this class was generated from the following files: