libyui-qt-pkg
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 
35 {
36  Q_OBJECT
37 
38 public:
39 
43  YQPkgServiceFilterView( QWidget * parent );
44 
48  virtual ~YQPkgServiceFilterView();
49 
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
static bool any_service()
Definition: YQPkgServiceFilterView.cc:57
YQPkgServiceFilterView(QWidget *parent)
Definition: YQPkgServiceFilterView.cc:33
virtual ~YQPkgServiceFilterView()
Definition: YQPkgServiceFilterView.cc:41
Definition: YQPkgSecondaryFilterView.h:36
A widget to display a list of libzypp services.
Definition: YQPkgServiceList.h:43
Definition: YQPkgServiceFilterView.h:34