1 #ifndef MYTHHTTPMETAMETHOD_H
2 #define MYTHHTTPMETAMETHOD_H
21 static HTTPMethodPtr Create (
int Index, QMetaMethod& Method,
int RequestTypes,
22 const QString& ReturnName = {},
bool Slot =
true);
23 static void* CreateParameter (
void* Parameter,
int Type,
const QString& Value);
24 static QVariant CreateReturnValue (
int Type,
void* Value);
26 bool m_valid {
false };
27 bool m_protected {
false };
37 const QString& ReturnName,
bool Slot);
42 static
bool ValidReturnType(
int Type)
44 return (Type != QMetaType::UnknownType && Type != QMetaType::Void);
47 static bool ToBool(
const QString& Value)
49 if (Value.compare(
"1", Qt::CaseInsensitive) == 0)
51 if (Value.compare(
"y", Qt::CaseInsensitive) == 0)
53 if (Value.compare(
"true", Qt::CaseInsensitive) == 0)