mmserv/tms/tmscallserver/inc/calladpt.h
changeset 0 71ca22bcf22a
child 3 4f62049db6ac
child 12 5a06f39ad45b
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 CALLADPT_H
       
    19 #define CALLADPT_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <tms.h>
       
    23 
       
    24 namespace TMS {
       
    25 
       
    26 // CallAdpt class
       
    27 class CallAdpt
       
    28     {
       
    29 public:
       
    30     static gint CreateCallL(gint callType, CallAdpt*& callAdpt);
       
    31     virtual ~CallAdpt();
       
    32     virtual gint CreateStream(TMSCallType callType,
       
    33             TMSStreamType strmType, gint& outStrmId) = 0;
       
    34     virtual gint InitStreamL(TMSCallType callType,
       
    35             TMSStreamType strmType, gint strmId, TMSFormatType frmtType,
       
    36             const RMessage2& aMessage) = 0;
       
    37     virtual gint StartStream(TMSCallType callType,
       
    38             TMSStreamType strmType, gint strmId) = 0;
       
    39     virtual gint PauseStream(TMSCallType callType,
       
    40             TMSStreamType strmType, gint strmId) = 0;
       
    41     virtual gint StopStream(TMSCallType callType, TMSStreamType strmType,
       
    42             gint strmId) = 0;
       
    43     virtual gint DeinitStream(TMSCallType callType,
       
    44             TMSStreamType strmType, gint strmId) = 0;
       
    45     virtual gint DeleteStream(TMSCallType callType,
       
    46             TMSStreamType strmType, gint strmId) = 0;
       
    47     virtual gint DataXferBufferEmptied(TMSCallType callType,
       
    48             TMSStreamType strmType, gint strmId) = 0;
       
    49     virtual gint DataXferBufferFilled(TMSCallType callType,
       
    50             TMSStreamType strmType, gint strmId, guint datasize) = 0;
       
    51     virtual gint GetDataXferBufferHndl(const TMSCallType callType,
       
    52             const TMSStreamType strmType, const gint strmId,
       
    53             const guint32 key, RChunk& chunk) = 0;
       
    54 
       
    55     virtual gint GetMaxVolume(guint& volume) = 0;
       
    56     virtual gint SetVolume(const guint volume) = 0;
       
    57     virtual gint GetVolume(guint& volume) = 0;
       
    58     virtual gint GetMaxGain(guint& gain) = 0;
       
    59     virtual gint SetGain(const guint gain) = 0;
       
    60     virtual gint GetGain(guint& gain) = 0;
       
    61     virtual gint GetGlobalMaxVolume(guint& volume) = 0;
       
    62     virtual gint SetGlobalVolume(const guint volume) = 0;
       
    63     virtual gint GetGlobalVolume(guint& volume) = 0;
       
    64     virtual gint GetGlobalMaxGain(guint& gain) = 0;
       
    65     virtual gint SetGlobalGain(const guint gain) = 0;
       
    66     virtual gint GetGlobalGain(guint& gain) = 0;
       
    67 
       
    68     virtual gint GetCodecMode(const TMSFormatType fmttype,
       
    69             const TMSStreamType strmtype, gint& mode) = 0;
       
    70     virtual gint SetCodecMode(const TMSFormatType fmttype,
       
    71             const TMSStreamType strmtype, const gint mode) = 0;
       
    72     virtual gint GetSupportedBitRatesCount(guint& count) = 0;
       
    73     virtual gint GetSupportedBitRates(CBufFlat*& brbuffer) = 0;
       
    74     virtual gint GetBitRate(guint& bitrate) = 0;
       
    75     virtual gint SetBitRate(const guint bitrate) = 0;
       
    76     virtual gint GetVAD(const TMSFormatType fmttype, gboolean& vad) = 0;
       
    77     virtual gint SetVAD(const TMSFormatType fmttype, const gboolean vad) = 0;
       
    78     virtual gint GetCNG(const TMSFormatType fmttype, gboolean& cng) = 0;
       
    79     virtual gint SetCNG(const TMSFormatType fmttype, const gboolean cng) = 0;
       
    80     virtual gint GetPlc(const TMSFormatType fmttype, gboolean& plc) = 0;
       
    81     virtual gint SetPlc(const TMSFormatType fmttype, const gboolean plc) = 0;
       
    82     virtual gint SetOutput(TMSAudioOutput output) = 0;
       
    83     virtual gint GetOutput(TMSAudioOutput& output) = 0;
       
    84     virtual gint GetPreviousOutput(TMSAudioOutput& output) = 0;
       
    85     virtual gint GetAvailableOutputsL(gint& count,
       
    86             CBufFlat*& outputsbuffer) = 0;
       
    87 
       
    88 protected:
       
    89     CallAdpt();
       
    90     virtual gint PostConstruct();
       
    91 
       
    92 protected:
       
    93     gint iGlobalVol;
       
    94     gint iGlobalGain;
       
    95     };
       
    96 
       
    97 } //namespace TMS
       
    98 
       
    99 #endif // CALLADPT_H
       
   100 
       
   101 // End of file