-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebInterface.h
61 lines (43 loc) · 1.27 KB
/
debInterface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//////////////////////////////////////////////////////////////
// $Id: debInterface.h 20708 1999-05-03 07:21:48Z coolo $
//
// Author: Toivo Pedaste
//
//////////////////////////////////////////////////////////////
#ifndef DEB_IFACE_H
#define DEB_IFACE_H
#include "config.h"
#include <qlist.h>
#include <kprocess.h>
#include <kfm.h>
#include "procbuf.h"
#include "pkgInterface.h"
class packageInfo;
class updateLoc;
class cacheObj;
class DEB: public pkgInterface
{
Q_OBJECT
public:
DEB();
~DEB();
bool isType(char *buf, const char *fname);
void listPackages(QList<packageInfo> *pki);
param *initinstallOptions();
param *inituninstallOptions();
packageInfo *getPackageInfo(char mode, const char *name, const char *version);
QList<char> *getFileList(packageInfo *p);
void listInstalledPackages(QList<packageInfo> *pki);
QString FindFile(const char *name);
bool parseName(QString name, QString *n, QString *v);
public slots:
void setLocation();
void setAvail(LcacheObj *);
private:
packageInfo* collectInfo(const char *inp);
void listPackList(QList<packageInfo> *pki, const char *fname, cacheObj *cp);
int dpkgChange(int del);
int doUninstall(int installFlags, QString packs);
int doInstall(int installFlags, QString packs);
};
#endif