CARDS 2.3.99
Package manager for the NuTyX GNU/Linux distribution
cards_client.h
1 /*
2  * cards_client.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_CLIENT_H
25 #define CARDS_CLIENT_H
26 
27 #include <cstddef>
28 
29 #include <libcards.h>
30 
31 using namespace std;
32 
33 // Define Cards_wrapper singleton for friendship
34 class Cards_wrapper;
35 
36 
44 class Cards_client : public Pkginst
45 {
46  // Only Cards_wrapper can own this class
47  friend Cards_wrapper;
48 
49 protected:
55  Cards_client ();
56 
64  ~Cards_client ();
65 
73  set<string> ListOfInstalledPackages();
74 
80  void InstallPackages(const set<string>& pPackageList);
81 
87  void RemovePackages(const set<string>& pPackageList);
88 private:
89  void getLocalePackagesList();
90 };
91 
92 #endif // CARDS_WRAPPER_H
GUI interfacing wrapper for CARDS.
Definition: cards_wrapper.h:47
Interface Class to access Cards Library Method through inheritence.
Definition: cards_client.h:44
Definition: libcards.h:1603