MythTV master
mythhttpdata.cpp
Go to the documentation of this file.
1// MythTV
2#include "mythhttpdata.h"
3
5{
6 return std::shared_ptr<MythHTTPData>(new MythHTTPData);
7}
8
9HTTPData MythHTTPData::Create(const QString &Name, const char *Buffer)
10{
11 return std::shared_ptr<MythHTTPData>(new MythHTTPData(Name, Buffer));
12}
13
14HTTPData MythHTTPData::Create(int Size, char Char)
15{
16 return std::shared_ptr<MythHTTPData>(new MythHTTPData(Size, Char));
17}
18
19HTTPData MythHTTPData::Create(const QByteArray& Other)
20{
21 return std::shared_ptr<MythHTTPData>(new MythHTTPData(Other));
22}
23
25 : MythHTTPContent("")
26{
27}
28
29MythHTTPData::MythHTTPData(const QString& FileName, const char * Buffer)
30 : QByteArray(Buffer),
31 MythHTTPContent(FileName)
32{
34}
35
36MythHTTPData::MythHTTPData(int Size, char Char)
37 : QByteArray(Size, Char),
39{
40}
41
42MythHTTPData::MythHTTPData(const QByteArray& Other)
43 : QByteArray(Other),
45{
46}
static HTTPData Create()
Definition: mythhttpdata.cpp:4
std::shared_ptr< MythHTTPData > HTTPData
Definition: mythhttptypes.h:37
@ HTTPETag