Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: etel.h
Link against: etel.lib

Class RCall

RCall

Support

Supported from 5.0

Description

Call sub-session.

Provides access to the functionality associated with a specific call.

This class is not intended for user derivation

Derivation

RCallCall sub-session
RTelSubSessionBaseA base class used in the derivation of RCall, RLine, and RPhone

Defined in RCall:
AcquireOwnership(), AcquireOwnershipCancel(), AnswerIncomingCall(), AnswerIncomingCallCancel(), Close(), Connect(), ConnectCancel(), DeregisterNotifyStatusChange(), Dial(), DialCancel(), EBearerData1200, EBearerData12000, EBearerData1200_75, EBearerData14400, EBearerData19200, EBearerData2400, EBearerData300, EBearerData31200, EBearerData33600, EBearerData4800, EBearerData57600, EBearerData7200, EBearerData75_1200, EBearerData9600, EBearerDataUnknown, EDialToneNoWait, EDialToneWait, EFaxOnDemand, EFaxPoll, EHookStatusOff, EHookStatusOn, EHookStatusUnknown, EMonitorSpeakerControlAlwaysOff, EMonitorSpeakerControlAlwaysOn, EMonitorSpeakerControlOnExceptDuringDialling, EMonitorSpeakerControlOnUntilCarrier, EMonitorSpeakerControlUnknown, EMonitorSpeakerVolumeHigh, EMonitorSpeakerVolumeLow, EMonitorSpeakerVolumeMedium, EMonitorSpeakerVolumeOff, EMonitorSpeakerVolumeUnknown, EOwnershipOwnedByAnotherClient, EOwnershipOwnedByThisClient, EOwnershipThisIsPriorityClient, EOwnershipUnowned, EReceive, EStatusAnswering, EStatusConnected, EStatusConnecting, EStatusDialling, EStatusHangingUp, EStatusIdle, EStatusRinging, EStatusUnknown, ETransmit, GetBearerServiceInfo(), GetCallDuration(), GetCallParams(), GetCaps(), GetFaxSettings(), GetInfo(), GetOwnershipStatus(), GetStatus(), HangUp(), HangUpCancel(), KBearerCapsCompressionMNP5, KBearerCapsCompressionNone, KBearerCapsCompressionUnknown, KBearerCapsCompressionV42bis, KBearerCapsProtocolALT, KBearerCapsProtocolALT_CELLULAR, KBearerCapsProtocolLAPM, KBearerCapsProtocolNone, KBearerCapsProtocolUnknown, KCapsAnswer, KCapsConnect, KCapsData, KCapsDial, KCapsFax, KCapsHangUp, KCapsLoanDataPort, KCapsRecoverDataPort, KCapsVoice, KFaxIdUserNameMaxSize, LoanDataPort(), LoanDataPortCancel(), NotifyCallDurationChange(), NotifyCallDurationChangeCancel(), NotifyCapsChange(), NotifyCapsChangeCancel(), NotifyHookChange(), NotifyHookChangeCancel(), NotifyOnAnything(), NotifyOnAnythingCancel(), NotifyStatusChange(), NotifyStatusChangeCancel(), OpenExistingCall(), OpenNewCall(), RCall(), RecoverDataPort(), RegisterNotifyStatusChange(), SetFaxSettings(), TBearerCaps, TBearerService, TCallBearerSpeed, TCallInfo, TCallNotifyInfo, TCallParams, TCallParamsPckg, TCaps, TCapsEnum, TCommPort, TConstants, TFaxMode, TFaxRetrieveType, TFaxSessionSettings, THookStatus, TMonitorSpeakerControl, TMonitorSpeakerVolume, TOwnershipStatus, TStatus, TTelNumberC, TWaitForDialTone, TransferOwnership()


Construction and destruction


RCall()

RCall();

Description

Creates the default empty constructor, and is present only to support virtual function table export.

Notes:

[Top]


Opening/closing a Call


OpenNewCall()

TInt OpenNewCall(RTelServer& aServer,const TDesC& aName,TDes& aNewName);

Description

Opens a new call from a server session and returns the call name.

Parameters

RTelServer& aServer

The server opening the call.

const TDesC& aName

The name of the line from which the call is to be opened. The format of the name must be Phone_Name::Line_Name::.

TDes& aNewName

