MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

List of all members.

Public Member Functions

qlonglong  addItem (const QString &icon, const QString &title, const QString &body, const QStringList &imageList, const QDateTime &timestamp, const QString &footer, bool video, const QUrl &url, const QString &sourceName, const QString &sourceDisplayName)
void  removeItem (qlonglong id)
void  removeItemsBySourceName (const QString &sourceName)

Static Public Member Functions

static MEventFeed instance ()

Detailed Description

Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). Nokia proprietary

An interface to the event feed. Uses the com.nokia.home.EventFeed D-Bus interface with which application developers can create and manage event feed items.


Member Function Documentation

qlonglong MEventFeed::addItem ( const QString icon,
const QString title,
const QString body,
const QStringList imageList,
const QDateTime timestamp,
const QString footer,
bool  video,
const QUrl url,
const QString sourceName,
const QString sourceDisplayName  
)

Adds an item to the event feed.

Parameters:
icon  the icon id for the feed item or absolute path to an image file. The icon must exist when addItem() is called. If the icon image is unique its path must be unique (same path should not be reused for different images).
title  the title for the feed item
body  the body text for the feed item
imageList  the image list for the feed item. If the images in list start with /, they're interpreted as absolute paths, otherwise as image IDs from the theme. The images must exist when addItem() is called. If an image is unique its path must be unique (same path should not be reused for different images).
timestamp  timestamp for the feed item
footer  the footer text for the feed item. If there is no visible text to be shown in the footer the footer should be empty.
video  if true, marks that the event item contains video content. The video content is limited to one thumbnail in the image list. The thumbnail will have a play button overlay rendered on top of it.
url  the url to be executed when item is clicked. Executed action for URL is the default action provided by libcontentaction for the URL's scheme.
sourceName  identifier for the event source e.g. application name, which should be persistent.
sourceDisplayName  the source description in localized form which will be displayed in the UI in event feed item's object menu.
Returns:
unique id for the event feed item or -1 if values for the mandatory keys are not provided
MEventFeed * MEventFeed::instance (  )  [static]

Returns an instance of the event feed interface.

Returns:
an instance of the event feed interface
void MEventFeed::removeItem ( qlonglong  id  ) 

Removes an item from the event feed.

Parameters:
id  the id of the feed item
void MEventFeed::removeItemsBySourceName ( const QString sourceName  ) 

Removes all events with the specified source name from the event feed.

Parameters:
sourceName  identifier for the event source

Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
Nokia proprietary
MeeGo 1.2 Harmattan API