Public Member Functions
Osp::Telephony::CallManager Class Reference
Inheritance diagram for Osp::Telephony::CallManager:
Osp::Base::Object

Since:
1.0

The CallManager class provides methods to obtain the current call information and status.

The following example demonstrates how to use the CallManager class.

    result
    MyClass::GetCallInfo(void)
    {
        CallType callType = TYPE_UNDEFINED_CALL;
        CallStatus callStatus = CALL_STATUS_UNDEFINED;

        CallManager *pCallManager = new CallManager();

        result r = pCallManager->Construct(*this);
        if (IsFailed(r))
        {
            delete pCallManager;
            return r;
        }

        callStatus = pCallManager->GetCurrentCallStatus();

        if(callStatus == CALL_STATUS_COMMUNICATING)
            callType = pCallManager->GetCurrentCallType();

        delete pCallManager;
        return E_SUCCESS;
    }

    void
    MyClass::::OnTelephonyCallStatusChangedN(CallStatus  callStatus,CallInfo *  pCallInfo)
    {
        CallType    callType;
        String      number;

        if (callStatus == CALL_STATUS_RINGING) {
            callType  = pCallInfo->GetCallType();
            number = pCallInfo->GetNumber();
        }

        delete pCallInfo;
    }

List of all members.

Public Member Functions

 CallManager (void)
result Construct (const ITelephonyCallEventListener &listener)
result Construct (void)
CallStatus GetCurrentCallStatus (void) const
CallType GetCurrentCallType (void) const
virtual ~CallManager (void)

Constructor & Destructor Documentation

Osp::Telephony::CallManager::CallManager ( void  )

This is the default constructor for this class.

Since:
1.0
virtual Osp::Telephony::CallManager::~CallManager ( void  ) [virtual]

This is the destructor for this class.

Since:
1.0

Member Function Documentation

result Osp::Telephony::CallManager::Construct ( void  )

Initializes a new instance of this class.
This is the two phase construction.

Since:
1.0
Returns:
An error code
Exceptions:
E_SUCCESSThe method is successful.
E_SYSTEMA system error has occurred.
result Osp::Telephony::CallManager::Construct ( const ITelephonyCallEventListener listener)

Initializes a new instance of this class.
This is the two phase construction.

Since:
2.0
Returns:
An error code
Parameters:
[in]listenerThe listener for change in status of a call
Exceptions:
E_SUCCESSThe method is successful.
E_SYSTEMA system error has occurred.
CallStatus Osp::Telephony::CallManager::GetCurrentCallStatus ( void  ) const

Gets the call status of the current call.

Since:
1.0
Compatibility:
This method has compatibility issues with bada API versions prior to 2.0.
For more information, see here.
Returns:
The current call status,
else Telephony::CALL_STATUS_UNDEFINED if the method fails
CallType Osp::Telephony::CallManager::GetCurrentCallType ( void  ) const

Gets the call type of the current call.

Since:
1.0
Returns:
The current call type,
else Telephony::TYPE_UNDEFINED_CALL if the method fails

The documentation for this class was generated from the following file:

Copyright © 2011 Samsung Electronics Co., Ltd. All rights reserved.