2012-04-02 22:10:29 +04:00
|
|
|
// This file is generated by kxml_compiler from occinfo.xml.
|
|
|
|
// All changes you do to this file will be lost.
|
2014-01-15 14:08:42 +04:00
|
|
|
#ifndef UPDATEINFO_H
|
|
|
|
#define UPDATEINFO_H
|
2012-04-02 22:10:29 +04:00
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
#include <QDomElement>
|
2013-08-28 22:58:22 +04:00
|
|
|
#include <QXmlStreamWriter>
|
2012-04-02 22:10:29 +04:00
|
|
|
|
2013-04-30 19:41:31 +04:00
|
|
|
namespace Mirall {
|
|
|
|
|
2014-01-15 14:08:42 +04:00
|
|
|
class UpdateInfo
|
2012-04-02 22:10:29 +04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
void setVersion( const QString &v );
|
|
|
|
QString version() const;
|
2014-01-15 14:08:42 +04:00
|
|
|
void setVersionString( const QString &v );
|
|
|
|
QString versionString() const;
|
2012-04-02 22:10:29 +04:00
|
|
|
void setWeb( const QString &v );
|
|
|
|
QString web() const;
|
2014-01-15 14:08:42 +04:00
|
|
|
void setDownloadUrl( const QString &v );
|
|
|
|
QString downloadUrl() const;
|
2012-04-02 22:10:29 +04:00
|
|
|
/**
|
|
|
|
Parse XML object from DOM element.
|
|
|
|
*/
|
2014-01-15 14:08:42 +04:00
|
|
|
static UpdateInfo parseElement( const QDomElement &element, bool *ok );
|
2012-04-02 22:10:29 +04:00
|
|
|
void writeElement( QXmlStreamWriter &xml );
|
2014-01-15 14:08:42 +04:00
|
|
|
static UpdateInfo parseFile( const QString &filename, bool *ok );
|
|
|
|
static UpdateInfo parseString( const QString &xml, bool *ok );
|
2012-04-02 22:10:29 +04:00
|
|
|
bool writeFile( const QString &filename );
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString mVersion;
|
2014-01-15 14:08:42 +04:00
|
|
|
QString mVersionString;
|
2012-04-02 22:10:29 +04:00
|
|
|
QString mWeb;
|
2014-01-15 14:08:42 +04:00
|
|
|
QString mDownloadUrl;
|
2012-04-02 22:10:29 +04:00
|
|
|
};
|
|
|
|
|
2013-04-30 19:41:31 +04:00
|
|
|
} // namespace Mirall
|
|
|
|
|
2014-01-15 14:08:42 +04:00
|
|
|
#endif // UPDATEINFO_H
|