Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: etel.h
Link against: etel.lib

Class RLine

RLine

Support

Supported from 5.0

Description

Provides access to the functionality associated with a specific line.

This class is not intended for user derivation.

Derivation

RLineProvides access to the functionality associated with a specific line
RTelSubSessionBaseA base class used in the derivation of RCall, RLine, and RPhone

Defined in RLine:
Close(), DeregisterNotifyCallAdded(), DeregisterNotifyStatusChange(), EnumerateCall(), GetCallInfo(), GetCaps(), GetHookStatus(), GetInfo(), GetStatus(), KCapsData, KCapsEventIncomingCall, KCapsFax, KCapsVoice, NotifyCallAdded(), NotifyCallAddedCancel(), NotifyCapsChange(), NotifyCapsChangeCancel(), NotifyHookChange(), NotifyHookChangeCancel(), NotifyIncomingCall(), NotifyIncomingCallCancel(), NotifyOnAnything(), NotifyOnAnythingCancel(), NotifyStatusChange(), NotifyStatusChangeCancel(), Open(), RLine(), RegisterNotifyCallAdded(), RegisterNotifyStatusChange(), TCallInfo, TCaps, TCapsFlags, TLineInfo, TLineNotifyInfo


Construction and destruction


RLine()

RLine();

Description

Constructs an empty default constructor which is present only to support virtual function table export.

[Top]


Open/close line requests


Open()

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

Description

Opens a line from a phone connection.

Note:

Parameters

RPhone& aPhone

The phone from which the line is to be opened.

const TDesC& aName

The name of the line. Must match the name returned by the RPhone::GetLineInfo() function.

Return value

TInt

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


Open()

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

Description

Opens a line from a server connection. It might be used, in preference to the previous version, when access to phone functionality is not required.

Notes:

Parameters

RTelServer& aServer

The server from which the line is to be opened.

const TDesC& aName

The name of the line. The format of the name must be as shown below:PhoneName::LineName.

Return value

TInt

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


Close()

void Close();

Description

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

[Top]


Query Functions


GetCaps()

TInt GetCaps(TCaps& aCaps) const;

Description

Gets the line capabilities.

Parameters

TCaps& aCaps

On return, contains the line capabilities.

Return value

TInt

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


GetStatus()

TInt GetStatus(RCall::TStatus& aStatus) const;

Description

Gets line status information.

Parameters

RCall::TStatus& aStatus

On return, contains the line status.

Return value

TInt

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


GetHookStatus()

TInt GetHookStatus(RCall::THookStatus& aHookStatus) const;

Description

Gets the current hook status.

Parameters

RCall::THookStatus& aHookStatus

On return, contains the current hook status

Return value

TInt

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


EnumerateCall()

TInt EnumerateCall(TInt& aCount) const;

Description

Gets the number of calls opened from a line.

Parameters

TInt& aCount

On return, contains the number of calls opened from the line.

Return value

TInt

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


GetCallInfo()

TInt GetCallInfo(TInt aIndex,TCallInfo& aCallInfo) const;

Description

Gets enough information about a call to differentiate it from other calls on the line.

Parameters

TInt aIndex

The index of the call for which information is to be obtained.

TCallInfo& aCallInfo

On return, contains the call information.

Return value

TInt

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


GetInfo()

TInt GetInfo(TLineNotifyInfo& aLineNotifyInfo) const;

Support

Supported from 5.0
Withdrawn in 5.1

Description

Gets a snapshot of the current line information.

Parameters

TLineNotifyInfo& aLineNotifyInfo

On return, contains the current line information

Return value

TInt

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


GetInfo()

TInt GetInfo(TLineInfo& aLineInfo) const;

Support

Supported from 5.1

Description

Gets a snapshot of the current line information.

Parameters

TLineInfo& aLineInfo

On return, contains the current line information

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 line capabilities.

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

TCaps& aCaps

On request completion, contains the new line capabilities


NotifyCapsChangeCancel()

void NotifyCapsChangeCancel() const;

Description

Cancels an "line capabilities change" notification request, placed using the NotifyCapsChange() function.


NotifyOnAnything()

void NotifyOnAnything(TRequestStatus& aStatus,TLineNotifyInfo& aLineNotifyInfo);

Support

Supported from 5.0
Withdrawn in 5.1

Description

Provides notification of any change in the line information.

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

TLineNotifyInfo& aLineNotifyInfo

On request completion, contains the new line information.


NotifyOnAnythingCancel()

void NotifyOnAnythingCancel() const;

Support

Supported from 5.0
Withdrawn in 5.1

Description

Cancels an "any change" notification request, placed using theNotifyOnAnything() function.


NotifyIncomingCall()

void NotifyIncomingCall(TRequestStatus& aStatus, TName& aName);

Description

Provides notification to a client when an incoming call is detected.

Note

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

TName& aName

On request completion, contains the name of the incoming call.


NotifyIncomingCallCancel()

void NotifyIncomingCallCancel() const;

Description

Cancels an outstanding incoming call notification, placed with theNotifyIncomingCall() function.


NotifyHookChange()

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

Description

Provides notification when the hook status changes.

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

RCall::THookStatus& aHookStatus

On request completion, contains the new hook status.


