libyui-ncurses-pkg
Loading...
Searching...
No Matches
NCPkgPackageDetails.h
1/*
2 Copyright (c) [2002-2011] 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 File: NCPkgPackageDetails.h
19
20*/
21
22
23#ifndef NCPkgPackageDetails_h
24#define NCPkgPackageDetails_h
25
26#include <yui/ncurses/NCRichText.h>
27
28#include "NCZypp.h"
29
30
32
33
34class NCPkgPackageDetails : public NCRichText
35{
36 NCPkgPackageDetails & operator=( const NCPkgPackageDetails & );
38
39private:
41
42public:
43
44 NCPkgPackageDetails( YWidget *parent, std::string initial_text, NCPackageSelector * pkger );
45
46 std::string createText( std::list <std::string> info, bool oneline );
47
48 std::string createHtmlText( std::string description );
49
50 std::string createRelLine( const zypp::Capabilities & info );
51
52 std::string commonHeader( ZyppObj pkgPtr );
53
54 void longDescription( ZyppObj pkgPtr );
55
56 void technicalData( ZyppObj pkgPtr, ZyppSel slbPtr );
57
58 void fileList (ZyppSel slbPtr);
59
60 void dependencyList( ZyppObj objPtr, ZyppSel slbPtr );
61
62 bool patchDescription( ZyppObj objPtr, ZyppSel selectable );
63};
64#endif
Definition NCPackageSelector.h:105
Definition NCPkgPackageDetails.h:35