MythTV  master
mythcborserialiser.h
Go to the documentation of this file.
1 #ifndef MYTHCBORSERIALISER_H
2 #define MYTHCBORSERIALISER_H
3 
4 // MythTV
6 
7 class QCborStreamWriter;
8 
10 {
11  public:
12  MythCBORSerialiser(const QString& Name, const QVariant& Value);
13 
14  protected:
15  void AddObject (const QString& Name, const QVariant& Value);
16  void AddValue (const QVariant& Value);
17  void AddQObject (const QObject* Object);
18  void AddStringList(const QVariant& Values);
19  void AddList (const QVariant& Values);
20  void AddMap (const QVariantMap& Map);
21 
22  private:
23  Q_DISABLE_COPY(MythCBORSerialiser)
24  QCborStreamWriter* m_writer { nullptr };
25 };
26 
27 #endif
MythCBORSerialiser::AddMap
void AddMap(const QVariantMap &Map)
Definition: mythcborserialiser.cpp:153
MythCBORSerialiser::AddObject
void AddObject(const QString &Name, const QVariant &Value)
Definition: mythcborserialiser.cpp:19
MythCBORSerialiser::AddValue
void AddValue(const QVariant &Value)
MythCBORSerialiser::AddValue.
Definition: mythcborserialiser.cpp:35
MythCBORSerialiser::m_writer
QCborStreamWriter * m_writer
Definition: mythcborserialiser.h:24
MythSerialiser
Definition: mythserialiser.h:14
MythCBORSerialiser::AddStringList
void AddStringList(const QVariant &Values)
Definition: mythcborserialiser.cpp:132
MythCBORSerialiser::AddList
void AddList(const QVariant &Values)
Definition: mythcborserialiser.cpp:144
mythserialiser.h
MythCBORSerialiser::MythCBORSerialiser
MythCBORSerialiser(const QString &Name, const QVariant &Value)
Definition: mythcborserialiser.cpp:10
Name
Definition: channelsettings.cpp:71
MythCBORSerialiser::AddQObject
void AddQObject(const QObject *Object)
Definition: mythcborserialiser.cpp:101
MythCBORSerialiser
Definition: mythcborserialiser.h:9