ContactNews
#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.
Contact, ContactEnhancementService
BlackBerry 10.0.0
Public Functions Index
| ContactNews () | |
| ContactNews (const ContactNews ©) | |
| ~ContactNews () | |
| ContactNews & | operator= (const ContactNews &operand) |
| QString | id () const |
| QString | articleSource () const |
| QString | body () const |
| QString | title () const |
| QStringList | companies () const |
| QDateTime | publishedAt () const |
| QUrl | uri () const |
| QString | type () const |
Public Functions
Copy constructor.
This function constructs a ContactNews containing exactly the same values as the provided ContactNews.
| Parameters | |
|---|---|
| copy |
The ContactNews to be copied. |
BlackBerry 10.0.0
Destructor.
BlackBerry 10.0.0
ContactNews &
Assignment operator.
This operator copies all values from the provided ContactNews into this ContactNews.
| Parameters | |
|---|---|
| operand |
The ContactNews from which to copy all values. |
A ContactNews with all copied data
BlackBerry 10.0.0
QString
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.
The internal ID of this ContactNews.
BlackBerry 10.0.0
QString
Retrieves the source of this ContactNews.
The source of this ContactNews.
BlackBerry 10.0.0
QString
Retrieves the contents of this ContactNews.
The contents of this ContactNews.
BlackBerry 10.0.0
QString
Retrieves the title of this ContactNews.
The title of this ContactNews.
BlackBerry 10.0.0
QStringList
Retrieves the list of companies that are associated with this ContactNews.
The list of companies that are associated with this ContactNews.
BlackBerry 10.0.0
QDateTime
Retrieves the publish date of this ContactNews.
The publish date of this ContactNews.
BlackBerry 10.0.0
QUrl
Retrieves the URL of this ContactNews.
The URL of this ContactNews.
BlackBerry 10.0.0
QString
Retrieves the type of this ContactNews.
For example, the article might have a type of "Press Release."
The type of this ContactNews.
BlackBerry 10.0.0