blob: 0ac00074c0cf0735da01a3ff7f8465f44a2f7025 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// This file is generated by kxml_compiler from occinfo.xml.
#ifndef UPDATEINFO_H
#define UPDATEINFO_H
#include <QString>
#include <QDomElement>
#include <QXmlStreamWriter>
namespace OCC {
class UpdateInfo
{
public:
void setVersion(const QString &v);
QString version() const;
void setVersionString(const QString &v);
QString versionString() const;
void setWeb(const QString &v);
QString web() const;
void setDownloadUrl(const QString &v);
QString downloadUrl() const;
/**
Parse XML object from DOM element.
*/
static UpdateInfo parseElement(const QDomElement &element, bool *ok);
static UpdateInfo parseFile(const QString &filename, bool *ok);
static UpdateInfo parseString(const QString &xml, bool *ok);
private:
QString mVersion;
QString mVersionString;
QString mWeb;
QString mDownloadUrl;
};
} // namespace OCC
#endif // UPDATEINFO_H
|