hybridpluginplatform.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #ifndef HYBRIDPLUGINPLATFORM_H
  2. #define HYBRIDPLUGINPLATFORM_H
  3. #include <QString>
  4. #include <QList>
  5. #include <QSharedPointer>
  6. class HybridPlugin;
  7. struct Dependency
  8. {
  9. QString m_name;
  10. QString m_version;
  11. Dependency(QString name, QString version);
  12. };
  13. class HybridPluginPlatform
  14. {
  15. public:
  16. enum Format
  17. {
  18. Library,
  19. Source
  20. };
  21. enum Configuration
  22. {
  23. Debug,
  24. Release
  25. };
  26. public:
  27. HybridPluginPlatform(HybridPlugin& plugin);
  28. ~HybridPluginPlatform();
  29. HybridPlugin& plugin();
  30. const QString& name() const;
  31. void setName(QString name);
  32. int version() const;
  33. void setVersion(int version);
  34. Format format() const;
  35. void setFormat(Format format);
  36. Configuration configuration() const;
  37. void setConfiguration(Configuration configuration);
  38. const QString& url() const;
  39. void setUrl(QString url);
  40. int qtVersion() const;
  41. void setQtVersion(int version);
  42. const QList< QSharedPointer<Dependency> >& dependencies() const;
  43. void addDependency(QSharedPointer<Dependency> dependency);
  44. private:
  45. // Parent
  46. HybridPlugin& m_plugin;
  47. // Member data
  48. QString m_name;
  49. int m_version;
  50. Format m_format;
  51. Configuration m_configuration;
  52. QString m_url;
  53. int m_qtVersion;
  54. QList< QSharedPointer<Dependency> > m_dependencies;
  55. };
  56. #endif // HYBRIDPLUGINPLATFORM_H