mmserv/tms/inc/tmscallproxy.h
changeset 0 71ca22bcf22a
child 21 2ed61feeead6
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description: Telephony Multimedia Service
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef TMS_CALL_PROXY_H
       
    19 #define TMS_CALL_PROXY_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>
       
    23 #include <tms.h>
       
    24 
       
    25 namespace TMS {
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class TMSProxy;
       
    31 class TMSBuffer;
       
    32 
       
    33 // TMSCallProxy class
       
    34 class TMSCallProxy : public RSessionBase
       
    35     {
       
    36 public:
       
    37     IMPORT_C TMSCallProxy();
       
    38     IMPORT_C virtual ~TMSCallProxy();
       
    39     IMPORT_C gint Connect();
       
    40     IMPORT_C gint CreateCall(const gint calltype);
       
    41     IMPORT_C gint CreateStream(const TMSCallType callType,
       
    42             const TMSStreamType strmType, gint& strmId);
       
    43     IMPORT_C gint InitStream(const TMSCallType callType,
       
    44             const TMSStreamType strmType, gint strmId,
       
    45             const TMSFormatType frmtType, RHandleBase* msgQueue);
       
    46     IMPORT_C gint StartStream(const TMSCallType callType,
       
    47             const TMSStreamType strmType, gint strmId);
       
    48     IMPORT_C gint PauseStream(const TMSCallType callType,
       
    49             const TMSStreamType strmType, gint strmId);
       
    50     IMPORT_C gint StopStream(const TMSCallType callType,
       
    51             const TMSStreamType strmType, gint strmId);
       
    52     IMPORT_C gint DeinitStream(const TMSCallType callType,
       
    53             const TMSStreamType strmType, gint strmId);
       
    54     IMPORT_C gint DeleteStream(const TMSCallType callType,
       
    55             const TMSStreamType strmType, gint& strmId);
       
    56     IMPORT_C void DeleteCall();
       
    57     IMPORT_C void Close();
       
    58 
       
    59     IMPORT_C gint BufferEmptied(TMSCallType callType,
       
    60             TMSStreamType strmType, gint strmId, TMSBuffer& buffer);
       
    61     IMPORT_C gint BufferFilled(TMSCallType callType,
       
    62             TMSStreamType strmType, gint strmId, TMSBuffer& buffer);
       
    63     IMPORT_C gint GetMaxVolume(guint& aVol);
       
    64     IMPORT_C gint SetVolume(const guint aVol);
       
    65     IMPORT_C gint GetVolume(guint& aVol);
       
    66     IMPORT_C gint GetMaxGain(guint& aGain);
       
    67     IMPORT_C gint SetGain(const guint aGain);
       
    68     IMPORT_C gint GetGain(guint& aGain);
       
    69 
       
    70     IMPORT_C gint GetSupportedBitRates(BitRateVector& aVector);
       
    71     IMPORT_C gint SetBitRate(const guint aBitrate);
       
    72     IMPORT_C gint GetBitRate(guint& aBitrate);
       
    73     IMPORT_C gint GetFormatCodecMode(const TMSFormatType aFmtType,
       
    74             const TMSStreamType aStrmType, gint& aMode);
       
    75     IMPORT_C gint SetFormatCodecMode(const TMSFormatType aFmtType,
       
    76             const TMSStreamType aStrmType, gint aMode);
       
    77     IMPORT_C gint GetCNG(const TMSFormatType aFmtType, gboolean& aCng);
       
    78     IMPORT_C gint SetCNG(const TMSFormatType aFmtType, gboolean aCng);
       
    79     IMPORT_C gint GetPlc(const TMSFormatType aFmtType, gboolean& aPlc);
       
    80     IMPORT_C gint SetPlc(const TMSFormatType aFmtType, gboolean aPlc);
       
    81     IMPORT_C gint GetVADMode(const TMSFormatType fmttype, gboolean& vad);
       
    82     IMPORT_C gint SetVADMode(const TMSFormatType fmttype, gboolean vad);
       
    83 
       
    84     IMPORT_C gint GetDataXferChunkHandle(TMSCallType callType,
       
    85             TMSStreamType strmType, gint strmId, guint32 key);
       
    86 
       
    87 private:
       
    88     void GetSupportedBitRatesL(BitRateVector& aVector);
       
    89 
       
    90 private:
       
    91     TMSProxy* iTMSProxy;
       
    92     };
       
    93 
       
    94 } //namespace TMS
       
    95 
       
    96 #endif // TMS_CALL_PROXY_H
       
    97 
       
    98 // End of file