harmattanfeed.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #include "harmattanfeed.h"
  2. HarmattanFeed::HarmattanFeed(QObject *parent) : QObject(parent)
  3. {
  4. m_icon = "";
  5. m_title = "";
  6. m_body = "";
  7. }
  8. void HarmattanFeed::pushEvent()
  9. {
  10. qDebug() << "addItem( " << m_icon <<", " << m_title << "," << m_body << ", sl, dt, footer, false, url, sourceName, sourceDisplayName );";
  11. #ifdef MEEGO_EDITION_HARMATTAN
  12. QDateTime dt = QDateTime::currentDateTime();
  13. QUrl url("meegim://");
  14. QString sourceName = "MeegIMFeedEvent";
  15. QString sourceDisplayName = "sourceDisplayName";
  16. if( mefeed ) {
  17. MEventFeed::instance()->addItem(
  18. m_icon,
  19. m_title,
  20. m_body,
  21. QStringList(),
  22. dt,
  23. QString(),
  24. false,
  25. url,
  26. sourceName,
  27. sourceDisplayName );
  28. }
  29. //#else
  30. // qDebug() << "addItem( " << m_icon <<", " << m_title << "," << m_body << ", sl, dt, footer, false, url, sourceName, sourceDisplayName );";
  31. #endif
  32. }