Browse Subversion Repository
Contents of /src/xmlprefshandler.h
Parent Directory
| Revision Log
Revision 16 -
( show annotations)
( download)
( as text)
Thu Jul 15 14:45:50 2010 UTC
(13 years, 10 months ago)
by mip
File MIME type: text/x-chdr
File size: 853 byte(s)
New thread post feature
and some bug fix
| 1 |
#ifndef __XMLPREFSHANDLER_H__ |
| 2 |
#define __XMLPREFSHANDLER_H__ |
| 3 |
|
| 4 |
#include <QtXml> |
| 5 |
|
| 6 |
struct Kimo2chPrefs |
| 7 |
{ |
| 8 |
QString boardListURL; |
| 9 |
bool rebuildListOnStartup; |
| 10 |
QString initialName; |
| 11 |
QString initialMail; |
| 12 |
bool defaultSage; |
| 13 |
int windowHeight; |
| 14 |
int windowWidth; |
| 15 |
QString browserFontFamily; |
| 16 |
int browserFontSize; |
| 17 |
QList<int> columnWidth; |
| 18 |
QStringList sessionURLs; |
| 19 |
bool isUseProxy; |
| 20 |
QString proxyHost; |
| 21 |
quint16 proxyPort; |
| 22 |
QString proxyUser; |
| 23 |
QString proxyPassword; |
| 24 |
bool reloadAfterPost; |
| 25 |
}; |
| 26 |
|
| 27 |
class XmlPrefsHandler : public QXmlDefaultHandler |
| 28 |
{ |
| 29 |
//Q_OBJECT; |
| 30 |
public: |
| 31 |
XmlPrefsHandler(Kimo2chPrefs *prefs); |
| 32 |
virtual ~XmlPrefsHandler() {} |
| 33 |
|
| 34 |
bool startElement(const QString&, const QString&, const QString &name, const QXmlAttributes&); |
| 35 |
bool characters(const QString &ch); |
| 36 |
|
| 37 |
private: |
| 38 |
Kimo2chPrefs *prefsRef; |
| 39 |
QString itemName; |
| 40 |
}; |
| 41 |
|
| 42 |
#endif // __XMLPREFSHANDLER_H__ |
|