hybridplugin.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef HYBRIDPLUGIN_H
  2. #define HYBRIDPLUGIN_H
  3. #include <QString>
  4. #include <QSharedPointer>
  5. #include "hybridpluginplatform.h"
  6. struct PlatformType;
  7. class HybridPlugin
  8. {
  9. public:
  10. HybridPlugin();
  11. ~HybridPlugin();
  12. const QString& name() const;
  13. void setName(QString name);
  14. const QString& version() const;
  15. void setVersion(QString version);
  16. const QList< QSharedPointer<HybridPluginPlatform> >& platforms() const;
  17. void addPlatform(QSharedPointer<HybridPluginPlatform> platform);
  18. void selectPlatform(QSharedPointer<HybridPluginPlatform> platform);
  19. QSharedPointer<HybridPluginPlatform> selectedPlatform() const;
  20. QSharedPointer<HybridPluginPlatform> conformingVersion(const PlatformType& type);
  21. QString symbianDeploymentString(bool local);
  22. private:
  23. QString m_name;
  24. QString m_version;
  25. QList< QSharedPointer<HybridPluginPlatform> > m_platforms;
  26. QSharedPointer<HybridPluginPlatform> m_selectedPlatform;
  27. };
  28. #endif // HYBRIDPLUGIN_H