Line

Since: BlackBerry 10.0.0

#include <bb/system/phone/Line>

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

Provides a phone line's ID, address, and type information.

Permissions:

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


Overview

Public Functions Index

Line ()
Line (const Line &other)
~Line ()
QStringaddress () const
QStringdescription () const
QStringid () const
boolisValid () const
Line &operator= (const Line &other)
booloperator== (const Line &other)
LineType::Typetype () const

Public Functions

Line ()

Creates a new Line object.

Since:

BlackBerry 10.0.0

Line (

Creates a copy of a Line.

Parameters
other

The source Line object.

Since:

BlackBerry 10.0.0

~Line ()

Destructor.

Since:

BlackBerry 10.0.0

QString address ()

Returns the line's address.

For a cellular line, the line address is the phone number. For a video chat line, the address is the BBID set on the device.

Return:

The line address. If the line is invalid, the return value is undefined.

Since:

BlackBerry 10.0.0

QString description ()

Returns a brief description of the line.

Return:

The line description. If the line is invalid, the return value is undefined.

Since:

BlackBerry 10.0.0

QString id ()

Returns the ID of the line.

Return:

The line ID. If the line is invalid, the return value is undefined.

Since:

BlackBerry 10.0.0

bool isValid ()

Indicates whether the line is valid or not.

Typically, this function should be called to ensure the line is valid before other member functions of this class are called.

Return:

Returns true if the line is valid, false otherwise.

Since:

BlackBerry 10.0.0

Line & operator= (

Copies another Line to this object.

Parameters
other

The source Line object.

Return:

The Line instance.

Since:

BlackBerry 10.0.0

bool operator== (

Compares another Line to this object.

Parameters
other

A Line object for comparison.

Return:

true if the type and address match, false otherwise.

Since:

BlackBerry 10.0.0

LineType::Type type ()

Returns the type of the line, as specified by LineType.

Return:

The line type. If the line is invalid, the return value is undefined.

Since:

BlackBerry 10.0.0

Last modified: 2014-03-13

comments powered by Disqus