CallCommandResponse

Since: BlackBerry 10.2

#include <bb/system/phone/CallCommandResponse>

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

Provides information about a call command response.

An instance of the CallCommandResponse class is provided through the Phone::callCommandResponseReceived() signal to deliver information to the client about the network response to a call command.

The call command response includes information such as the call command, response ID, call ID, and error.

Permissions:

You must specify the control_phone permission in your bar-descriptor.xml file.


Overview

Public Functions Index

CallCommandResponse ()
CallCommandResponse (const CallCommandResponse &other)
~CallCommandResponse ()
QStringcallCommand () const
intcallId () const
QStringerror () const
CallCommandResponse &operator= (const CallCommandResponse &other)
booloperator== (const CallCommandResponse &other)
intresponseId () const

Public Functions

CallCommandResponse ()

Constructs an invalid CallCommandResponse object.

Since:

BlackBerry 10.2

CallCommandResponse (

Creates a copy of other.

Parameters
other

The source CallCommandResponse object.

Since:

BlackBerry 10.2

~CallCommandResponse ()

Destructor.

Since:

BlackBerry 10.2

QString callCommand ()

Returns the command that the response is for.

Return:

The call command.

Since:

BlackBerry 10.2

int callId ()

Returns the unique ID of the call that the response is for.

Return:

A non-negative ID of the call if the CallCommandResponse object is valid, or -1 if the object is invalid.

Since:

BlackBerry 10.2

QString error ()

Returns the error code related to a command executed on a call.

Return:

The error returned when executing the call command, or an empty string if the command was executed successfully.

Since:

BlackBerry 10.2

CallCommandResponse & operator= (

Copies another CallCommandResponse to this object.

Parameters
other

The source CallCommandResponse object.

Return:

The CallCommandResponse instance.

Since:

BlackBerry 10.2

bool operator== (

Compares another CallCommandResponse to this object.

Parameters
other

A CallCommandResponse object for comparison.

Return:

true if call id matches, false otherwise.

Since:

BlackBerry 10.2

int responseId ()

Returns the command response ID that matches the ID used to send the call command.

The returned ID will match the ID used to send the call command.

Return:

The command ID.

Since:

BlackBerry 10.2

Last modified: 2014-06-24



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

comments powered by Disqus