MythTV master
mythhttpmetaservice.h
Go to the documentation of this file.
1#ifndef MYTHHTTPMETASERVICE_H
2#define MYTHHTTPMETASERVICE_H
3
4// Qt
5#include <QChar> // Fix Qt6 GCC SFINAE warning
6#include <QMetaObject>
7
8// MythTV
10
12{
13 public:
14 MythHTTPMetaService(const QString& Name, const QMetaObject& Meta,
15 const HTTPRegisterTypes& RegisterCallback = nullptr,
16 const QString& MethodsToHide = {});
17
18 static int ParseRequestTypes(const QMetaObject& Meta, const QString& Method, QString& ReturnName);
19 static bool isProtected(const QMetaObject& Meta, const QString& Method);
20
21 const QMetaObject& m_meta;
22 QString m_name;
23 QString m_version;
27
28 private:
29 Q_DISABLE_COPY(MythHTTPMetaService)
30};
31
32#endif
#define RegisterCallback(a, b, c)
HTTPProperties m_properties
const QMetaObject & m_meta
#define MBASE_PUBLIC
Definition: mythbaseexp.h:8
std::map< QString, HTTPMethodPtr > HTTPMethods
std::map< int, int > HTTPProperties
std::function< void()> HTTPRegisterTypes
Definition: mythhttptypes.h:50