ContactNews

Since: BlackBerry 10.0.0

#include <bb/pim/contacts/ContactNews>

To link against this class, add the following line to your .pro file: LIBS += -lbbpim

The ContactNews class represents online news for a contact.

You can use this class to represent an online article that's associated with a Contact. The article can include information such as source, title, publish date, and URI. This class works with the ContactEnhancementService class to provide associated news articles for enhanced contacts.

See also:

Contact, ContactEnhancementService


Overview

Public Functions Index

ContactNews ()
ContactNews (const ContactNews &copy)
~ContactNews ()
QStringarticleSource () const
QStringbody () const
QStringListcompanies () const
QStringid () const
ContactNews &operator= (const ContactNews &operand)
QDateTimepublishedAt () const
QStringtitle () const
QStringtype () const
QUrluri () const

Public Functions

ContactNews ()

Constructs a new ContactNews.

Since:

BlackBerry 10.0.0

ContactNews (

Copy constructor.

This function constructs a ContactNews containing exactly the same values as the provided ContactNews.

Parameters
copy

The ContactNews to be copied.

Since:

BlackBerry 10.0.0

~ContactNews ()

Destructor.

Since:

BlackBerry 10.0.0

QString articleSource ()

Retrieves the source of this ContactNews.

Return:

The source of this ContactNews.

Since:

BlackBerry 10.0.0

QString body ()

Retrieves the contents of this ContactNews.

Return:

The contents of this ContactNews.

Since:

BlackBerry 10.0.0

QStringList companies ()

Retrieves the list of companies that are associated with this ContactNews.

Return:

The list of companies that are associated with this ContactNews.

Since:

BlackBerry 10.0.0

QString id ()

Retrieves the internal ID of this ContactNews.

The ContactEnhancementService retrieves news for a contact according to first name, last name, and company name. It might include one or more news articles, and each article is assigned an internal ID.

Return:

The internal ID of this ContactNews.

Since:

BlackBerry 10.0.0

ContactNews & operator= (

Assignment operator.

This operator copies all values from the provided ContactNews into this ContactNews.

Parameters
operand

The ContactNews from which to copy all values.

Return:

A ContactNews with all copied data

Since:

BlackBerry 10.0.0

QDateTime publishedAt ()

Retrieves the publish date of this ContactNews.

Return:

The publish date of this ContactNews.

Since:

BlackBerry 10.0.0

QString title ()

Retrieves the title of this ContactNews.

Return:

The title of this ContactNews.

Since:

BlackBerry 10.0.0

QString type ()

Retrieves the type of this ContactNews.

For example, the article might have a type of "Press Release."

Return:

The type of this ContactNews.

Since:

BlackBerry 10.0.0

QUrl uri ()

Retrieves the URL of this ContactNews.

Return:

The URL of this ContactNews.

Since:

BlackBerry 10.0.0

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus