1#ifndef MYTHHTTPMETAMETHOD_H
2#define MYTHHTTPMETAMETHOD_H
22 static HTTPMethodPtr Create (
int Index, QMetaMethod& Method,
int RequestTypes,
23 const QString& ReturnName = {},
bool Slot =
true);
24 static void* CreateParameter (
void* Parameter,
int Type,
const QString& Value);
25 static QVariant CreateReturnValue (
int Type,
void* Value);
27 bool m_valid {
false };
28 bool m_protected {
false };
38 const QString& ReturnName,
bool Slot);
43 static
bool ValidReturnType(
int Type)
45 return (Type != QMetaType::UnknownType && Type != QMetaType::Void);
48 static bool ToBool(
const QString& Value)
50 if (Value.compare(
"1", Qt::CaseInsensitive) == 0)
52 if (Value.compare(
"y", Qt::CaseInsensitive) == 0)
54 if (Value.compare(
"true", Qt::CaseInsensitive) == 0)