On return, contains the name of the new call.

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes.

Notes:


OpenNewCall()

TInt OpenNewCall(RTelServer& aServer,const TDesC& aName);

Description

Opens a new call from a server, but does not return the new name to the client.

Parameters

RTelServer& aServer

The server opening the call.

const TDesC& aName

The name of the line from which the call is to be opened. The format of the name must be: Phone_Name::Line_Name::

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes.

Notes:


OpenNewCall()

TInt OpenNewCall(RPhone& aPhone,const TDesC& aName,TDes& aNewName);

Description

Opens a new call from a phone and returns the name top the client.

Parameters

RPhone& aPhone

The phone opening the call.

const TDesC& aName

The name of the line to open the call from. The format of the name must be: Line_Name::. The name of the line can be obtained using the RPhone::GetLineInfo() function.

TDes& aNewName

On return, contains the name of the new call.

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes.

Notes:


OpenNewCall()

TInt OpenNewCall(RPhone& aPhone,const TDesC& aName);

Description

Opens a new call from a phone, but does not return the new name to the client.

Note:

Parameters

RPhone& aPhone

The phone opening the call.

const TDesC& aName

The name of the line to open the call from. The format of the name must be: Line_Name::. The name of the line can be obtained using the RPhone::GetLineInfo() function.

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes.


OpenNewCall()

TInt OpenNewCall(RLine& aLine,TDes& aNewName);

Description

Opens a new call from a line and returns the name to the client.

Parameters

RLine& aLine

The line opening the call.

TDes& aNewName

On return, contains the name of the new call.

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes.

Notes:


OpenNewCall()

TInt OpenNewCall(RLine& aLine);

Description

Opens a new call from a line. The name of the new call is not returned.

Parameters

RLine& aLine

The line opening the call.

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes.

Notes:


OpenExistingCall()

TInt OpenExistingCall(RTelServer& aServer,const TDesC& aName);

Description

Opens an existing call from a server.

Parameters

RTelServer& aServer

The server opening the call.

const TDesC& aName

The name of the call to open. Must be of the form: Phone_Name::Line_Name::Call_Name.

Return value

TInt

KErrNone if successful, KErrNotFound if the call name does not exist, otherwise another of the system-wide error codes.

Notes:


OpenExistingCall()

TInt OpenExistingCall(RPhone& aPhone,const TDesC& aName);

Description

Opens an existing call from a phone.

Parameters

RPhone& aPhone

The phone opening the call.

const TDesC& aName

The name of the call to open. Must be of the form: Line_Name::Call_Name.

Return value

TInt

KErrNone if successful, KErrNotFound if the call name does not exist, otherwise another of the system-wide error codes.

Notes:


OpenExistingCall()

TInt OpenExistingCall(RLine& aLine,const TDesC& aName);

Description

Opens an existing call from a line.

Parameters

RLine& aLine

The line opening the call.

const TDesC& aName

The name of the call to open.

Return value

TInt

KErrNone if successful, KErrNotFound if the call name does not exist, otherwise another of the system-wide error codes.

Notes:


Close()

void Close();

Description

Closes the RCall subsession. This function must be called for all RCall subsessions which have been opened — to prevent memory leakage.

[Top]


Query functions


GetStatus()

TInt GetStatus(TStatus& aStatus) const;

Description

Gets the current call status.

Parameters

TStatus& aStatus

On return, contains the current call status

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes.


GetCaps()

TInt GetCaps(TCaps& aCaps) const;

Description

Gets a snapshot of the current call capabilities.

Parameters

TCaps& aCaps

On return, contains the call capabilities

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes.


GetBearerServiceInfo()

TInt GetBearerServiceInfo(TBearerService& aBearerService) const;

Description

Gets the bearer service information associated with the call. Bearer service information is only available if the call is currently active.

Parameters

TBearerService& aBearerService

On return, contains the bearer service information.

Return value

TInt

KErrNone if successful, KErrNotFound if the call name does not exist, otherwise another of the system-wide error codes.


GetInfo()

TInt GetInfo(TCallNotifyInfo& aCallNotifyInfo) const;

Support

Supported from 5.0
Withdrawn in 5.1

Description

Gets the current call information.

Parameters

TCallNotifyInfo& aCallNotifyInfo

On return, contains the current call information

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes.


GetInfo()

