1
0
mirror of https://gitlab.com/pholy/OSCAR-code.git synced 2025-04-09 04:30:43 +00:00

Mac build cleanup

This commit is contained in:
Mark Watkins 2011-12-17 16:40:04 +10:00
parent c4abab8cfc
commit 4c711f6b0b
2 changed files with 31 additions and 23 deletions

View File

@ -3,6 +3,33 @@
#include "updateparser.h"
Update::Update()
{
size=0;
}
Update::Update(const Update & copy)
{
type=copy.type;
version=copy.version;
platform=copy.platform;
date=copy.date;
filename=copy.filename;
url=copy.url;
hash=copy.hash;
size=copy.size;
notes=copy.notes;
unzipped_path=copy.unzipped_path;
}
Update::Update(QString _type, QString _version, QString _platform, QDate _date)
{
type=_type;
version=_version;
platform=_platform;
date=_date;
size=0;
}
bool UpdateParser::startDocument()
{
inRelease=false;

View File

@ -5,31 +5,12 @@
#include <QMetaType>
#include <QDate>
struct Update
class Update
{
public:
explicit Update() { size=0;}
explicit Update(const Update & copy) {
type=copy.type;
version=copy.version;
platform=copy.platform;
date=copy.date;
filename=copy.filename;
url=copy.url;
hash=copy.hash;
size=copy.size;
notes=copy.notes;
unzipped_path=copy.unzipped_path;
}
Update(QString _type, QString _version, QString _platform, QDate _date)
{
type=_type;
version=_version;
platform=_platform;
date=_date;
size=0;
}
explicit Update();
explicit Update(const Update & copy);
explicit Update(QString _type, QString _version, QString _platform, QDate _date);
QString type;
QString version;
QString platform;