hybridpluginxmlhandler.h 730 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef HYBRIDPLUGINXMLHANDLER_H
  2. #define HYBRIDPLUGINXMLHANDLER_H
  3. #include <QXmlStreamReader>
  4. #include <QSharedPointer>
  5. #include <QFile>
  6. #include "hybridplugin.h"
  7. class HybridPlugin;
  8. class HybridPluginXmlHandler : public QXmlStreamReader
  9. {
  10. public:
  11. HybridPluginXmlHandler(QFile *xmlFile);
  12. ~HybridPluginXmlHandler();
  13. QSharedPointer<HybridPlugin> parse();
  14. private:
  15. void handlePluginTag();
  16. void handlePlatformsTag();
  17. void handlePlatformTag();
  18. void handleDependsTag();
  19. void handleItemTag();
  20. private:
  21. QFile *m_file;
  22. QSharedPointer<HybridPlugin> m_plugin;
  23. QSharedPointer<HybridPluginPlatform> m_currentPlatform;
  24. };
  25. #endif // HYBRIDPLUGINXMLHANDLER_H