TInt GetInfo(TCallInfo& aCallInfo) const;

Support

Supported from 5.1

Description

Gets the current call information.

Parameters

TCallInfo& aCallInfo

On return, contains the current call information

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes.


GetCallDuration()

TInt GetCallDuration(TTimeIntervalSeconds& aTime) const;

Description

Gets the call duration.

Parameters

TTimeIntervalSeconds& aTime

On return, contains the call duration (in seconds)

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes.KErrEtelCallNotActive is returned if there is no active call.


GetCallParams()

TInt GetCallParams(TDes8& aParams) const;

Description

Gets the current call parameters.

Parameters

TDes8& aParams

On return, contains the call parameters. The variable must be an instance of the TCallParamPckg class.

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes.

[Top]


Notification functions


NotifyCapsChange()

void NotifyCapsChange(TRequestStatus& aStatus, TCaps& aCaps);

Description

Provides notification of a change in the call capabilities.

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

TCaps& aCaps

On request completion, contains the call’s capability information


NotifyCapsChangeCancel()

void NotifyCapsChangeCancel() const;

Description

Cancels a "call capabilities change" notification request, placed using the NotifyCapsChange() function.


NotifyOnAnything()

void NotifyOnAnything(TRequestStatus& aStatus,TCallNotifyInfo& aCallNotifyInfo);

Support

Supported from 5.0
Withdrawn in 5.1

Description

Provides notification of changes in the call information.

Parameters

TRequestStatus& aStatus

A flag that indicates the completion status of the request.

TCallNotifyInfo& aCallNotifyInfo

On return, contains the new call information.


NotifyOnAnythingCancel()

void NotifyOnAnythingCancel() const;

Support

Supported from 5.0
Withdrawn in 5.1

Description

Cancels an "Any change" notification request, placed using the NotifyOnAnything() function.


NotifyHookChange()

void NotifyHookChange(TRequestStatus& aStatus,THookStatus& aHookStatus);

Description

Provides notification of a change in the hook status.

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

THookStatus& aHookStatus

On request completion, contains the new hook status


NotifyHookChangeCancel()

void NotifyHookChangeCancel() const;

Description

Cancels an outstanding “hook status change” notification request, placed with the NotifyHookChange() function.


RegisterNotifyStatusChange()

TInt RegisterNotifyStatusChange(const TInt aBufferSize) const;

Support

Supported from 5.0
Withdrawn in 5.1

Description

Causes the server to create a buffer, specifically for the requesting client, to store a notification that the hook status has changed. This buffer ensures that information is not lost between the client’s request for notification completing, and its next request being posted.

Parameters

const TInt aBufferSize

The number of events that the server can buffer

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes.


DeregisterNotifyStatusChange()

TInt DeregisterNotifyStatusChange() const;

Support

Supported from 5.0
Withdrawn in 5.1

Description

This function deletes the buffer in the server. If a client has a status change notification still outstanding, it will remain so.

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes.


NotifyStatusChange()

void NotifyStatusChange(TRequestStatus& aStatus,TStatus& aCallStatus);

Description

Provides notification about a change in the status of a call.

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

TStatus& aCallStatus

On request completion, contains the new call status.


NotifyStatusChangeCancel()

void NotifyStatusChangeCancel() const;

Description

Cancels an outstanding “call status change” notification request, placed using the NotifyStatusChange() function.


NotifyCallDurationChange()

void NotifyCallDurationChange(TRequestStatus& aStatus,TTimeIntervalSeconds& aTime);

Description

Provides notification of an increase in call duration (by one second).

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

TTimeIntervalSeconds& aTime

On request completion, contains the current update of the call duration.


NotifyCallDurationChangeCancel()

void NotifyCallDurationChangeCancel() const;

Description

Cancels an outstanding “call duration change” notification request, placed using the NotifyCallDurationChange() function.

[Top]


Connection and disconnection functions


Dial()

TInt Dial(const TTelNumberC& aTelNumber) const;

Description

Attempts to establish a connection using the telephone number specified.

Parameters

const TTelNumberC& aTelNumber

A telephone number.

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes or an ETel Core error code.

Notes:

See also:


Dial()

TInt Dial(const TDesC8& aCallParams,const TTelNumberC& aTelNumber) const;

Description

Attempts to establish a connection using the telephone number specified.

Parameters

