blob: b3ba172e35b3fe5ccfe6028561d6586bbf8975d5 (
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 *
* [email protected] *
* *
* 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 <tqstringlist.h>
class packageBase
{
public:
packageBase();
virtual ~packageBase();
// Generic accessors and mutators for child classes
virtual TQString generatePackage( ) = 0 ;
//virtual bool loadFile(KURL theFile) = 0;
//virtual bool saveFile(KURL theFile) = 0;
virtual TQString getAppName();
virtual TQString getAppVersion();
virtual TQString getAppRevision();
virtual TQString getAppGroup();
virtual TQString getAppPackager();
virtual TQString getAppURL();
virtual TQString getAppSummary();
virtual TQString getAppVendor();
virtual TQString getAppLicense();
virtual TQString getAppArch();
virtual TQString getAppDescription();
virtual TQString getAppChangelog();
virtual TQString getAppSource();
virtual TQStringList getAppFileList();
virtual void setAppName(const TQString&);
virtual void setAppVersion(const TQString&);
virtual void setAppRevision(const TQString&);
virtual void setAppGroup(const TQString&);
virtual void setAppPackager(const TQString&);
virtual void setAppURL(const TQString&);
virtual void setAppSummary(const TQString&);
virtual void setAppVendor(const TQString&);
virtual void setAppLicense(const TQString&);
virtual void setAppArch(const TQString&);
virtual void setAppDescription(const TQString&);
virtual void setAppChangelog(const TQString&);
virtual void setAppFileList(const TQStringList &list);
private:
TQString AppName;
TQString AppVersion;
TQString AppRevision;
TQString AppGroup;
TQString AppPackager;
TQString AppURL;
TQString AppSummary;
TQString AppVendor;
TQString AppLicense;
TQString AppArch;
TQString AppDescription;
TQString AppChangelog;
TQString AppSource;
TQStringList AppFileList;
};
#endif
|