CallCommandResponse

Since: BlackBerry 10.2

#include <bb/system/phone/Call>

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

Provides information on a call command response: call command, response ID, call ID, command error, and error description.

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

Permissions:

You must also 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 for which the response is for.

Return:

The call command.

Since:

BlackBerry 10.2

int callId ()

Returns the unique ID of the call which 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:

Error returned when executing the call command. Empty if 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 ()

Command response ID, it will match the ID used to send the call command.

Return:

The command ID.

Since:

BlackBerry 10.2

Last modified: 2014-03-13

comments powered by Disqus