diff --git a/updateparser.cpp b/updateparser.cpp index 92a10bfa..91757ef6 100644 --- a/updateparser.cpp +++ b/updateparser.cpp @@ -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; diff --git a/updateparser.h b/updateparser.h index c018891c..e99eb1da 100644 --- a/updateparser.h +++ b/updateparser.h @@ -5,31 +5,12 @@ #include #include -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;