Mac build cleanup #1

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" #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() bool UpdateParser::startDocument()
{ {
inRelease=false; inRelease=false;

View File

@ -5,31 +5,12 @@
#include <QMetaType> #include <QMetaType>
#include <QDate> #include <QDate>
struct Update class Update
{ {
public: public:
explicit Update() { size=0;} explicit Update();
explicit Update(const Update & copy) { explicit Update(const Update & copy);
type=copy.type; explicit Update(QString _type, QString _version, QString _platform, QDate _date);
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;
}
QString type; QString type;
QString version; QString version;
QString platform; QString platform;