hybridpluginplatform.cpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. #include "hybridpluginplatform.h"
  2. Dependency::Dependency(QString name, QString version)
  3. : m_name(name),
  4. m_version(version)
  5. {
  6. }
  7. HybridPluginPlatform::HybridPluginPlatform(HybridPlugin& plugin)
  8. : m_plugin(plugin)
  9. {
  10. }
  11. HybridPluginPlatform::~HybridPluginPlatform()
  12. {
  13. }
  14. HybridPlugin& HybridPluginPlatform::plugin()
  15. {
  16. return m_plugin;
  17. }
  18. const QString& HybridPluginPlatform::name() const
  19. {
  20. return m_name;
  21. }
  22. void HybridPluginPlatform::setName(QString name)
  23. {
  24. m_name = name;
  25. }
  26. int HybridPluginPlatform::version() const
  27. {
  28. return m_version;
  29. }
  30. void HybridPluginPlatform::setVersion(int version)
  31. {
  32. m_version = version;
  33. }
  34. HybridPluginPlatform::Format HybridPluginPlatform::format() const
  35. {
  36. return m_format;
  37. }
  38. void HybridPluginPlatform::setFormat(Format format)
  39. {
  40. m_format = format;
  41. }
  42. HybridPluginPlatform::Configuration HybridPluginPlatform::configuration() const
  43. {
  44. return m_configuration;
  45. }
  46. void HybridPluginPlatform::setConfiguration(Configuration configuration)
  47. {
  48. m_configuration = configuration;
  49. }
  50. const QString& HybridPluginPlatform::url() const
  51. {
  52. return m_url;
  53. }
  54. void HybridPluginPlatform::setUrl(QString url)
  55. {
  56. m_url = url;
  57. }
  58. int HybridPluginPlatform::qtVersion() const
  59. {
  60. return m_qtVersion;
  61. }
  62. void HybridPluginPlatform::setQtVersion(int version)
  63. {
  64. m_qtVersion = version;
  65. }
  66. const QList< QSharedPointer<Dependency> >& HybridPluginPlatform::dependencies() const
  67. {
  68. return m_dependencies;
  69. }
  70. void HybridPluginPlatform::addDependency(QSharedPointer<Dependency> dependency)
  71. {
  72. m_dependencies.append(dependency);
  73. }