ditz import
[kfpm.git] / kfpm_pacman.h
blobc521964e5c1586b90bee51592c722f60443a64fa
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 <Qt3Support/q3valuevector.h>
16 #include <QStringList>
18 #define ROOTDIR "/"
19 #define PACCONF "/etc/pacman.conf"
21 class FPM {
22 private:
23 QString PacmanConfig;
24 Q3ValueVector<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(Q3ValueVector<PM_DB*>);
31 Q3ValueVector<PM_DB*> getSync(void);
32 QStringList sync_group(Q3ValueVector<PM_DB*>);
33 QStringList sync_group(Q3ValueVector<PM_DB*>, QStringList*);
34 QString PM_LISTtoQString(PM_LIST*);
35 int sync_synctree(int, Q3ValueVector<PM_DB*>);
36 int sync_upgrade();
39 #endif /* ifndef KFPM_PACMAN_H */
41 // vim: sw=4 ts=4 noet