const TDesC8& aCallParams

The call parameters used by the TSY (a TCallParamsPckg object).

const TTelNumberC& aTelNumber

A telephone number.

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes or an ETel Core error code.

Notes:

See also:


Dial()

void Dial(TRequestStatus& aStatus,const TTelNumberC& aTelNumber);

Description

Attempts to establish a connection using the telephone number specified.

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

const TTelNumberC& aTelNumber

A telephone number

Notes:


Dial()

void Dial(TRequestStatus& aStatus,const TDesC8& aCallParams,const TTelNumberC& aTelNumber);

Description

Attempts to establish a connection using the telephone number specified.

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

const TDesC8& aCallParams

The call parameters used by the TSY (a TCallParamsPckg object).

const TTelNumberC& aTelNumber

The telephone number

Notes:


DialCancel()

void DialCancel() const;

Description

Cancels an outstanding dial request, placed with the asynchronous version of the Dial() function.


Connect()

TInt Connect() const;

Description

Attempts to connect to a remote modem without dialling — synchronous. It is intended for use when other equipment has been used to dial the call.

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes or an ETel Core error code.

Notes:

See also:


Connect()

TInt Connect(const TDesC8& aCallParams) const;

Description

Attempts to connect to a remote modem without dialling — synchronous. It is intended for use when other equipment has been used to dial the call.

Parameters

const TDesC8& aCallParams

The call parameters used by the TSY (a TCallParamsPckg object).

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes or an ETel Core error code.

Notes:

See also:


Connect()

void Connect(TRequestStatus& aStatus);

Description

Attempts to connect to a remote modem without dialling — asynchronous. It is intended for use when other equipment has been used to dial the call.

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

Notes:


Connect()

void Connect(TRequestStatus& aStatus,const TDesC8& aCallParams);

Description

Attempts to connect to a remote modem without dialling — asynchronous. It is intended for use when other equipment has been used to dial the call.

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

const TDesC8& aCallParams

The call parameters used by the TSY (a TCallParamsPckg object).

Notes:


ConnectCancel()

void ConnectCancel() const;

Description

Allows a client to cancel a “connection” request, placed using the asynchronous versions of the Connect() function.


AnswerIncomingCall()

TInt AnswerIncomingCall() const;

Description

Waits for an incoming call and answers it when it arrives — synchronous.

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes or an ETel Core error code.

Notes:

See also:


AnswerIncomingCall()

TInt AnswerIncomingCall(const TDesC8& aCallParams) const;

Description

Waits for an incoming call and answers it when it arrives — synchronous. The function also answers calls which are ringing when it is invoked.

Parameters

const TDesC8& aCallParams

The call parameters used by the TSY (a TCallParamsPckg object).

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes or an ETel Core error code.

Notes:

See also:


AnswerIncomingCall()

void AnswerIncomingCall(TRequestStatus& aStatus);

Description

Waits for an incoming call and answers it when it arrives — asynchronous. The function also answers calls which are ringing when it is invoked.

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

Notes:


AnswerIncomingCall()

void AnswerIncomingCall(TRequestStatus& aStatus,const TDesC8& aCallParams);

Description

Waits for an incoming call and answers it when it arrives — asynchronous. The function also answers calls which are ringing when it is invoked.

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

const TDesC8& aCallParams

The call parameters used by the TSY (a TCallParamsPckg object).


AnswerIncomingCallCancel()

void AnswerIncomingCallCancel() const;

Description

Allows a client to cancel an outstanding call answer request, that was placed using the asynchronous versions of the AnswerIncomingCall() function. If a call has not arrived the TSY notes that it should not answer when one arrives; if the call is answering, then an attempt is made to abort.


HangUp()

TInt HangUp() const;

Description

Terminates an active call established with the Dial(), Connect() or AnswerIncomingCall() functions — synchronous.

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes or an ETel Core error code.

Notes:

See also:


HangUp()

void HangUp(TRequestStatus& aStatus) const;

Description

Terminates an active call established with the Dial(), Connect() or AnswerIncomingCall() functions — asynchronous.

Parameters

TRequestStatus& aStatus

KErrNone if successful, otherwise another of the system-wide error codes or an ETel Core error code.

See also:


HangUpCancel()

void HangUpCancel() const;

Description

