CARDS 2.3.99
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  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301, USA.
20  *
21  *
22  */
23 
24 #ifndef CARDS_PACKAGE_H
25 #define CARDS_PACKAGE_H
26 
27 #include <cstddef>
28 #include <string>
29 
30 using namespace std;
31 
32 enum CPSTATUS
33 {
34  INSTALLED = 0x01,
35  TO_INSTALL = 0x02,
36  TO_REMOVE = 0x04,
37  TO_UPGRADE = 0x08
38 };
39 
40 class Cards_wrapper;
41 
43 {
44  friend Cards_wrapper;
45 public:
46  Cards_package();
47  ~Cards_package();
48  string getCollection();
49  string getName();
50  string getVersion();
51  string getPackager();
52  string getDescription();
53  bool isInstalled();
54  bool isToBeInstalled();
55  bool isToBeRemoved();
56  void setStatus(CPSTATUS pstatus);
57  void unSetStatus(CPSTATUS pstatus);
58  CPSTATUS getStatus();
59 
60 protected:
61  string _collection;
62  string _name;
63  string _version;
64  string _packager;
65  string _description;
66  CPSTATUS _status;
67 };
68 
69 #endif
GUI interfacing wrapper for CARDS.
Definition: cards_wrapper.h:47
Definition: cards_package.h:42