moving to qmake
[kfpm.git] / kfpm_pacman.h
blob97fce532c5a66e612d0f490b08c816ca346ea607
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 <qstringlist.h>
14 #include <pacman.h>
16 #define ROOTDIR "/"
17 #define PACCONF "/etc/pacman.conf"
19 class FPM {
20 private:
21 QString PacmanConfig;
22 QPtrList<PM_DB> Syncs;
23 void pacman_init(char*, char*);
24 public:
25 FPM(char *root = ROOTDIR, char *configfile = PACCONF);
26 ~FPM();
27 void setSync(QPtrList<PM_DB>);
28 QPtrList<PM_DB> getSync(void);
29 QStringList sync_group(QPtrList<PM_DB>, QStringList targets = NULL);
32 #endif /* ifndef KFPM_PACMAN_H */