RPhone Class Reference

class RPhone : public RTelSubSessionBase

Phone sub-session.

Provides access to the functionality associated with a specific phone.

This class is not intended for user derivation.

Public Member Functions
RPhone()
IMPORT_C voidClose()
IMPORT_C TIntEnumerateLines(TInt &)
IMPORT_C TIntGetCaps(TCaps &)
IMPORT_C TIntGetInfo(TPhoneInfo &)
IMPORT_C TIntGetLineInfo(const TInt, TLineInfo &)
IMPORT_C TIntGetStatus(TStatus &)
IMPORT_C TIntInitialise()
IMPORT_C voidInitialise(TRequestStatus &)
IMPORT_C voidInitialiseCancel()
IMPORT_C voidNotifyCapsChange(TRequestStatus &, TCaps &)
IMPORT_C voidNotifyCapsChangeCancel()
IMPORT_C voidNotifyModemDetected(TRequestStatus &, TModemDetection &)
IMPORT_C voidNotifyModemDetectedCancel()
IMPORT_C TIntOpen(RTelServer &, const TDesC &)
IMPORT_C TIntSetEmergencyClient(const TUint32)
Protected Member Functions
IMPORT_C voidConstructL()
IMPORT_C voidDestruct()
Inherited Functions
RSubSessionBase::CloseSubSession(TInt)
RSubSessionBase::CreateAutoCloseSubSession(RSessionBase &,TInt,const TIpcArgs &)
RSubSessionBase::CreateSubSession(const RSessionBase &,TInt)
RSubSessionBase::CreateSubSession(const RSessionBase &,TInt,const TIpcArgs &)
RSubSessionBase::RSubSessionBase()
RSubSessionBase::Send(TInt)const
RSubSessionBase::Send(TInt,const TIpcArgs &)const
RSubSessionBase::SendReceive(TInt)const
RSubSessionBase::SendReceive(TInt,TRequestStatus &)const
RSubSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSubSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSubSessionBase::Session()const
RSubSessionBase::SubSessionHandle()const
RTelSubSessionBase::Blank(const TInt,TReqPriorityType)const
RTelSubSessionBase::Blank(const TInt,TRequestStatus &,TReqPriorityType)const
RTelSubSessionBase::CancelAsyncRequest(TInt)const
RTelSubSessionBase::CancelReq(const TInt,const TInt)const
RTelSubSessionBase::CancelSubSession()const
RTelSubSessionBase::Get(const TInt,TDes16 &,TDes16 &,TReqPriorityType)const
RTelSubSessionBase::Get(const TInt,TDes16 &,TReqPriorityType)const
RTelSubSessionBase::Get(const TInt,TDes8 &,TDes16 &,TReqPriorityType)const
RTelSubSessionBase::Get(const TInt,TDes8 &,TDes8 &,TReqPriorityType)const
RTelSubSessionBase::Get(const TInt,TDes8 &,TReqPriorityType)const
RTelSubSessionBase::Get(const TInt,TRequestStatus &,TDes16 &,TDes16 &,TReqPriorityType)const
RTelSubSessionBase::Get(const TInt,TRequestStatus &,TDes16 &,TReqPriorityType)const
RTelSubSessionBase::Get(const TInt,TRequestStatus &,TDes8 &,TDes16 &,TReqPriorityType)const
RTelSubSessionBase::Get(const TInt,TRequestStatus &,TDes8 &,TDes8 &,TReqPriorityType)const
RTelSubSessionBase::Get(const TInt,TRequestStatus &,TDes8 &,TReqPriorityType)const
RTelSubSessionBase::RTelSubSessionBase()
RTelSubSessionBase::ResetSessionHandle()
RTelSubSessionBase::SessionHandle()const
RTelSubSessionBase::Set(const TInt,TRequestStatus &,const TDesC16 &,TReqPriorityType)const
RTelSubSessionBase::Set(const TInt,TRequestStatus &,const TDesC16 &,const TDesC16 &,TReqPriorityType)const
RTelSubSessionBase::Set(const TInt,TRequestStatus &,const TDesC8 &,TReqPriorityType)const
RTelSubSessionBase::Set(const TInt,TRequestStatus &,const TDesC8 &,const TDesC16 &,TReqPriorityType)const
RTelSubSessionBase::Set(const TInt,TRequestStatus &,const TDesC8 &,const TDesC8 &,TReqPriorityType)const
RTelSubSessionBase::Set(const TInt,const RFile &,TReqPriorityType)const
RTelSubSessionBase::Set(const TInt,const TDesC16 &,TReqPriorityType)const
RTelSubSessionBase::Set(const TInt,const TDesC16 &,const TDesC16 &,TReqPriorityType)const
RTelSubSessionBase::Set(const TInt,const TDesC8 &,TReqPriorityType)const
RTelSubSessionBase::Set(const TInt,const TDesC8 &,const TDesC16 &,TReqPriorityType)const
RTelSubSessionBase::Set(const TInt,const TDesC8 &,const TDesC8 &,TReqPriorityType)const
RTelSubSessionBase::SetAndGet(const TInt,TRequestStatus &,TDes8 &,const TDesC16 &,TReqPriorityType)const
RTelSubSessionBase::SetAndGet(const TInt,TRequestStatus &,const TDesC16 &,TDes16 &,TReqPriorityType)const
RTelSubSessionBase::SetAndGet(const TInt,TRequestStatus &,const TDesC8 &,TDes16 &,TReqPriorityType)const
RTelSubSessionBase::SetAndGet(const TInt,TRequestStatus &,const TDesC8 &,TDes8 &,TReqPriorityType)const
RTelSubSessionBase::SetSessionHandle(RSessionBase &)
RTelSubSessionBase::SubSessionHandle()
Public Member Enumerations
enumTCapsFlags {
KCapsUnknown = 0x00000001, KCapsData = 0x00000002, KCapsFaxClassOne = 0x0000004, KCapsFaxClassOnePointZero = 0x0000008, KCapsFaxClassTwo = 0x00000010, KCapsFaxClassTwoPointZero = 0x00000020, KCapsFaxClassTwoPointOne = 0x00000040, KCapsVoice = 0x00000080, KCapsEventModemDetection = 0x00010000, KCapsStealCommPort = 0x00020000
}
enumTEmergencyRequest { EEmergencyLCSRequest = 0x00000001, EEmergencyCSVoiceCallRequest = 0x00000002 }
enumTMode { EModeUnknown, EModeIdle, EModeEstablishingLink, EModeOnlineData, EModeOnlineCommand }
enumTModemDetection { EDetectedPresent, EDetectedNotPresent, EDetectedUnknown }
Inherited Enumerations
RTelSubSessionBase:TReqPriorityType
Inherited Attributes
RTelSubSessionBase::iPtrHolder

