2 ** Copyright (C) 1999,2007 Toivo Pedaste <toivo@ucs.uwa.edu.au>
7 ** This program is free software; you can redistribute it and/or modify
8 ** it under the terms of the GNU General Public License as published by
9 ** the Free Software Foundation; either version 2 of the License, or
10 ** (at your option) any later version.
12 ** This program is distributed in the hope that it will be useful,
13 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ** GNU General Public License for more details.
17 ** You should have received a copy of the GNU General Public License
18 ** along with this program in a file called COPYING; if not, write to
19 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20 ** MA 02110-1301, USA.
24 ** Bug reports and questions can be sent to kde-devel@kde.org
27 #ifndef DEBINTERFACE_H
28 #define DEBINTERFACE_H
31 #include <pkgInterface.h>
34 //#include <Qt3Support/Q3PtrList>
36 #define APT_SOURCE "/etc/apt/sources.list"
38 class DEB
: public pkgInterface
46 virtual packageInfo
*getPackageInfo(const QString
&name
);
47 virtual QStringList
getChangeLog(packageInfo
*p
);
49 bool filesTab(packageInfo
*p
);
50 // If files tab is to be enabled
52 bool depTab(packageInfo
*p
);
53 // If dependency tab is to be enabled
55 bool changeTab(packageInfo
*p
);
56 // If change log tab is to be enabled
58 packageInfo
*getFPackageInfo(const QString
&name
);
59 // Get package Info from file
61 QStringList
FindFile(const QString
&name
, bool seachAll
=false);
64 packageInfo
*getIPackageInfo(const QString
&name
);
65 packageInfo
*getIRPackageInfo(const QString
&name
);
67 QStringList
getIChangeLog(packageInfo
*p
);
69 void getIFileList(packageInfo
*p
);
70 void getFFileList(packageInfo
*p
);
73 void listRemotePackages(QList
<packageInfo
*> &pki
);
75 void makeMenu(KActionCollection
* act
);
76 void setMenu(KActionCollection
* act
, bool enable
);
84 QStringList
getRFileList(packageInfo
*p
);
88 #endif // DEBINTERFACE_H