libyui-qt-pkg
2.47.2
YQPkgServiceFilterView.h
1
/**************************************************************************
2
Copyright (C) 2018 SUSE LLC
3
All Rights Reserved.
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License along
16
with this program; if not, write to the Free Software Foundation, Inc.,
17
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
19
*/
20
21
22
#ifndef YQPkgServiceFilterView_h
23
#define YQPkgServiceFilterView_h
24
25
#include "YQPkgSecondaryFilterView.h"
26
27
class
QWidget;
28
class
YQPkgServiceList
;
29
30
/**
31
* A widget to display a libzypp servic filter view. It should be used only when
32
* a libzypp service is present in the system.
33
*/
34
class
YQPkgServiceFilterView
:
public
YQPkgSecondaryFilterView
35
{
36
Q_OBJECT
37
38
public
:
39
40
/**
41
* Constructor
42
**/
43
YQPkgServiceFilterView
( QWidget * parent );
44
45
/**
46
* Destructor
47
**/
48
virtual
~YQPkgServiceFilterView
();
49
50
/**
51
* Is any enabled libzypp service present?
52
*/
53
static
bool
any_service
();
54
55
protected
:
56
57
virtual
void
primaryFilter();
58
virtual
void
primaryFilterIfVisible();
59
60
// Data members
61
// list of services, owned by the parent widget
62
YQPkgServiceList
* _serviceList;
63
};
64
65
#endif // ifndef YQPkgServiceFilterView_h
YQPkgServiceFilterView::YQPkgServiceFilterView
YQPkgServiceFilterView(QWidget *parent)
Constructor.
Definition:
YQPkgServiceFilterView.cc:31
YQPkgServiceFilterView::~YQPkgServiceFilterView
virtual ~YQPkgServiceFilterView()
Destructor.
Definition:
YQPkgServiceFilterView.cc:39
YQPkgSecondaryFilterView
This is a base class for filter views containing a secondary filter.
Definition:
YQPkgSecondaryFilterView.h:35
YQPkgServiceFilterView
A widget to display a libzypp servic filter view.
Definition:
YQPkgServiceFilterView.h:33
YQPkgServiceList
A widget to display a list of libzypp services.
Definition:
YQPkgServiceList.h:42
YQPkgServiceFilterView::any_service
static bool any_service()
Is any enabled libzypp service present?
Definition:
YQPkgServiceFilterView.cc:55
src
YQPkgServiceFilterView.h
Generated by
1.8.16