NotifyHookChangeCancel()

void NotifyHookChangeCancel() const;

Description

Cancels an outstanding hook change notification request, placed using theNotifyHookChange() 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 line status change information. This buffer ensures that information is not lost between the completion of the client’s line status change request, and its next request being posted.

This function only creates a buffer for the notification. To actually get the status information use theNotifyStatusChange()function.

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

Deletes the status change notification buffer, placed using theRegisterNotifyStatusChange() function. If a client has a status change notification request 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,RCall::TStatus& aLineStatus);

Description

Provides notification about a change in the line status.

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

RCall::TStatus& aLineStatus

On request completion, contains the new line status.


NotifyStatusChangeCancel()

void NotifyStatusChangeCancel() const;

Description

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


NotifyCallAdded()

void NotifyCallAdded(TRequestStatus& aStatus,TName& aName);

Description

Provides notification that a new call is being added to the line.

Parameters

TRequestStatus& aStatus

A variable that indicates the completion status of the request.

TName& aName

On request completion, contains the name of the new call.


NotifyCallAddedCancel()

void NotifyCallAddedCancel() const;

Description

Cancels an outstanding “new call added” notification request, placed using theNotifyCallAdded()function.


RegisterNotifyCallAdded()

TInt RegisterNotifyCallAdded(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 the notification that a new call has been added to the line. This buffer ensures that information is not lost between completion of the client’s request for notification, 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.


DeregisterNotifyCallAdded()

TInt DeregisterNotifyCallAdded() const;

Support

Supported from 5.0
Withdrawn in 5.1

Description

Deletes the call added notification buffer in the server. If the client has a Call Added notification still outstanding, it will remain so.

Return value

TInt

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

[Top]


Enumerations


Enum TCapsFlags

TCapsFlags

Description

Line capability flags.

KCapsData

The line supports data connections.

KCapsFax

The line supports fax connections.

KCapsVoice

The line supports voice connections.

KCapsEventIncomingCall

The line supports incoming call notification requests.

[Top]


Struct


Struct TCaps

TCaps

Description

Line capability information.

Defined in RLine::TCaps:
iFlags

iFlags


TUint iFlags

Description

Line capability flag. Contains a bitmask of the values defined in theTCapsFlags enumeration.


Struct TCallInfo

TCallInfo

Description

Line call capability information.

Defined in RLine::TCallInfo:
iCallCapsFlags, iCallName, iStatus

iCallName


TName iCallName

Description

The name of a call.

iStatus


RCall::TStatus iStatus

Description

The call status.

iCallCapsFlags


TUint32 iCallCapsFlags

Description

The call capabilities flag.

[Top]


Class RLine::TLineNotifyInfo

RLine::TLineNotifyInfo

Support

Supported from 5.0
Withdrawn in 5.1

Description

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

This class is not intended for user derivation.

Defined in RLine::TLineNotifyInfo:
TLineNotifyInfo(), iHookStatus, iHookStatusChanged, iNameOfCallForAnswering, iNameOfCallForAnsweringChanged, iNameOfLastCallAdded, iNameOfLastCallAddedChanged, iStatus, iStatusChanged

[Top]


Construction and destruction


TLineNotifyInfo()

Rline::TLineNotifyInfo();

Description

Constructs and empty trivial constructor which is present only to support virtual function table export.

[Top]


Data members


iHookStatus

RCall::THookStatus iHookStatus

Description

The current hook status.


iHookStatusChanged

TBool iHookStatusChanged

Description

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


iStatus

RCall::TStatus iStatus

Description

The current line status.


iStatusChanged

TBool iStatusChanged

Description

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


iNameOfLastCallAdded

TName iNameOfLastCallAdded

Description

The name of the last call created on the line.


iNameOfLastCallAddedChanged

TBool iNameOfLastCallAddedChanged

Description

An indication that a new call has been created on the line and that its name is contained in the iNameOfLastCallAdded member variable.


iNameOfCallForAnswering

TName iNameOfCallForAnswering

Description

The name of the call to which a new incoming call will be directed.


iNameOfCallForAnsweringChanged

TBool iNameOfCallForAnsweringChanged

Description

An indication that a new call has been assigned to answer the next incoming call.

[Top]


Class RLine::TLineInfo

RLine::TLineInfo

Support

Supported from 5.1

Description

Collects together all the information associated with an instance of the core API line class into a single, directly accessible, structure.

This increases the efficiency of those applications which require access to the majority of the line’s data.

This class is not intended for user derivation.

Defined in RLine::TLineInfo:
TLineInfo(), iHookStatus, iNameOfCallForAnswering, iNameOfLastCallAdded, iStatus

[Top]


Construction and destruction


TLineInfo()

RLine::TLineInfo();

Description

Constructs and empty trivial constructor which is present only to support virtual function table export.

[Top]


Data members


iHookStatus

RCall::THookStatus iHookStatus

Description

The current hook status.


iStatus

RCall::TStatus iStatus

Description

The current line status.


iNameOfLastCallAdded

TName iNameOfLastCallAdded

Description

The name of the last call created on the line.


iNameOfCallForAnswering

TName iNameOfCallForAnswering

Description

The name of the call to which a new incoming call will be directed.