libyui-ncurses-pkg
NCPkgPackageDetails.h
1 /****************************************************************************
2 |
3 | Copyright (c) [2002-2011] Novell, Inc.
4 | All Rights Reserved.
5 |
6 | This program is free software; you can redistribute it and/or
7 | modify it under the terms of version 2 of the GNU General Public License as
8 | published by the Free Software Foundation.
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
16 | along with this program; if not, contact Novell, Inc.
17 |
18 | To contact Novell about this file by physical or electronic mail,
19 | you may find current contact information at www.novell.com
20 |
21 |***************************************************************************/
22 
23 
24 /*---------------------------------------------------------------------\
25 | |
26 | __ __ ____ _____ ____ |
27 | \ \ / /_ _/ ___|_ _|___ \ |
28 | \ V / _` \___ \ | | __) | |
29 | | | (_| |___) || | / __/ |
30 | |_|\__,_|____/ |_| |_____| |
31 | |
32 | core system |
33 | (C) SuSE GmbH |
34 \----------------------------------------------------------------------/
35 
36  File: NCPkgPackageDetails.h
37 
38 /-*/
39 
40 #ifndef NCPkgPackageDetails_h
41 #define NCPkgPackageDetails_h
42 
43 #include <yui/ncurses/NCRichText.h>
44 
45 #include "NCZypp.h"
46 
47 
48 class NCPackageSelector;
49 
50 
51 class NCPkgPackageDetails : public NCRichText
52 {
53  NCPkgPackageDetails & operator=( const NCPkgPackageDetails & );
55 
56 private:
57  NCPackageSelector *pkg;
58 
59 public:
60 
61  NCPkgPackageDetails( YWidget *parent, std::string initial_text, NCPackageSelector * pkger );
62 
63  std::string createText( std::list <std::string> info, bool oneline );
64 
65  std::string createHtmlText( std::string description );
66 
67  std::string createRelLine( const zypp::Capabilities & info );
68 
69  std::string commonHeader( ZyppObj pkgPtr );
70 
71  void longDescription( ZyppObj pkgPtr );
72 
73  void technicalData( ZyppObj pkgPtr, ZyppSel slbPtr );
74 
75  void fileList (ZyppSel slbPtr);
76 
77  void dependencyList( ZyppObj objPtr, ZyppSel slbPtr );
78 
79  bool patchDescription( ZyppObj objPtr, ZyppSel selectable );
80 };
81 #endif
Definition: NCPkgPackageDetails.h:51
Definition: NCPackageSelector.h:109