3 #ifndef WOBGEN_MOServerFormat
4 #define WOBGEN_MOServerFormat
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
12 #include <QCoreApplication>
36 static MoneyPos str2MoneyPos(QString,
bool*ok=0);
38 static QString MoneyPos2str(MoneyPos);
40 static MoneyPos locstr2MoneyPos(QString,
bool*ok=0);
42 static QString MoneyPos2locstr(MoneyPos);
44 Q_PROPERTY(QList<QString> weekdays READ weekdays WRITE setweekdays)
46 Q_PROPERTY(QList<QString> shortweekdays READ shortweekdays WRITE setshortweekdays)
48 Q_PROPERTY(QList<QString> months READ months WRITE setmonths)
50 Q_PROPERTY(QList<QString> shortmonths READ shortmonths WRITE setshortmonths)
52 Q_PROPERTY(Nullable<QString> dateformat READ dateformat WRITE setdateformat)
54 Q_PROPERTY(Nullable<QString> timeformat READ timeformat WRITE settimeformat)
56 Q_PROPERTY(Nullable<QString> datetimeformat READ datetimeformat WRITE setdatetimeformat)
58 Q_PROPERTY(Nullable<QString> amtext READ amtext WRITE setamtext)
60 Q_PROPERTY(Nullable<QString> pmtext READ pmtext WRITE setpmtext)
62 Q_PROPERTY(Nullable<QString> decimaldot READ decimaldot WRITE setdecimaldot)
64 Q_PROPERTY(Nullable<QString> thousandseparator READ thousandseparator WRITE setthousandseparator)
66 Q_PROPERTY(Nullable<qint64> thousanddigits READ thousanddigits WRITE setthousanddigits)
68 Q_PROPERTY(Nullable<qint64> moneydecimals READ moneydecimals WRITE setmoneydecimals)
70 Q_PROPERTY(Nullable<QString> currencysymbol READ currencysymbol WRITE setcurrencysymbol)
72 Q_PROPERTY(Nullable<QString> currencysymbolhtml READ currencysymbolhtml WRITE setcurrencysymbolhtml)
74 Q_PROPERTY(Nullable<QString> currencysymbolplain READ currencysymbolplain WRITE setcurrencysymbolplain)
76 Q_PROPERTY(Nullable<
bool> currencysymbolpos READ currencysymbolpos WRITE setcurrencysymbolpos)
78 Q_PROPERTY(Nullable<QString> moneynegative READ moneynegative WRITE setmoneynegative)
80 Q_PROPERTY(Nullable<QString> moneypositive READ moneypositive WRITE setmoneypositive)
82 Q_PROPERTY(Nullable<
MoneyPos> moneypositivepos READ moneypositivepos WRITE setmoneypositivepos)
84 Q_PROPERTY(Nullable<
MoneyPos> moneynegativepos READ moneynegativepos WRITE setmoneynegativepos)
86 Q_PROPERTY(Nullable<QString> timezone READ timezone WRITE settimezone)
88 QList<QString> mp_weekdays;
89 QList<QString> mp_shortweekdays;
90 QList<QString> mp_months;
91 QList<QString> mp_shortmonths;
92 Nullable<QString> mp_dateformat;
93 Nullable<QString> mp_timeformat;
94 Nullable<QString> mp_datetimeformat;
95 Nullable<QString> mp_amtext;
96 Nullable<QString> mp_pmtext;
97 Nullable<QString> mp_decimaldot;
98 Nullable<QString> mp_thousandseparator;
99 Nullable<qint64> mp_thousanddigits;
100 Nullable<qint64> mp_moneydecimals;
101 Nullable<QString> mp_currencysymbol;
102 Nullable<QString> mp_currencysymbolhtml;
103 Nullable<QString> mp_currencysymbolplain;
104 Nullable<
bool> mp_currencysymbolpos;
105 Nullable<QString> mp_moneynegative;
106 Nullable<QString> mp_moneypositive;
109 Nullable<QString> mp_timezone;
112 virtual QList<QString> weekdays()
const{
return mp_weekdays;}
116 virtual QList<QString>
months()
const{
return mp_months;}
120 virtual Nullable<QString>
dateformat()
const{
return mp_dateformat;}
122 virtual Nullable<QString>
timeformat()
const{
return mp_timeformat;}
126 virtual Nullable<QString>
amtext()
const{
return mp_amtext;}
128 virtual Nullable<QString>
pmtext()
const{
return mp_pmtext;}
130 virtual Nullable<QString>
decimaldot()
const{
return mp_decimaldot;}
154 virtual Nullable<QString>
timezone()
const{
return mp_timezone;}
158 virtual void addweekdays(Nullable<QString> a){mp_weekdays.append(a);}
166 virtual void addmonths(Nullable<QString> a){mp_months.append(a);}
178 virtual void setamtext(Nullable<QString> s){mp_amtext=s;}
180 virtual void setpmtext(Nullable<QString> s){mp_pmtext=s;}
213 QDomElement toXml(QDomDocument&doc,QString name=
"ServerFormat");
215 void toXml(QDomDocument&,QDomElement&);
Q_DECLARE_METATYPE(QDomNode)