libyui-qt-pkg
 
Loading...
Searching...
No Matches
YQPkgSelMapper.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: YQPkgSelMapper.h
21 Author: Stefan Hundhammer <shundhammer.de>
22*/
23
24
25#ifndef YQPkgSelMapper_h
26#define YQPkgSelMapper_h
27
28#include "YQZypp.h"
29#include <map>
30
31
32
40{
41public:
42
47
52 virtual ~YQPkgSelMapper();
53
58
59 ZyppSel findZyppSel( ZyppPkg pkg );
60
65 static int refCount() { return _refCount; }
66
74 void rebuildCache();
75
76
77protected:
78
79 typedef std::map<ZyppPkg, ZyppSel> Cache;
80 typedef std::pair<ZyppPkg, ZyppSel> CachePair;
81 typedef Cache::iterator CacheIterator;
82
83 static int _refCount;
84 static Cache _cache;
85};
86
87
88
89#endif // YQPkgSelMapper_h
ZyppSel findZyppSel(ZyppPkg pkg)
Definition YQPkgSelMapper.cc:94
static int refCount()
Definition YQPkgSelMapper.h:65
void rebuildCache()
Definition YQPkgSelMapper.cc:54
virtual ~YQPkgSelMapper()
Definition YQPkgSelMapper.cc:44
YQPkgSelMapper()
Definition YQPkgSelMapper.cc:37