Cancels an outstanding HangUp request, placed using the asynchronous version of the HangUp() function. It should be noted that if the call termination sequence has begun there is little hope of retaining the call even if this function is used.

[Top]


Call data access functions


LoanDataPort()

TInt LoanDataPort(TCommPort& aDataPort) const;

Description

Allows a client to gain control of the serial communications abstraction used to communicate with a modem.

Parameters

TCommPort& aDataPort

On return, contains the information required to open the communications port.

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes or an ETel Core error code.KErrEtelCallNotActive is returned if the function is called before a connection has been established to a remote modem.KErrEtelNotCallOwner is returned by the server if this client does not own the active call (The default owner of a call is the client who initiated or answered the call in the first place — ownership may change however if another client requests it and the owner transfers it or closes unexpectedly).

Notes:

See also:


LoanDataPort()

void LoanDataPort(TRequestStatus& aStatus,TCommPort& aDataPort);

Description

Allows a client to gain control of the serial communications abstraction used to communicate with the modem.

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.KErrEtelCallNotActive is returned if the function is called before a connection has been established to a remote modem.KErrEtelNotCallOwner is returned by the server if this client does not own the active call (The default owner of a call is the client who initiated or answered the call in the first place — ownership may change however if another client requests it and the owner transfers it or closes unexpectedly).

TCommPort& aDataPort

On request completion, contains the information required to open the communications port.

Notes:


LoanDataPortCancel()

void LoanDataPortCancel() const;

Description

Allows a client to cancel an outstanding loan communications port request, placed using the asynchronous version of the LoanDataPort() function.


RecoverDataPort()

TInt RecoverDataPort() const;

Description

Indicates that the client has finished using the serial communication channel — so the ETel server can retake control.

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes or an ETel Core error code. KErrEtelPortNotLoanedToClient is returned if the communications port is not on loan. KErrEtelNotCallOwner is returned if communications port is loaned, but not by the current call.

[Top]


Call ownership manipulation functions


AcquireOwnership()

void AcquireOwnership(TRequestStatus& aStatus) const;

Description

Aquires ownership from another client. This function completes when the current call owner calls the TransferOwnership() function, or if it closes its handle without hanging up. When (and if) the request completes, call ownership has transferred to the new client.

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

Notes:


AcquireOwnershipCancel()

void AcquireOwnershipCancel() const;

Description

Cancels an outstanding request to acquire call ownership, placed with the AcquireOwnership() function.


TransferOwnership()

TInt TransferOwnership() const;

Description

Allows clients with call ownership to transfer ownership to another interested client.

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes or an ETel Core error code. KErrEtelNoClientInterestedInThisCall is returned if no clients are interested in the ownership, i.e. none have a pending AcquireOwnership() request. Ownership remains with the client. KErrEtelNotCallOwner is returned if the client does not have call ownership.


GetOwnershipStatus()

TInt GetOwnershipStatus(TOwnershipStatus& aOwnershipStatus) const;

Description

Gets ownership information associated with the call.

Parameters

TOwnershipStatus& aOwnershipStatus

On return, contains the call ownership status information

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes.

[Top]


Fax settings


GetFaxSettings()

TInt GetFaxSettings(TFaxSessionSettings& aSettings) const;

Description

Gets the current fax settings.

Parameters

TFaxSessionSettings& aSettings

On return, contains the fax settings

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes or an ETel Core error code.


SetFaxSettings()

TInt SetFaxSettings(const TFaxSessionSettings& aSettings) const;

Description

Assigns the fax settings.

Parameters

const TFaxSessionSettings& aSettings

The new fax settings

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes or an ETel Core error code.

[Top]


Member Enumerations


Enum TBearerCaps

TBearerCaps

Description

Bearer capability flags.

KBearerCapsCompressionV42bis

V42bis modem compression protocol.

KBearerCapsCompressionMNP5

MNP5 modem compression protocol.

KBearerCapsCompressionNone

No compression supported.

KBearerCapsProtocolLAPM

LAPM error correction protocol.

KBearerCapsProtocolALT_CELLULAR

MNP10 mode.

KBearerCapsProtocolALT

MNP error correction.

KBearerCapsProtocolNone

No protocol information provided.

KBearerCapsCompressionUnknown

Compression protocol unknown.

KBearerCapsProtocolUnknown

Unable to establish protocol.


