CARDS 2.4.121
Package manager for the NuTyX GNU/Linux distribution
cards_package.h
1
/*
2
* cards_package.h
3
*
4
* Copyright 2017 Gianni Peschiutta <artemia@nutyx.org>
5
* Copyright 2017 - 2020 Thierry Nuttens <tnut@nutyx.org>
6
*
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20
* MA 02110-1301, USA.
21
*
22
*
23
*/
24
25
#ifndef CARDS_PACKAGE_H
26
#define CARDS_PACKAGE_H
27
28
#include <cstddef>
29
#include <string>
30
#include <libcards.h>
31
32
using namespace
std;
33
34
namespace
cards
35
{
36
class
CWrapper;
37
class
CClient;
38
39
class
CPackage
40
{
41
friend
CWrapper
;
42
friend
CClient
;
43
public
:
44
CPackage
();
45
virtual
~
CPackage
(){}
46
string
getSetList();
47
string
getName();
48
string
getVersion();
49
string
getPackager();
50
string
getDescription();
51
52
bool
isInstalled();
53
bool
isToBeInstalled();
54
bool
isToBeRemoved();
55
void
setStatus(CPSTATUS pstatus);
56
void
unSetStatus(CPSTATUS pstatus);
57
CPSTATUS getStatus();
58
59
protected
:
60
string
m_set;
61
string
_name;
62
string
_version;
63
string
_packager;
64
string
_description;
65
66
CPSTATUS _status;
67
};
68
}
69
#endif
cards::CPackage
Definition:
cards_package.h:40
cards::CClient
Definition:
cards_client.h:58
cards::CWrapper
Definition:
cards_wrapper.h:60
fltk
cards_package.h
Generated on Tue Aug 25 2020 06:11:42 for CARDS 2.4.121 by
1.8.19