Torc  0.1
torcplistserialiser.h
Go to the documentation of this file.
1 #ifndef TORCPLISTSERIALISER_H
2 #define TORCPLISTSERIALISER_H
3 
4 // Torc
5 #include "torcxmlserialiser.h"
6 
8 {
9  public:
11  virtual ~TorcPListSerialiser() = default;
12 
13  HTTPResponseType ResponseType (void) override;
14 
15  protected:
16  void Begin (QByteArray &) override;
17  void AddProperty (QByteArray &, const QString &Name, const QVariant &Value) override;
18  void End (QByteArray &) override;
19 
20  void PListFromVariant (const QString &Name, const QVariant &Value, bool NeedKey = true);
21  void PListFromList (const QString &Name, const QVariantList &Value);
22  void PListFromStringList (const QString &Name, const QStringList &Value);
23  void PListFromMap (const QString &Name, const QVariantMap &Value);
24 };
25 
26 #endif // TORCPLISTSERIALISER_H
void PListFromList(const QString &Name, const QVariantList &Value)
void PListFromMap(const QString &Name, const QVariantMap &Value)
void Begin(QByteArray &) override
void AddProperty(QByteArray &, const QString &Name, const QVariant &Value) override
HTTPResponseType
void PListFromStringList(const QString &Name, const QStringList &Value)
virtual ~TorcPListSerialiser()=default
HTTPResponseType ResponseType(void) override
void PListFromVariant(const QString &Name, const QVariant &Value, bool NeedKey=true)
void End(QByteArray &) override
A serialiser for XML formatted output.