Enum TCallBearerSpeed

TCallBearerSpeed

Description

Bearer speed flags.

EBearerData57600

Transfer rate of 57600 bps.

EBearerData33600

Transfer rate of 33600 bps.

EBearerData31200

Transfer rate of 31200 bps.

EBearerData19200

Transfer rate of 9200 bps.

EBearerData14400

Transfer rate of 4400 bps.

EBearerData12000

Transfer rate of 12000 bps.

EBearerData9600

Transfer rate of 9600 bps.

EBearerData7200

Transfer rate of 7200 bps.

EBearerData4800

Transfer rate of 4800 bps.

EBearerData2400

Transfer rate of 2400 bps.

EBearerData1200

Transfer rate of 200 bps.

EBearerData75_1200

V.23 75 bps forward, 1200 bps back

EBearerData1200_75

V.23 1200 bps forward, 75 bps back

EBearerData300

Transfer rate of 300 bps.

EBearerDataUnknown

Transfer rate is unknown.


Enum TCapsEnum

TCapsEnum

Description

Call capability flags.

KCapsData

The call supports data calls.

KCapsFax

The call supports fax calls.

KCapsVoice

The call supports voice calls.

KCapsDial

The Dial request is currently a valid action.

KCapsConnect

The Connect request is currently a valid action.

KCapsHangUp

The Hang Up request is currently a valid action.

KCapsAnswer

The Answer request is currently a valid action.

KCapsLoanDataPort

The Loan Data Port request is currently a valid action.

KCapsRecoverDataPort

The Recover Data Port request is currently a valid action.


Enum TConstants

TConstants

Description

Fax identifier size flags.

KFaxIdUserNameMaxSize

20


Enum TFaxMode

TFaxMode

Description

Fax mode flags.

ETransmit

Fax is transmitting

EReceive

Fax is receiving.


Enum TFaxRetrieveType

TFaxRetrieveType

Description

Fax retrieval type flags.

EFaxOnDemand

Retrieving a fax opened from voice call (not currently supported by GSM networks).

EFaxPoll

Retrieve a fax opened from fax call.


Enum THookStatus

THookStatus

Description

Hook status flags.

EHookStatusOff

The line is currently off hook.

EHookStatusOn

The line is currently on hook.

EHookStatusUnknown

The status of the line's hook is currently unknown


Enum TMonitorSpeakerControl

TMonitorSpeakerControl

Description

Monitor speaker control setting flags.

EMonitorSpeakerControlAlwaysOff

Speaker control is always off

EMonitorSpeakerControlOnUntilCarrier

Speaker control is on until the carrier is detected

EMonitorSpeakerControlAlwaysOn

Speaker control is always active.

EMonitorSpeakerControlOnExceptDuringDialling

Speaker control is on, except while dialling

EMonitorSpeakerControlUnknown

Speaker control is unknown.


Enum TMonitorSpeakerVolume

TMonitorSpeakerVolume

Description

Monitor speaker volume control setting flags.

EMonitorSpeakerVolumeOff

Speaker volume is off.

EMonitorSpeakerVolumeLow

Speaker volume is low.

EMonitorSpeakerVolumeMedium

Speaker volume is medium.

EMonitorSpeakerVolumeHigh

Speaker volume is high.

EMonitorSpeakerVolumeUnknown

Speaker volume is unknown.


Enum TOwnershipStatus

TOwnershipStatus

Description

Call ownership status flags.

EOwnershipUnowned

The call is not owned.

EOwnershipOwnedByAnotherClient

The call is owned, but not by this RCall instance.

EOwnershipOwnedByThisClient

The call is owned by this RCall instance.

EOwnershipThisIsPriorityClient

The call is owned, but not by the priority client


Enum TStatus

TStatus

Description

Call status flags.

EStatusUnknown

The call status is not known.

EStatusIdle

The call is idle.

EStatusDialling

The call is dialling.

EStatusRinging

The call is ringing (an incoming, unanswered call).

EStatusAnswering

The call is being answered.

EStatusConnecting

The call is connecting (immediate call establishment, without dialling).

EStatusConnected

The call is connected and active.

EStatusHangingUp

The call is being terminated.


Enum TWaitForDialTone

TWaitForDialTone

Description

Wait for dial tone flags.

EDialToneWait

Waiting for dial tone.

EDialToneNoWait

