mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-09 04:30:43 +00:00
Mac build cleanup #1
This commit is contained in:
parent
c4abab8cfc
commit
4c711f6b0b
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user