CPEVideoCallHandling Class Reference

class CPEVideoCallHandling : public CBase

Handles video call related events from phone engine

CallHandlingGsm.lib
Since
Series60_4.0

Inherits from

Public Member Functions
~CPEVideoCallHandling ()
TInt AnswerCall ()
TInt CallTerminatedError (const TInt )
TBool ConnectedCalls ()
TBool DataPortInUse ( TInt )
TInt DialCall (const TPEPhoneNumber &, TInt &)
TInt GetCallDuration ( TTimeIntervalSeconds &, TInt )
TInt GetCallInfo ( RMobileCall::TMobileCallInfoV3 &, TInt )
TPEState GetCallState ( TInt )
TInt GetNumberOfCalls ()
void HandleInternalMessage ( TInt )
TInt HangUp ( TInt )
void InitCall ( MCCECall &)
TBool IsMultimedia ( TInt )
TBool IsPhoneNumberAvailable (const TInt )
CPEVideoCallHandling * NewL ( MPEMessageSender &, MPEPhoneModelInternal &, CCCE &, CPECallArrayOwner &)
void NotifySystemCallStateChanged ( MEngineMonitor::TPEMessagesFromPhoneEngine , TInt )
TInt RejectCall ()
TInt ReleaseAll ()
TInt ReplaceActive ( TInt )
TInt ResumeCall ( TInt )
void SendErrorMessage (const TInt , const TInt )
void SendMessage (const MEngineMonitor::TPEMessagesFromPhoneEngine , const TInt )
void SendMessage (const MEngineMonitor::TPEMessagesFromPhoneEngine , const TName &)
void StartUp ()
TInt SwapCalls ()
TInt TerminateAllConnections ()
CPESingleCall * VideoCallById ( TInt )
CPESingleCall * VideoCallByState ( TPEState )
TName & VideoCallName (const TInt )
Private Member Functions
CPEVideoCallHandling ( MPEMessageSender &, MPEPhoneModelInternal &, CCCE &, CPECallArrayOwner &)
void ConstructL ()
CPESingleCall * OpenNewCallL (const TPEPhoneNumber &)
TInt ReleaseCallObject (const TInt )
void SetCallParams ( TInt )
CPESingleCall * VideoCallByName (const TName &)
CPESingleCall * VideoCallByState (const TPEState )
TBool VideoCallInState (const TPEState &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
CPECallArrayOwner & iCallArrayOwner
CCCECallParameters * iCallOpenParams
CCCE & iConvergedCallEngine
TName iDataCallName
MPEDataStore & iDataStore
CPEGprsTermination * iGprsInterface
MPEPhoneModelInternal & iModel
MPEMessageSender & iOwner
TBool iRestoreCauseVTCallReject

Constructor & Destructor Documentation

CPEVideoCallHandling(MPEMessageSender &, MPEPhoneModelInternal &, CCCE &, CPECallArrayOwner &)

CPEVideoCallHandling ( MPEMessageSender & aOwner,
MPEPhoneModelInternal & aModel,
CCCE & aConvergedCallEngine,
CPECallArrayOwner & aCallArrayOwner
) [private]

C++ default constructor

Parameters

MPEMessageSender & aOwner
MPEPhoneModelInternal & aModel
CCCE & aConvergedCallEngine
CPECallArrayOwner & aCallArrayOwner

~CPEVideoCallHandling()

~CPEVideoCallHandling ( ) [virtual]

Destructor

Member Functions Documentation

AnswerCall()

TInt AnswerCall ( )

Makes answer request.

CallTerminatedError(const TInt)

TInt CallTerminatedError ( const TInt aCallId )

Returns call terminated error

Parameters

const TInt aCallId

ConnectedCalls()

TBool ConnectedCalls ( )

Checks if there are any connected calls

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private

DataPortInUse(TInt)

TBool DataPortInUse ( TInt aCallId ) const

Checks if the call has reserved serial communications data port for use

Parameters

TInt aCallId

DialCall(const TPEPhoneNumber &, TInt &)

TInt DialCall ( const TPEPhoneNumber & aNumber,
TInt & aCallId
)

Creates dialing request.

Parameters

const TPEPhoneNumber & aNumber
TInt & aCallId

GetCallDuration(TTimeIntervalSeconds &, TInt)

TInt GetCallDuration ( TTimeIntervalSeconds & aDuration,
TInt aCallId
)

Returns call duration time

Parameters

TTimeIntervalSeconds & aDuration the duration value of the call
TInt aCallId

GetCallInfo(RMobileCall::TMobileCallInfoV3 &, TInt)

TInt GetCallInfo ( RMobileCall::TMobileCallInfoV3 & aCallInfo,
TInt aCallId
)

Returns information of the data call

Parameters

RMobileCall::TMobileCallInfoV3 & aCallInfo
TInt aCallId

GetCallState(TInt)

TPEState GetCallState ( TInt aCallId )

Get the call state , call identification number

Parameters

TInt aCallId

GetNumberOfCalls()

TInt GetNumberOfCalls ( )

Returns the number of non-idle data calls

HandleInternalMessage(TInt)

void HandleInternalMessage ( TInt aMessage )

Reroutes call messages.

Parameters

TInt aMessage specifies the event that has taken place

HangUp(TInt)

TInt HangUp ( TInt aCallId )

Makes HangUp request.

Parameters

TInt aCallId

InitCall(MCCECall &)

void InitCall ( MCCECall & aCall )

Initializes a single video call

Parameters

MCCECall & aCall handle to converged call engine call object

IsMultimedia(TInt)

TBool IsMultimedia ( TInt aCallId ) const

Checks if the data call is a multimedia call

Parameters

TInt aCallId

IsPhoneNumberAvailable(const TInt)

TBool IsPhoneNumberAvailable ( const TInt aCallId )

Checks is phonenumber available

Parameters

const TInt aCallId

NewL(MPEMessageSender &, MPEPhoneModelInternal &, CCCE &, CPECallArrayOwner &)

CPEVideoCallHandling * NewL ( MPEMessageSender & aOwner,
MPEPhoneModelInternal & aModel,
CCCE & aConvergedCallEngine,
CPECallArrayOwner & aCallArrayOwner
) [static]

Two-phased constructor

Parameters

MPEMessageSender & aOwner
MPEPhoneModelInternal & aModel
CCCE & aConvergedCallEngine
CPECallArrayOwner & aCallArrayOwner

NotifySystemCallStateChanged(MEngineMonitor::TPEMessagesFromPhoneEngine, TInt)

void NotifySystemCallStateChanged ( MEngineMonitor::TPEMessagesFromPhoneEngine aMessage,
TInt aCallId
)

Notifies system for changes to the call state.

OpenNewCallL(const TPEPhoneNumber &)

CPESingleCall * OpenNewCallL ( const TPEPhoneNumber & aNumber ) [private]

Create new CPESingleCall object to CPECallArrayOwner and open new MCCECall ojcte to CCE.

Parameters

const TPEPhoneNumber & aNumber

RejectCall()

TInt RejectCall ( )

Makes reject request.

ReleaseAll()

TInt ReleaseAll ( )

Makes HangUp requests for all calls

ReleaseCallObject(const TInt)

TInt ReleaseCallObject ( const TInt aCallId ) [private]

Delete's call object and reset's datastore.

Parameters

const TInt aCallId

ReplaceActive(TInt)

TInt ReplaceActive ( TInt aCallId )

Replace active video call with a waiting video call NOT SUPPORTED AS OF 5.1

Parameters

TInt aCallId

ResumeCall(TInt)

TInt ResumeCall ( TInt aCallId )

Makes resume request to the Multimode ETel

Parameters

TInt aCallId

SendErrorMessage(const TInt, const TInt)

void SendErrorMessage ( const TInt aCallId,
const TInt aErrorCode
)

Reroutes error message to Phone Engine, usable by call objects

Parameters

const TInt aCallId Identification number of the call.
const TInt aErrorCode

SendMessage(const MEngineMonitor::TPEMessagesFromPhoneEngine, const TInt)

void SendMessage ( const MEngineMonitor::TPEMessagesFromPhoneEngine aMessage,
const TInt aCallId
)

Overrides CPEDataCallHandling::SendMessage to provide internal handling for gsm events

Parameters

const MEngineMonitor::TPEMessagesFromPhoneEngine aMessage
const TInt aCallId

SendMessage(const MEngineMonitor::TPEMessagesFromPhoneEngine, const TName &)

void SendMessage ( const MEngineMonitor::TPEMessagesFromPhoneEngine aMessage,
const TName & aName
)

Reroutes call messages

Parameters

const MEngineMonitor::TPEMessagesFromPhoneEngine aMessage The message code of the message
const TName & aName Name of call fill be maped to call id

SetCallParams(TInt)

void SetCallParams ( TInt aCallId ) [private]

SetCallParams.

Parameters

TInt aCallId

StartUp()

void StartUp ( )

Starts monitoring incoming data calls

SwapCalls()

TInt SwapCalls ( )

Swaps connected and held calls

TerminateAllConnections()

TInt TerminateAllConnections ( )

Makes terminate all connection request.

VideoCallById(TInt)

CPESingleCall * VideoCallById ( TInt aCallId )

Video Call By call id

Parameters

TInt aCallId

VideoCallByName(const TName &)

CPESingleCall * VideoCallByName ( const TName & aName ) [private]

Returns data call object by name

Parameters

const TName & aName

VideoCallByState(TPEState)

CPESingleCall * VideoCallByState ( TPEState aState )

Video Call By State

Parameters

TPEState aState

VideoCallByState(const TPEState)

CPESingleCall * VideoCallByState ( const TPEState aState ) const [private]

Returns data call object by state

Parameters

const TPEState aState

VideoCallInState(const TPEState &)

TBool VideoCallInState ( const TPEState & aState ) const [private]

Checks if there are any data calls in the specified state

Parameters

const TPEState & aState

VideoCallName(const TInt)

TName & VideoCallName ( const TInt aCallId )

Finds data call name given the call id

Parameters

const TInt aCallId

Member Data Documentation

CPECallArrayOwner & iCallArrayOwner

CPECallArrayOwner & iCallArrayOwner [private]

CCCECallParameters * iCallOpenParams

CCCECallParameters * iCallOpenParams [private]

CCCE & iConvergedCallEngine

CCCE & iConvergedCallEngine [private]

TName iDataCallName

TName iDataCallName [private]

MPEDataStore & iDataStore

MPEDataStore & iDataStore [private]

CPEGprsTermination * iGprsInterface

CPEGprsTermination * iGprsInterface [private]

MPEPhoneModelInternal & iModel

MPEPhoneModelInternal & iModel [private]

MPEMessageSender & iOwner

MPEMessageSender & iOwner [private]

TBool iRestoreCauseVTCallReject

TBool iRestoreCauseVTCallReject [private]