Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QDialOptions class provides an encapsulation of options for dialing an outgoing call. More...
#include <QDialOptions>
The QDialOptions class provides an encapsulation of options for dialing an outgoing call.
Dial options are used with QPhoneCall::dial() when initiating an outgoing call. The following example demonstrates dialing a voice call:
QPhoneCallManager mgr; QPhoneCall call = mgr.create( "Voice" ); QDialOptions dialOptions; dialOptions.setNumber( "1234567" ); call.dial( dialOptions );
See also QPhoneCall::dial() and QPhoneCall.
This enumeration defines the bearer type to use for data traffic. The values are defined by 3GPP TS 27.007.
Constant | Value | Description |
---|---|---|
QDialOptions::DataCircuitAsyncUDI | 0 | Data circuit asynchronous (UDI or 3.1 kHz modem) |
QDialOptions::DataCircuitSyncUDI | 1 | Data circuit synchronous (UDI or 3.1 kHz modem) |
QDialOptions::PadAccessUDI | 2 | PAD access (asynchronous) (UDI) |
QDialOptions::PacketAccessUDI | 3 | Packet access (synchronous) (UDI) |
QDialOptions::DataCircuitAsyncRDI | 4 | Data circuit asynchronous (RDI) |
QDialOptions::DataCircuitSyncRDI | 5 | Data circuit synchronous (RDI) |
QDialOptions::PadAccessRDI | 6 | PAD access (asynchronous) (RDI) |
QDialOptions::PacketAccessRDI | 7 | Packet access (synchronous) (RDI) |
This enum defines how caller ID information should be transmitted during a dial.
Constant | Value | Description |
---|---|---|
QDialOptions::DefaultCallerId | 0 | Use the default configuration. |
QDialOptions::SendCallerId | 1 | Always send caller ID, even if normally disabled. |
QDialOptions::SuppressCallerId | 2 | Never send caller ID, even if normally enabled. |
This enumeration defines the data transparency modes for data traffic. The values are defined by 3GPP TS 27.007.
Constant | Value | Description |
---|---|---|
QDialOptions::Transparent | 0 | Transparent data traffic. |
QDialOptions::NonTransparent | 1 | Non-transparent data traffic. |
QDialOptions::TransparentPreferred | 2 | Both, transparent preferred. |
QDialOptions::NonTransparentPreferred | 3 | Both, non-transparent preferred. |
Creates a dial options object with default values.
Makes a copy of other.
Deletes this dial options object.
Returns the access point name for GPRS sessions.
See also setApn().
Returns the bearer type to use for data traffic. The default is DataCircuitAsyncUDI.
See also setBearer().
Returns the current caller-ID mode to use for this call. The default is DefaultCallerId.
See also setCallerId().
Returns true if closed user group information should be used for this call, even if it is normally not used by default for calls; otherwise returns false. The default value is false.
See also setClosedUserGroup().
Returns the unique contact id associated with the call. The default is a null contact id.
See also setContact().
Returns the context identifier for GPRS sessions. Returns zero if the session is not GPRS.
See also setContextId().
Returns the value of the extension option called name. If the option is not present, def will be returned as the default value.
See also setExtensionOption().
Returns the explicit 3GPP TS 27.007 bearer speed value. The default value of -1 indicates that the system will use a bearer speed value compatible with the explicit bit rate specified by speed().
See also setGsmSpeed().
Returns the list of command-line options to be passed to pppd.
See also setIpArgs().
Returns the filename for the connect script.
See also setIpConnectScript().
Returns true if the demand-dialing flag is set; otherwise returns false. If the demand-dialing flag is set to true, then it indicates that pppd should be started, but the dial process should not happen yet. The dial will happen only when pppd detects TCP/IP network activity.
If the demand-dialing flag is set to false, then it indicates that pppd should be started and the dial process should be initiated immediately.
See also setIpDemandDialing().
Returns the filename for the disconnect script.
See also setIpDisconnectScript().
Returns the full pathname of the pppd binary to be executed. The default value is /usr/sbin/pppd.
See also setIpProgramName().
Returns the phone number to be dialed. The default is the empty string.
See also setNumber().
Returns the PDP type for GPRS sessions.
See also setPdpType().
Sets the access point for GPRS sessions to value. The contextId() must be non-zero for the APN to be used when setting up a GPRS session.
See also apn().
Sets the bearer type to use for data traffic to value.
See also bearer().
Sets the caller-ID mode to use for this call to value.
See also callerId().
Sets the closed user group mode to value.
See also closedUserGroup().
Sets the unique contact id associated with the call to value.
See also contact().
Sets the context identifier for GPRS sessions to value.
See also contextId().
Sets the extension option name to value. Extension options are used to set dial features beyond those defined by the GSM standards. Non-GSM telephony implementations might need such extension options.
The options are passed to the telephony implementation, which will obey the options it understands and ignore the rest. If the telephony implementation expects an option to be present, and it isn't, then the implementation should choose a reasonable default based on the type of call being made.
See also extensionOption().
Sets the explicit 3GPP TS 27.007 bearer speed to value. The argument should be one of values from 3GPP TS 27.007's documentation of the AT+CBST command. If the value is set to -1, then the system will use a bearer speed value compatible with the explicit bit rate specified by speed().
This function should only be used when the caller is absolutely certain which bearer speed value they want, and they are certain that the underlying modem supports that value. The setSpeed() function is a better interface because it can determine the appropriate low-level bearer speed value from the capabilities of the modem.
See also gsmSpeed().
Sets the list of command-line options to be passed to pppd to value.
The list should not include the tty device name or port speed that normally appear at the start of the pppd command-line. These options will be added automatically by the system.
The list should also not include the connect or disconnect options, as they will be set based on the information in connectScript() and disconnectScript().
See also ipArgs().
Sets the filename for the connect script. The contents of the file must be formatted according to the chat(1) manual page.
See also ipConnectScript().
Sets the demand-dialing flag to value.
See also ipDemandDialing().
Sets the filename for the disconnect script. The contents of the file must be formatted according to the chat(1) manual page.
See also ipDisconnectScript().
Sets the full pathname of the pppd binary to value.
See also ipProgramName().
Sets the phone number to be dialed to value.
See also number().
Sets the PDP type for GPRS sessions to value. The contextId() must be non-zero for the type to be used when setting up a GPRS session.
See also pdpType().
Sets the explicit bit rate speed to value. For example, setting this to 9600 will select a bearer capable of 9600 bps.
See also speed().
Sets the data traffic transparency mode to value.
See also transparentMode().
Sets the IP module flag to value. If value is true, then the ipProgramName(), ipArgs(), ipConnectScript(), ipDisconnectScript(), and ipDemandDialing() functions should be used to determine how to launch the IP module.
See also useIpModule().
Returns the explicit bit rate speed. The default value of -1 indicates that the system should choose the best speed for the requested service.
See also setSpeed().
Returns the data traffic transparency mode. The default value is NonTransparent.
See also setTransparentMode().
Returns true if the call will use a IP module such as pppd to manage the data within the call; otherwise returns false.
See also setUseIpModule().
Makes a copy of other.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |