harmattanfeed.h 921 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef HARMATTANFEED_H
  2. #define HARMATTANFEED_H
  3. #include <QObject>
  4. #include <QStringList>
  5. #include <QDateTime>
  6. #include <QUrl>
  7. #include <QDebug>
  8. #ifdef MEEGO_EDITION_HARMATTAN
  9. #include <meventfeed.h>
  10. #endif
  11. class HarmattanFeed : public QObject
  12. {
  13. Q_OBJECT
  14. Q_PROPERTY( QString icon READ getIcon WRITE setIcon )
  15. Q_PROPERTY( QString title READ getTitle WRITE setTitle )
  16. Q_PROPERTY( QString body READ getBody WRITE setBody )
  17. QString m_icon;
  18. QString m_title;
  19. QString m_body;
  20. public:
  21. explicit HarmattanFeed(QObject *parent = 0);
  22. Q_INVOKABLE void pushEvent();
  23. QString getIcon() const { return m_icon; }
  24. QString getTitle() const { return m_title; }
  25. QString getBody() const { return m_body; }
  26. signals:
  27. public slots:
  28. void setIcon(QString arg) { m_icon = arg; }
  29. void setTitle(QString arg) { m_title = arg; }
  30. void setBody(QString arg) { m_body = arg; }
  31. };
  32. #endif // HARMATTANFEED_H