libyui-qt-pkg
Loading...
Searching...
No Matches
YQPkgProductList.h
1/*
2 Copyright (c) 2000 - 2010 Novell, Inc.
3 Copyright (c) 2021 SUSE LLC
4
5 This library is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as
7 published by the Free Software Foundation; either version 2.1 of the
8 License, or (at your option) version 3.0 of the License. This library
9 is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12 License for more details. You should have received a copy of the GNU
13 Lesser General Public License along with this library; if not, write
14 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
15 Floor, Boston, MA 02110-1301 USA
16*/
17
18
19/*
20 File: YQPkgProductList.h
21 Author: Stefan Hundhammer <shundhammer.de>
22*/
23
24
25#ifndef YQPkgProductList_h
26#define YQPkgProductList_h
27
28#include <string>
29#include "YQPkgObjList.h"
30
31using std::string;
32
34
35
40{
41 Q_OBJECT
42
43public:
44
48 YQPkgProductList( QWidget * parent );
49
53 virtual ~YQPkgProductList();
54
55
56public slots:
57
63 void addProductItem( ZyppSel selectable,
64 ZyppProduct zyppProduct );
65
69 void fillList();
70
71
72public:
73
78
82 int vendorCol() const { return _vendorCol; }
83
84
85protected:
86
87
88 // Data members
89
90 int _vendorCol;
91};
92
93
94
96{
97public:
98
104 ZyppSel selectable,
105 ZyppProduct zyppProduct );
106
110 virtual ~YQPkgProductListItem();
111
115 ZyppProduct zyppProduct() const { return _zyppProduct; }
116
117
118 // Columns
119
120 int statusCol() const { return _productList->statusCol(); }
121 int summaryCol() const { return _productList->summaryCol(); }
122 int versionCol() const { return _productList->versionCol(); }
123 int vendorCol() const { return _productList->vendorCol(); }
124
125
126protected:
127
134 virtual void applyChanges();
135
136
137 // Data members
138
139 YQPkgProductList * _productList;
140 ZyppProduct _zyppProduct;
141};
142
143
144#endif // ifndef YQPkgProductList_h
Definition YQPkgObjList.h:413
ZyppSel selectable() const
Definition YQPkgObjList.h:452
Abstract base class to display a list of zypp::ResObjects. Handles most generic stuff like setting st...
Definition YQPkgObjList.h:53
Definition YQPkgProductList.h:96
virtual ~YQPkgProductListItem()
Definition YQPkgProductList.cc:146
virtual void applyChanges()
Definition YQPkgProductList.cc:155
ZyppProduct zyppProduct() const
Definition YQPkgProductList.h:115
Display a list of zypp::Product objects.
Definition YQPkgProductList.h:40
YQPkgProductListItem * selection() const
virtual ~YQPkgProductList()
Definition YQPkgProductList.cc:74
void fillList()
Definition YQPkgProductList.cc:81
void addProductItem(ZyppSel selectable, ZyppProduct zyppProduct)
Definition YQPkgProductList.cc:108
int vendorCol() const
Definition YQPkgProductList.h:82