summaryrefslogtreecommitdiffstats
path: root/parts/distpart/packagebase.h
blob: 95d7d81382daa85e696bd839c68744b92e48040a (plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/***************************************************************************
 *   Copyright (C) 2004 by ian reinhart geiser                             *
 *   geiseri@kde.org                                                       *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.             *
 ***************************************************************************/
#ifndef __PACKAGEBASE_H__
#define __PACKAGEBASE_H__

#include <kurl.h>
#include <qstringlist.h>

class packageBase
{

public:
   packageBase();
   virtual ~packageBase();
   
// Generic accessors and mutators for child classes
   virtual QString generatePackage( ) = 0 ;
   //virtual bool loadFile(KURL theFile) = 0;
   //virtual bool saveFile(KURL theFile) = 0;

   virtual QString getAppName();
   virtual QString getAppVersion();
   virtual QString getAppRevision();
   virtual QString getAppGroup();
   virtual QString getAppPackager();
   virtual QString getAppURL();
   virtual QString getAppSummary();
   virtual QString getAppVendor();
   virtual QString getAppLicense();
   virtual QString getAppArch();
   virtual QString getAppDescription();
   virtual QString getAppChangelog();
   virtual QString getAppSource();
   virtual QStringList getAppFileList();
   
   virtual void setAppName(const QString&);
   virtual void setAppVersion(const QString&);
   virtual void setAppRevision(const QString&);
   virtual void setAppGroup(const QString&);
   virtual void setAppPackager(const QString&);
   virtual void setAppURL(const QString&);
   virtual void setAppSummary(const QString&);
   virtual void setAppVendor(const QString&);
   virtual void setAppLicense(const QString&);
   virtual void setAppArch(const QString&);
   virtual void setAppDescription(const QString&);
   virtual void setAppChangelog(const QString&);
   virtual void setAppFileList(const QStringList &list);
   
   private:
   	QString AppName;
	QString AppVersion;
	QString AppRevision;
	QString AppGroup;
	QString AppPackager;
	QString AppURL;
	QString AppSummary;
	QString AppVendor;
	QString AppLicense;
	QString AppArch;
	QString AppDescription;
	QString AppChangelog;
	QString AppSource;
	QStringList AppFileList;
};

#endif