Not waiting for dial tone.

[Top]


Structs


Struct TBearerService

TBearerService

Description

Call bearer information.

Defined in RCall::TBearerService:
iBearerCaps, iBearerSpeed

iBearerCaps


TUint32 iBearerCaps

Description

The bearer capabilities.

iBearerSpeed


TCallBearerSpeed iBearerSpeed

Description

The bearer's speed.

See also:


Struct TCaps

TCaps

Description

Call capability information.

Defined in RCall::TCaps:
iFlags

iFlags


TUint iFlags

Description

Call capability flag. Contains a bitmask of values defined in the TCapsEnum enumeration.


Struct TCommPort

TCommPort

Description

Communications port information.

Defined in RCall::TCommPort:
iCsy, iPort

iCsy


TFileName iCsy

Description

The CSY module used by the C32 Communications Server to talk to the serial device.

See also:

iPort


TName iPort

Description

The port used by the C32 Communications Server to talk to the serial device.

See also:


Struct TFaxSessionSettings

TFaxSessionSettings

Description

Fax session settings information.

Defined in RCall::TFaxSessionSettings:
iFaxClass, iFaxId, iFaxOnDemandDelay, iFaxRetrieveType, iMaxSpeed, iMinSpeed, iMode, iPreferredECM, iRxCompression, iRxResolution, iTxCompression, iTxPages, iTxResolution

iMode


TFaxMode iMode

Description

The fax mode.

See also:

iFaxRetrieveType


TFaxRetrieveType iFaxRetrieveType

Description

The mode of retrieving faxes.

See also:

iFaxClass


TFaxClass iFaxClass

Description

The class of fax

See also:

iFaxId


TBuf8<KFaxIdUserNameMaxSize> iFaxId

Support

Supported from 5.0
Withdrawn in 5.1

Description

The fax identifier string displayed at the top of the fax.

See also:

iFaxId


TBuf<KFaxIdUserNameMaxSize> iFaxId

Support

Supported from 5.1

Description

The fax identifier string displayed at the top of the fax.

See also:

iMaxSpeed


TInt iMaxSpeed

Description

The maximum transfer speed that can be negotiated.

iMinSpeed


TInt iMinSpeed

Description

The minimum transfer speed that should be negotiated.

iPreferredECM


TInt iPreferredECM

Description

The preferred compression mode used for negotiation. This may take one of the following values: EModifiedHuffman, EModifiedRead, EUncompressedModifiedRead, EModifiedModifiedRead.

iFaxOnDemandDelay


TInt iFaxOnDemandDelay

Description

The delay used for Fax on Demand services. Measured in seconds.

iTxResolution


TFaxResolution iTxResolution

Description

The preferred transmit resolution. This may take one of the following values: EFaxNormal EFaxFine

See also:

iTxCompression


TFaxCompression iTxCompression

Description

Compression mode for transmitting faxes.

See also:

iTxPages


TInt iTxPages

Description

The number of pages to be transmitted.

iRxResolution


TFaxResolution iRxResolution

Description

The preferred receive resolution. This may take one of the following values: EFaxNormal EFaxFine.

See also:

iRxCompression


TFaxCompression iRxCompression

Description

Compression mode for receiving faxes.

See also:

[Top]


Typedefs


Typedef TTelNumberC

typedef TDesC8 TTelNumberC;

Support

Supported from 5.0
Withdrawn in 5.1

Description

Passes telephone numbers into Dial functions.


Typedef TTelNumberC

typedef TDesC TTelNumberC;

Support

Supported from 5.1

Description

Passes telephone numbers into Dial functions.


Typedef TCallParamsPckg

typedef TPckg<TCallParams> TCallParamsPckg;

Description

Call parameters package

The call parameters to be associated with a call may be passed into functions using this type.

Notes:

[Top]


Class RCall::TCallNotifyInfo

RCall::TCallNotifyInfo

Support

Supported from 5.0
Withdrawn in 5.1

Description

Core API call class information.

Collects all the information associated with an instance of the core API call class together into a single, directly accessible, structure to increase the efficiency of those applications that require access to the majority of the call's data.

This class is not intended for user derivation

Defined in RCall::TCallNotifyInfo:
TCallNotifyInfo(), iCallName, iCallNameChanged, iDuration, iDurationChanged, iHookStatus, iHookStatusChanged, iLineName, iLineNameChanged, iStatus, iStatusChanged

