mmmw_plat/voip_audio_services_api/inc/voipformatintfc.h
branchRCL_3
changeset 3 4f62049db6ac
parent 0 71ca22bcf22a
equal deleted inserted replaced
0:71ca22bcf22a 3:4f62049db6ac
     1 /*
     1 /*
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
     2  * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3  * All rights reserved.
     4 * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5  * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     8  *
     9 * Initial Contributors:
     9  * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    11 *
    11  *
    12 * Contributors:
    12  * Contributors:
    13 *
    13  *
    14 * Description:  Defines APIs common to all supported codecs.
    14  * Description:  Defines APIs common to all supported codecs.
    15 *
    15  *
    16 */
    16  */
    17 
       
    18 
    17 
    19 #ifndef __VOIPFORMATINTFC_H
    18 #ifndef __VOIPFORMATINTFC_H
    20 #define __VOIPFORMATINTFC_H
    19 #define __VOIPFORMATINTFC_H
    21 
    20 
    22 #include <voipaudiocommon.h>
    21 #include <voipaudiocommon.h>
    23 
       
    24 
    22 
    25 // FORWARD DECLARATIONS
    23 // FORWARD DECLARATIONS
    26 class CVoIPFormatIntfc;
    24 class CVoIPFormatIntfc;
    27 class CVoIPFormatIntfcImpl;
    25 class CVoIPFormatIntfcImpl;
    28 
    26 
    29 
       
    30 /**
    27 /**
    31  *  MVoIPFormatObserver class
    28  *  MVoIPFormatObserver class
    32  *
    29  *
    33  *  ?more_complete_description
    30  *  ?more_complete_description
    34  *
    31  *
    35  *  @lib VoIPAudioIntfc.dll
    32  *  @lib VoIPAudioIntfc.dll
    36  *  @since S60 v5.0
    33  *
    37  */
    34  */
    38 class MVoIPFormatObserver
    35 class MVoIPFormatObserver
    39     {
    36     {
    40 public:
    37 public:
    41     static const TUint KSilenceBegin     = 1;
    38     static const TUint KSilenceBegin = 1;
    42     static const TUint KSilenceUpdate    = 2;
    39     static const TUint KSilenceUpdate = 2;
    43     static const TUint KSilenceEnd       = 3;
    40     static const TUint KSilenceEnd = 3;
    44     static const TUint KObserverEventMax = 4;
    41     static const TUint KObserverEventMax = 4;
    45 
    42 
    46 public:
    43 public:
    47     /**
    44     /**
    48      * ?description
    45      * ?description
    53      * @return void
    50      * @return void
    54      */
    51      */
    55     virtual void Event(const CVoIPFormatIntfc& aSrc, TInt aEventType) = 0;
    52     virtual void Event(const CVoIPFormatIntfc& aSrc, TInt aEventType) = 0;
    56     };
    53     };
    57 
    54 
    58 
       
    59 /**
    55 /**
    60  *  CVoIPFormatIntfc class
    56  *  CVoIPFormatIntfc class
    61  *
    57  *
    62  *  Base class for codec format configuration
    58  *  Base class for codec format configuration
    63  *
    59  *
    64  *  @lib VoIPAudioIntfc.dll
    60  *  @lib VoIPAudioIntfc.dll
    65  *  @since S60 v5.0
    61  *
    66  */
    62  */
    67 class CVoIPFormatIntfc
    63 class CVoIPFormatIntfc
    68     {
    64     {
    69 public:
    65 public:
    70     /**
    66     /**
    71      *  TG711CodecMode
    67      *  TG711CodecMode
    72      *  ?description
    68      *  ?description
    73      *  @since S60 v5.0
    69  *
    74      */
    70      */
    75     enum TG711CodecMode
    71     enum TG711CodecMode
    76         {
    72         {
    77         EG711ALaw,
    73         EG711ALaw,
    78         EG711uLaw
    74         EG711uLaw
    79         };
    75         };
    80 
    76 
    81     /**
    77     /**
    82      *  TILBCCodecMode
    78      *  TILBCCodecMode
    83      *  ?description
    79      *  ?description
    84      *  @since S60 v5.0
    80  *
    85      */
    81      */
    86     enum TILBCCodecMode
    82     enum TILBCCodecMode
    87         {
    83         {
    88         EiLBC20mSecFrame,
    84         EiLBC20mSecFrame,
    89         EiLBC30mSecFrame
    85         EiLBC30mSecFrame
   207      * @return void
   203      * @return void
   208      */
   204      */
   209     void ConstructL(CVoIPFormatIntfcImpl* aVoIPFormatIntfcImpl);
   205     void ConstructL(CVoIPFormatIntfcImpl* aVoIPFormatIntfcImpl);
   210 
   206 
   211 protected:
   207 protected:
       
   208 
   212     CVoIPFormatIntfcImpl* iVoIPFormatIntfcImpl;
   209     CVoIPFormatIntfcImpl* iVoIPFormatIntfcImpl;
   213 
   210 
   214     };
   211     };
   215 
   212 
   216 #endif //__VOIPFORMATINTFC_H
   213 #endif //__VOIPFORMATINTFC_H