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