Constructor & Destructor Documentation

RPhone()

IMPORT_CRPhone()

Member Functions Documentation

Close()

IMPORT_C voidClose()

ConstructL()

IMPORT_C voidConstructL()[protected, virtual]

Destruct()

IMPORT_C voidDestruct()[protected, virtual]

EnumerateLines(TInt &)

IMPORT_C TIntEnumerateLines(TInt &aCount)const

Parameters

TInt & aCount

GetCaps(TCaps &)

IMPORT_C TIntGetCaps(TCaps &aCaps)const

Parameters

TCaps & aCaps

GetInfo(TPhoneInfo &)

IMPORT_C TIntGetInfo(TPhoneInfo &aPhoneInfo)const

Parameters

TPhoneInfo & aPhoneInfo

GetLineInfo(const TInt, TLineInfo &)

IMPORT_C TIntGetLineInfo(const TIntaIndex,
TLineInfo &aLineInfo
)const

Parameters

const TInt aIndex
TLineInfo & aLineInfo

GetStatus(TStatus &)

IMPORT_C TIntGetStatus(TStatus &aStatus)const

Parameters

TStatus & aStatus

Initialise()

IMPORT_C TIntInitialise()

Initialise(TRequestStatus &)

IMPORT_C voidInitialise(TRequestStatus &aStatus)

Parameters

TRequestStatus & aStatus

InitialiseCancel()

IMPORT_C voidInitialiseCancel()

NotifyCapsChange(TRequestStatus &, TCaps &)

IMPORT_C voidNotifyCapsChange(TRequestStatus &aStatus,
TCaps &aCaps
)

Parameters

TRequestStatus & aStatus
TCaps & aCaps

NotifyCapsChangeCancel()

IMPORT_C voidNotifyCapsChangeCancel()const

NotifyModemDetected(TRequestStatus &, TModemDetection &)

IMPORT_C voidNotifyModemDetected(TRequestStatus &aStatus,
TModemDetection &aDetection
)

Parameters

TRequestStatus & aStatus
TModemDetection & aDetection

NotifyModemDetectedCancel()

IMPORT_C voidNotifyModemDetectedCancel()const

Open(RTelServer &, const TDesC &)

IMPORT_C TIntOpen(RTelServer &aSession,
const TDesC &aName
)

Parameters

RTelServer & aSession
const TDesC & aName

SetEmergencyClient(const TUint32)

IMPORT_C TIntSetEmergencyClient(const TUint32aEmergencyRequest)const

Parameters

const TUint32 aEmergencyRequest

Member Enumerations Documentation

Enum TCapsFlags

Phone capability flags.

Enumerators

KCapsUnknown = 0x00000001

The capabilities of the phone are not known.

KCapsData = 0x00000002

The phone supports data calls.

KCapsFaxClassOne = 0x0000004

The phone supports the fax class 1 interface.

KCapsFaxClassOnePointZero = 0x0000008

The phone supports the fax class 1.0 interface.

KCapsFaxClassTwo = 0x00000010

The phone supports the fax class 2 interface.

KCapsFaxClassTwoPointZero = 0x00000020

The phone supports the fax class 2.0 interface.

KCapsFaxClassTwoPointOne = 0x00000040

The phone supports the fax class 2.1 interface.

KCapsVoice = 0x00000080

The phone supports voice calls.

KCapsEventModemDetection = 0x00010000

The phone supports modem detection events, i.e. it can notify clients when the modem can be or can no longer be detected.

KCapsStealCommPort = 0x00020000

The phone supports the ability to take the communications port from whatever component is currently using it.

Enum TEmergencyRequest

Enumerators

EEmergencyLCSRequest = 0x00000001

Location Based Services Emergency Request

EEmergencyCSVoiceCallRequest = 0x00000002

Circuit Switch Voice Call Emergency Request

Enum TMode

Phone mode status flags.

Enumerators

EModeUnknown

Phone (modem) status unknown.

EModeIdle

Phone is idle.

EModeEstablishingLink

Phone is establishing link.

EModeOnlineData

Modem is in data mode.

EModeOnlineCommand

Modem is in command mode and the line is active.

Enum TModemDetection

Modem connection status flags.

Enumerators

EDetectedPresent

Modem present.

EDetectedNotPresent

Modem is not present.

EDetectedUnknown

Modem connection status is unknown.