Line
#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.
You must also specify the access_phone permission in your bar-descriptor.xml file.
BlackBerry 10.0.0
Public Functions Index
| Line () | |
| Line (const Line &other) | |
| ~Line () | |
| Line & | operator= (const Line &other) |
| bool | operator== (const Line &other) |
| QString | id () const |
| LineType::Type | type () const |
| QString | description () const |
| QString | address () const |
| bool | isValid () const |
Public Functions
Destructor.
BlackBerry 10.0.0
bool
Compares another Line to this object.
| Parameters | |
|---|---|
| other |
A Line object for comparison. |
true if the type and address match, false otherwise.
BlackBerry 10.0.0
QString
Returns the ID of the line.
The line ID. If the line is invalid, the return value is undefined.
BlackBerry 10.0.0
LineType::Type
Returns the type of the line, as specified by LineType.
The line type. If the line is invalid, the return value is undefined.
BlackBerry 10.0.0
QString
Returns a brief description of the line.
The line description. If the line is invalid, the return value is undefined.
BlackBerry 10.0.0
QString
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.
The line address. If the line is invalid, the return value is undefined.
BlackBerry 10.0.0
bool
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.
Returns true if the line is valid, false otherwise.
BlackBerry 10.0.0