30 #include "debugheader.h"
32 #include <QMetaObject>
34 #include <QStringList>
60 static QString StrByType(Types
const& value)
62 QMetaObject metaObject =
AccessMode().staticMetaObject;
63 QMetaEnum metaEnum= metaObject.enumerator( metaObject.indexOfEnumerator(
"Types"));
64 QString
s=metaEnum.valueToKey(value);
67 static Types TypeByStr(QString
const& value)
69 QMetaObject metaObject =
AccessMode().staticMetaObject;
70 QMetaEnum metaEnum= metaObject.enumerator( metaObject.indexOfEnumerator(
"Types"));
71 Types
s=(Types)metaEnum.keyToValue(value.toLatin1());
74 static QStringList TypesList()
77 QMetaObject metaObject =
AccessMode().staticMetaObject;
78 QMetaEnum metaEnum= metaObject.enumerator( metaObject.indexOfEnumerator(
"Types"));
79 for(
int x=0;
x<metaEnum.keyCount();++
x)
81 ret.append(metaEnum.key(
x));
88 #endif // ACCESSMODE_H