SVN_SILENT made messages (.desktop file)
[kdeadmin.git] / kpackage / debInterface.h
blob4a0c94c2efd1d5d073aef104dc3c85a77cff0076
1 /*
2 ** Copyright (C) 1999,2007 Toivo Pedaste <toivo@ucs.uwa.edu.au>
3 **
4 */
6 /*
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
30 #include <kaction.h>
31 #include <pkgInterface.h>
33 //Added by qt3to4:
34 //#include <Qt3Support/Q3PtrList>
36 #define APT_SOURCE "/etc/apt/sources.list"
38 class DEB: public pkgInterface
40 Q_OBJECT
42 public:
43 DEB();
44 ~DEB();
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);
63 protected:
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);
79 private slots:
80 void fileS();
82 private:
84 QStringList getRFileList(packageInfo *p);
88 #endif // DEBINTERFACE_H