show version and desc in PackagesView
[kfpm.git] / kfpm_pacman.h
blobc7fe42ff07ea8fcc66d7da42d5fa5f6eb31a320e
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 = ROOTDIR, char *configfile = PACCONF);
28 ~FPM();
29 void setSync(QValueVector<PM_DB*>);
30 QValueVector<PM_DB*> getSync(void);
31 QStrList sync_group(QValueVector<PM_DB*>);
32 QStrList sync_group(QValueVector<PM_DB*>, QStrList*);
35 #endif /* ifndef KFPM_PACMAN_H */