| Home · All Classes · Annotated · Functions |
The QPhoneCall class provides an interface to incoming or outgoing phone calls. More...
#include <QPhoneCall>
The QPhoneCall class provides an interface to incoming or outgoing phone calls.
The QPhoneCall class refers to a single outgoing or incoming on a phone line. Calls may be in a number of states: idle, dialing, incoming, connected, hold, hangup, etc. QPhoneCall instances act as identifiers for actual call objects. The actual object disappears when the last identifier instance is dropped.
See also QPhoneLine and QPhoneUtils.
Defines the types of phone calls that may occur in the system.
| Constant | Value | Description |
|---|---|---|
| QPhoneCall::Voice | 0 | Ordinary voice telephone call |
| QPhoneCall::Data | 1 | Data call |
| QPhoneCall::Fax | 2 | Fascimile call |
| QPhoneCall::Video | 3 | Video call |
| QPhoneCall::VoIP | 4 | Voice-Over-IP call |
| QPhoneCall::Other | 5 | Some other unspecified type of call |
Defines auxillary value notifications that may be associated with a phone call.
| Constant | Value | Description |
|---|---|---|
| QPhoneCall::CallingName | 0 | The name of the calling party. |
Defines the Request types, for reporting failures.
| Constant | Value |
|---|---|
| QPhoneCall::HoldFailed | 0 |
| QPhoneCall::JoinFailed | 1 |
Defines the scope of an operation.
| Constant | Value | Description |
|---|---|---|
| QPhoneCall::CallOnly | 0 | Only the referenced call. |
| QPhoneCall::Group | 1 | All calls in the same active/held group. |
This enum defines the different states a phonecall can have.
| Constant | Value | Description |
|---|---|---|
| QPhoneCall::Idle | 0 | New outgoing call, not dialed yet. |
| QPhoneCall::Incoming | 1 | Incoming connection from remote party. |
| QPhoneCall::Dialing | 2 | Dialing, but not yet connected. |
| QPhoneCall::Connected | 3 | Connected to the other party. |
| QPhoneCall::Hold | 4 | Connected, but currently on hold. |
| QPhoneCall::HangupLocal | 5 | Local side hung up the call. |
| QPhoneCall::HangupRemote | 6 | Remote side hung up the call, or call lost. |
| QPhoneCall::Missed | 7 | Incoming call that was missed. |
| QPhoneCall::NetworkFailure | 8 | Network has failed in some way. |
| QPhoneCall::OtherFailure | 9 | Something else went wrong. |
| QPhoneCall::ServiceHangup | 10 | Supplementary service request caused the call to "hangup", notifying higher layers that the request has been sent. |
Construct a new phone call object, initially in the Idle state.
Construct a copy of call.
Destruct a phone call object. This will not destroy or hangup the actual underlying phone call, which will persist until hung up by the user or some other action.
Accept an incoming call (must be in the Incoming state). All active calls are automatically put on hold.
Activate this call and take it off hold. The scope indicates whether the activation relates to this call only (CallOnly), or the entire call group (Group).
Get the type of call (voice, data, etc).
Register the specified slot on object to receive notification of auxillary values that are associated with a call. The signal prototype is "notification( const QPhoneCall& call, Notification type, const QString& value )".
Register a specified slot on object to receive notification of pending tones changes. The signal prototype is "pendingTonesChanged( const QPhoneCall& call )".
Register a specified slot on object to receive notification of request failures. The signal prototype is "requestFailed( const QPhoneCall& call, Request request )".
Register a specified slot on object to receive notification of state changes. The signal prototype is "stateChanged( const QPhoneCall& call )".
Determine if the phone call is currently in the Connected or Hold states.
Get the uid of the contact of the remote party. QUniqueId() if unknown.
Dial a number on this call (must be in the Idle state). The user must ensure there is space for this call on the QPhoneLine.
If a contact is specified, it is used to display information on the callee, and will be stored as part of the call history.
If sendcallerid is true, the caller ID is enabled (on the assumption that it is normally disabled).
Returns true if this call was dialed, false otherwise.
Determine if the phone call is currently in the Dialing state.
Un-register the specified slot on object to receive notification of auxillary values. The signal prototype is "notification( const QPhoneCall& call, Notification type, const QString& value )".
Un-register a specified slot on object to receive notification of request failures. The signal prototype is "requestFailed( const QPhoneCall& call, Request request )".
Un-register a specified slot on object to receive notification of state changes. The signal prototype is "stateChanged( const QPhoneCall& call )".
Determine if the phone call is currently "dropped". That is, no longer connected because of normal call termination, network error, etc. Use QPhoneCall::state() to determine the precise reason why the call was dropped.
Returns the date and time this called ended. If the call never connected a null QDateTime is returned.
Get the full number of the remote party. This is the literal number that was dialed including affixes. QString() if unknown.
Hangup this call and/or all other calls of its type (active/held). The scope indicates whether the hangup relates to this call only (CallOnly), or the entire call group (Group).
Returns true if this call has been in the state QPhoneCall::Connected at some stage, otherwise false.
Put this active call, and all other active calls, on hold. If there were calls on hold or waiting, then activate them.
Returns the id of this phone call. This is a unique integer among all QPhoneCall objects across all lines. This identifier will never be negative.
Determine if the phone call is currently in the Idle state.
Determine if the phone call is currently in the Incoming state.
Join the active and held calls together and make them all active. If detachSubscriber is true, then the current subscriber is detached from the conversation.
Get the phone line that was used to create this call object. The return value will be invalid if this is a null call.
Determine if the phone call is currently in the Missed state.
Get the phone number of the remote party. QString() if unknown.
Determine if the phone call is currently in the Hold state.
Returns the pending tones for this call.
Returns the date and time that this called started. For calls that are never connected this is the time the call was activated. For calls that connected, this is the connection time.
Return the state of this call.
Send a sequence of DTMF tones over the call. Ignored if the call is not connected, or it is on hold.
Transfer the call to a new number and then discontinue this call.
Copy call object.
| Copyright © 2006 Trolltech | Trademarks | Qtopia 4.1.7 |