MythTV master
mythserialiser.h
Go to the documentation of this file.
1#ifndef MYTHSERIALISER_H
2#define MYTHSERIALISER_H
3
4// Qt
5#include <QBuffer>
6#include <QMimeType>
7
8// MythTV
9#include "http/mythmimetype.h"
10#include "http/mythhttpdata.h"
11
12using HTTPMimes = std::vector<MythMimeType>;
13
15{
16 public:
17 static HTTPData Serialise(const QString& Name, const QVariant& Value, const QStringList& Accept);
20
21 protected:
22 QBuffer m_buffer;
23 HTTPData m_result { nullptr };
24};
25
26#endif
HTTPData Result()
HTTPData m_result
static HTTPData Serialise(const QString &Name, const QVariant &Value, const QStringList &Accept)
Serialise the given data with an encoding suggested by Accept.
std::shared_ptr< MythHTTPData > HTTPData
Definition: mythhttptypes.h:37
std::vector< MythMimeType > HTTPMimes