[Top]


Construction and destruction


TCallNotifyInfo()

RCall::TCallNotifyInfo();

Description

Empty constructor.

[Top]


Data members


iCallName

TName iCallName;

Description

The name of the call.

See also:


iCallNameChanged

TBool iCallNameChanged;

Description

An indication that the name of the call has changed.


iLineName

TName iLineName;

Description

The name of the call’s line.

See also:


iLineNameChanged

TBool iLineNameChanged;

Description

An indication that the line information has changed since the last notification.


iHookStatus

THookStatus iHookStatus;

Description

The hook status.

Notes:


iHookStatusChanged

TBool iHookStatusChanged;

Description

An indication that the hook status information has changed since the last notification.


iStatus

TStatus iStatus;

Description

The current call status.

See also:


iStatusChanged

TBool iStatusChanged;

Description

An indication that the call status has changed since the last notification.


iDuration

TTimeIntervalSeconds iDuration;

Description

The current call duration.

See also:


iDurationChanged

TBool iDurationChanged;

Description

An indication that the call duration has changed since the last notification.

[Top]


Class RCall::TCallInfo

RCall::TCallInfo

Support

Supported from 5.1

Description

Core API call class information

Collects all the information associated with an instance of the core API call class together into a single, directly accessible, structure to increase the efficiency of those applications that require access to the majority of the call's data.

This class is not intended for user derivation

Defined in RCall::TCallInfo:
TCallInfo(), iCallName, iDuration, iHookStatus, iLineName, iStatus

[Top]


Construction and destruction


TCallInfo()

RCall::TCallInfo();

Description

Empty constructor.

[Top]


Data members


iCallName

TName iCallName;

Description

The name of the call.

See also:


iLineName

TName iLineName;

Description

The name of the call's line.

See also:


iHookStatus

THookStatus iHookStatus;

Description

The hook status.

See also:


iStatus

TStatus iStatus;

Description

The current call status.

See also:


iDuration

TTimeIntervalSeconds iDurationl

Description

The current call duration.

See also:

[Top]


Class RCall::TCallParams

RCall::TCallParams

Description

Call parameter information.

Defines the call parameter information.

This class is not intended for user derivation.

Defined in RCall::TCallParams:
IsDefault(), TCallParams(), iInterval, iSpeakerControl, iSpeakerVolume, iWaitForDialTone

[Top]


Construction and destruction


TCallParams()

RCall::TCallParams();

Description

Trivial default constructor.

Creates a properly initialised TCallParams object. The member variables are initialised as shown in the following table.

  1. iSpeakerControl: EMonitorSpeakerControlOnUntilCarrier

  2. iSpeakerVolume: EMonitorSpeakerVolumeLow

  3. iInterval: 4

  4. iWaitForDialTone: EDialToneWait

  5. iIsDefault: ETrue


TCallParams()

TCallParams(TMonitorSpeakerControl aSpeakerControl, TMonitorSpeakerVolume aSpeakerVolume, TUint aInterval, TWaitForDialTone aWaitForDialTone);

Description

Allows developers to initialise member variables when the object is constructed.

Parameters

TMonitorSpeakerControl aSpeakerControl

Specifies speaker control mode.

TMonitorSpeakerVolume aSpeakerVolume

Specifies the speaker volume setting

TUint aInterval

Specifies the pause interval used when a comma is inserted into the dial string

TWaitForDialTone aWaitForDialTone

Specifies whether the modem is asked to wait for a dial tone before issuing the dial tones or pulses.

[Top]


Functions


IsDefault()

TBool IsDefault();

Description

Tests if the object was created using the default values.

Return value

TBool

True, if the object was created using the default values.

[Top]


Data members


iSpeakerControl

TMonitorSpeakerControl iSpeakerControl;

Description

The monitor speaker control setting.

See also:


iSpeakerVolume

TMonitorSpeakerVolume iSpeakerVolume;

Description

The monitor speaker volume control setting.

See also:


iInterval

TUint iInterval;

Description

The length of a pause created during dialling by the comma character (',') measured in seconds


iWaitForDialTone

TWaitForDialTone iWaitForDialTone;

Description

Whether, when dialling a call, the modem should wait for a dial tone.

See also: