plistserializer.h 518 B

1234567891011121314151617181920
  1. #pragma once
  2. // Qt includes
  3. #include <QIODevice>
  4. #include <QVariant>
  5. #include <QVariantList>
  6. #include <QVariantMap>
  7. #include <QDomElement>
  8. #include <QDomDocument>
  9. #include <QString>
  10. class PListSerializer {
  11. public:
  12. static QString toPList(const QVariant &variant);
  13. private:
  14. static QDomElement serializeElement(QDomDocument &doc, const QVariant &variant);
  15. static QDomElement serializeMap(QDomDocument &doc, const QVariantMap &map);
  16. static QDomElement serializeList(QDomDocument &doc, const QVariantList &list);
  17. };