libyui  3.10.0
YRpmGroupsTree.h
1 /*
2  Copyright (C) 2000-2012 Novell, Inc
3  This library is free software; you can redistribute it and/or modify
4  it under the terms of the GNU Lesser General Public License as
5  published by the Free Software Foundation; either version 2.1 of the
6  License, or (at your option) version 3.0 of the License. This library
7  is distributed in the hope that it will be useful, but WITHOUT ANY
8  WARRANTY; without even the implied warranty of MERCHANTABILITY or
9  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
10  License for more details. You should have received a copy of the GNU
11  Lesser General Public License along with this library; if not, write
12  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
13  Floor, Boston, MA 02110-1301 USA
14 */
15 
16 
17 /*-/
18 
19  File: YRpmGroupsTree.h
20 
21  Author: Stefan Hundhammer <sh@suse.de>
22 
23 /-*/
24 
25 #ifndef YRpmGroupsTree_h
26 #define YRpmGroupsTree_h
27 
28 
29 #include "YStringTree.h"
30 
31 
32 
33 /**
34  * This was an efficient storage for RPM group tags.
35  *
36  * THIS CLASS IS OBSOLETE. DO NOT USE THIS ANYMORE.
37  **/
38 #ifndef SUPPRESS_YRPMGROUPSTREE_OBSOLETE_WARNING
39 # warning The YRpmGroupsTree class is obsolete. DO NOT USE ANYMORE.
40 #endif
42 {
43 public:
44 
46  virtual ~YRpmGroupsTree();
47  YStringTreeItem * addRpmGroup( const std::string & rpmGroup )
48  { return 0; }
49 
50  std::string rpmGroup( const YStringTreeItem * node )
51  { return origPath( node, '/', false ); }
52 
53  std::string translatedRpmGroup( const YStringTreeItem * node )
54  { return translatedPath( node, '/', false ); }
55 
56  void addFallbackRpmGroups();
57 };
58 
59 
60 
61 #endif // YRpmGroupsTree_h
YStringTree
Abstract base class for filter views with hierarchical filter criteria - e.g., RPM group tags,...
Definition: YStringTree.h:41
YRpmGroupsTree
This was an efficient storage for RPM group tags.
Definition: YRpmGroupsTree.h:41
YStringTree::translatedPath
std::string translatedPath(const YStringTreeItem *item, char delimiter, bool startWithDelimiter=true)
Construct a complete original path for the specified tree item.
Definition: YStringTree.h:108
SortedTreeItem
Template class for tree items that maintain sort order.
Definition: TreeItem.h:191
YStringTree::origPath
std::string origPath(const YStringTreeItem *item, char delimiter, bool startWithDelimiter=true)
Construct a complete original path for the specified tree item.
Definition: YStringTree.h:97