CARDS 2.4.87
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 #include <libcards.h>
30 
31 using namespace std;
32 
33 namespace cards
34 {
35  class CWrapper;
36  class CClient;
37 
38  class CPackage
39  {
40  friend CWrapper;
41  friend CClient;
42  public:
43  CPackage();
44  virtual ~CPackage(){}
45  string getCollection();
46  string getName();
47  string getVersion();
48  string getPackager();
49  string getDescription();
50 
51  bool isInstalled();
52  bool isToBeInstalled();
53  bool isToBeRemoved();
54  void setStatus(CPSTATUS pstatus);
55  void unSetStatus(CPSTATUS pstatus);
56  CPSTATUS getStatus();
57 
58  protected:
59  string _collection;
60  string _name;
61  string _version;
62  string _packager;
63  string _description;
64 
65  CPSTATUS _status;
66  };
67 }
68 #endif
Definition: cards_client.h:56
Definition: cards_wrapper.h:58
Definition: cards_package.h:38
Definition: cards_client.cxx:26