kfpm.pro under version controll
[kfpm.git] / kfpm_pacman.h
blob0c83a2f4aeefddf6df10f7e9b80bad3a4951910e
1 /*
2 * kfpm_pacman.h
4 * Copyright (c) 2007 VOROSKOI Andras <voroskoi@frugalware.org>
6 * Copyright: See COPYING file that comes with this distribution.
8 */
10 #ifndef KFPM_PACMAN_H
11 #define KFPM_PACMAN_H
13 #include <pacman.h>
15 #include <qvaluevector.h>
16 #include <qstrlist.h>
18 #define ROOTDIR "/"
19 #define PACCONF "/etc/pacman.conf"
21 class FPM {
22 private:
23 QString PacmanConfig;
24 QValueVector<PM_DB*> Syncs;
25 void pacman_init(char*, char*);
26 public:
27 FPM(char *root = (char *)ROOTDIR, char *configfile = (char *)PACCONF);
28 ~FPM();
29 PM_DB *LocalDB;
30 void setSync(QValueVector<PM_DB*>);
31 QValueVector<PM_DB*> getSync(void);
32 QStrList sync_group(QValueVector<PM_DB*>);
33 QStrList sync_group(QValueVector<PM_DB*>, QStrList*);
34 QString PM_LISTtoQString(PM_LIST*);
35 int sync_synctree(int, QValueVector<PM_DB*>);
38 #endif /* ifndef KFPM_PACMAN_H */