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