plistparser.h 414 B

123456789101112131415161718
  1. #pragma once
  2. // Qt includes
  3. #include <QIODevice>
  4. #include <QVariant>
  5. #include <QVariantList>
  6. #include <QVariantMap>
  7. #include <QDomElement>
  8. class PListParser {
  9. public:
  10. static QVariant parsePList(QIODevice *device);
  11. private:
  12. static QVariant parseElement(const QDomElement &e);
  13. static QVariantList parseArrayElement(const QDomElement& node);
  14. static QVariantMap parseDictElement(const QDomElement& element);
  15. };