qaugmentedrealitycameradelegate.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef QAUGMENTEDREALITYCAMERADELEGATE_H
  2. #define QAUGMENTEDREALITYCAMERADELEGATE_H
  3. #include <QtDeclarative>
  4. #include "qdll_global.h"
  5. class QDLLSHARED_EXPORT QAugmentedRealityCameraDelegate : public QDeclarativeComponent
  6. {
  7. Q_OBJECT
  8. Q_CLASSINFO("Author", "Sebastiano Galazzo")
  9. Q_CLASSINFO("Email", "sebastiano.galazzo@gmail.com")
  10. Q_PROPERTY(float latitude READ latitude WRITE setLatitude)
  11. Q_PROPERTY(float longitude READ longitude WRITE setLongitude)
  12. Q_PROPERTY(QString message READ message WRITE setMessage)
  13. Q_PROPERTY(QString infoBox READ infoBox WRITE setInfoBox)
  14. Q_PROPERTY(QString source READ source WRITE setSource)
  15. public:
  16. QAugmentedRealityCameraDelegate();
  17. QAugmentedRealityCameraDelegate( QDeclarativeEngine * engine, QObject * parent = 0 );
  18. QAugmentedRealityCameraDelegate( QDeclarativeEngine * engine, const QString & fileName, QObject * parent = 0 );
  19. QAugmentedRealityCameraDelegate( QDeclarativeEngine * engine, const QUrl & url, QObject * parent = 0 );
  20. float latitude() const;
  21. float longitude() const;
  22. QString message() const;
  23. QString infoBox() const;
  24. QString source() const;
  25. void setLatitude(float value );
  26. void setLongitude(float value );
  27. void setMessage(QString message );
  28. void setInfoBox(QString infoBox );
  29. void setSource(QString source );
  30. private:
  31. float m_latitude;
  32. float m_longitude;
  33. QString m_message;
  34. QString m_infobox;
  35. QString m_source;
  36. };
  37. #endif // QAUGMENTEDREALITYCAMERADELEGATE_H