CallEntry

Since: BlackBerry 10.3.0

#include <bb/pim/phone/CallEntry>

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

A CallEntry represents the history of a single call.

To fetch a history of calls made, use CallHistoryService.


Overview

Public Functions Index

CallEntry ()
CallEntry (const CallEntry &other)
~CallEntry ()
bb::pim::account::AccountKeyaccountId () const
QStringcallerName () const
CallType::TypecallType () const
intduration () const
CallEntryIdid () const
boolisValid () const
QStringlineId () const
intnetworkCode () const
CallEntry &operator= (const CallEntry &other)
QStringphoneNumber () const
QDateTimestartDate () const

Public Functions

CallEntry ()

Constructs an invalid CallEntry.

See also:

CallEntry::isValid

Since:

BlackBerry 10.3.0

CallEntry (

Copy constructor.

This constructor initializes this CallEntry with the values from the provided CallEntry.

Parameters
other

The CallEntry to be copied.

Since:

BlackBerry 10.3.0

~CallEntry ()

Destructor.

Since:

BlackBerry 10.3.0

bb::pim::account::AccountKey accountId ()

Retrieves the account ID of this call.

Return:

This CallEntry's account ID.

Since:

BlackBerry 10.3.0

QString callerName ()

Retrieves caller name as provided by the network.

Return:

This CallEntry's name as provided by the network (e.g. Caller ID).

Note:

If the network does not provide a name, this field will be empty.

Since:

BlackBerry 10.3.0

CallType::Type callType ()

Retrieves the type of the call.

This field publishes the type of the call.

Return:

the type of the call.

See also:

CallType::Type

Since:

BlackBerry 10.3.0

int duration ()

Retrieves the duration of call, in seconds.

Return:

Duration of call, in seconds.

Since:

BlackBerry 10.3.0

CallEntryId id ()

The unique identifier of this call.

Return:

This CallEntry's ID.

Since:

BlackBerry 10.3.0

bool isValid ()

Indicates the validity of this CallEntry.

This CallEntry is valid if accountId and id are non-negative.

Return:

true if the CallEntry is valid, otherwise false

QString lineId ()

Retrieves the name of the line on which the call was made.

The phone may support multiple lines on which a call can be made. The most common line is cellular; a cellular call will have "cellular" in this field.

Return:

the CallEntry's Line ID.

Since:

BlackBerry 10.3.0

int networkCode ()

Retrieves the error code from the network.

A value of 0 usually implies no error.

Return:

Error code from the network.

Since:

BlackBerry 10.3.0

CallEntry & operator= (

Assignment operator.

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

Parameters
other

The CallEntry to be copied.

Since:

BlackBerry 10.3.0

QString phoneNumber ()

The phone number of the call.

Return:

This CallEntry's phone number.

Note:

This field may be empty if the network does not provide this information.

Since:

BlackBerry 10.3.0

QDateTime startDate ()

Retrieves when the call began.

Return:

when the call began.

Since:

BlackBerry 10.3.0

Last modified: 2014-06-24



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

comments powered by Disqus