The QS60Telephony class can be used for establishing circuit switched calls and monitoring the status of the line. Monitoring can be started with the QS60Telephony::startMonitoringLine() function call. More...
Public Types | |
enum | Error { NoError = 0, OutOfMemoryError, AccessDeniedError, TimedOutError, UnknownError = -1 } |
enum | LineStatus { StatusUnknown, StatusIdle, StatusDialling, StatusRinging, StatusAnswering, StatusConnecting, StatusConnected, StatusReconnectPending, StatusDisconnecting, StatusHold, StatusTransferring, StatusTransferAlerting } |
Public Slots | |
void | call (const QString &phoneNumber) |
Make a phone call. | |
void | answerIncomingCall () |
Answer incoming call. | |
void | terminateCall () |
Terminate a call. | |
void | rejectCall () |
Reject a call. | |
bool | startMonitoringLine () |
void | toBackground () |
void | stopMonitoringLine () |
void | showOnTop () |
void | showNormal () |
Signals | |
void | lineStatusChanged (QS60Telephony::LineStatus status, QString number) |
void | error (QS60Telephony::Error error) |
void | answered () |
void | terminated () |
Public Member Functions | |
QS60Telephony (QObject *parent=0) | |
~QS60Telephony () | |
Q_INVOKABLE QString | IMEI () |
Read the IMEI Code. | |
Q_INVOKABLE QS60Telephony::Error | error () const |
Friends | |
class | QS60TelephonyPrivate |
The QS60Telephony class can be used for establishing circuit switched calls and monitoring the status of the line. Monitoring can be started with the QS60Telephony::startMonitoringLine() function call.
enum QS60Telephony::Error |
This enum defines the possible errors for a QS60Telephony object.
This enum defines the possible line statuses
QS60Telephony::QS60Telephony | ( | QObject * | parent = 0 |
) | [explicit] |
Constructs a QS60Telephony object with the given parent. Call error() to get the QS60Telephony::Error value that indicates if an error occurred during construction.
QS60Telephony::~QS60Telephony | ( | ) |
Destroys the QS60Telephony object.
void QS60Telephony::call | ( | const QString & | phoneNumber | ) | [slot] |
void QS60Telephony::error | ( | QS60Telephony::Error | error | ) | [signal] |
This signal is emitted when an error occurs during a phone call, i.e. after the call() method is called.
error | Error |
QS60Telephony::Error QS60Telephony::error | ( | ) | const |
Returns the type of error that occurred if the latest function call failed; otherwise returns NoError.
void QS60Telephony::lineStatusChanged | ( | QS60Telephony::LineStatus | status, | |
QString | number | |||
) | [signal] |
This signal is emitted when line status is changed.
status | Current status is retrived as enumeration | |
number | Number if available |
bool QS60Telephony::startMonitoringLine | ( | ) | [slot] |
Starts monitoring changes in the line. QS60Telephony::lineStatusChanged(QS60Telephony::LineStatus status, QString number) is emitted when there are changes in the line status(e.g. incoming call etc.).
void QS60Telephony::stopMonitoringLine | ( | ) | [slot] |
Stops monitoring changes in the line status.