SVN_SILENT made messages (.desktop file)
[kdeadmin.git] / kpackage / rpmInterface.h
blob24bfcf389a3e104f3d2d26fce3a2e6038c76353c
1 /*
2 ** Copyright (C) 1999,2000 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 RPM_IFACE_H
28 #define RPM_IFACE_H
30 #include "packageInfo.h"
31 #include "pkgInterface.h"
33 class RPM : public pkgInterface
35 Q_OBJECT
37 public:
38 RPM();
39 ~RPM();
41 bool isType(char *buf, const QString &fname);
43 packageInfo *getPackageInfo(char mode, const QString &name, const QString &version);
44 QStringList getChangeLog(packageInfo *p);
46 bool filesTab(packageInfo *p);
47 // If files tab is to be enabled
49 bool changeTab(packageInfo *p);
50 // If change log tab is to be enabled
52 void getIFileList( packageInfo *p );
53 void getFFileList( packageInfo *p );
55 packageInfo *getPackageInfo( const QString &name);
56 packageInfo *getFPackageInfo( const QString &name);
58 QStringList depends(const QString &name, int src);
59 QStringList verify(packageInfo *p, const QStringList &files);
61 QStringList FindFile(const QString &name, bool seachAll=false);
63 QString provMap(const QString &p);
65 private:
67 bool rpmSetup;
68 QStringList infoList;
70 QStringList getIChangeLog( packageInfo *p );
71 QStringList getUChangeLog( const QString &fn );
73 QString quotePath( const QString &path);
74 QString packageQuery();
78 #endif