mmmw_plat/voip_audio_services_api/inc/voipuplinkstream.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 VoIP uplink stream APIs.
    14  * Description:  Defines VoIP uplink stream APIs.
    15 *
    15  *
    16 */
    16  */
    17 
       
    18 
    17 
    19 #ifndef __VOIPUPLINKSTREAM_H
    18 #ifndef __VOIPUPLINKSTREAM_H
    20 #define __VOIPUPLINKSTREAM_H
    19 #define __VOIPUPLINKSTREAM_H
    21 
    20 
    22 #include <voipaudiocommon.h>
    21 #include <voipaudiocommon.h>
    23 #include <voipdtmftoneplayer.h>
    22 #include <voipdtmftoneplayer.h>
    24 
       
    25 
    23 
    26 // FORWARD DECLARATIONS
    24 // FORWARD DECLARATIONS
    27 class CVoIPDataBuffer;
    25 class CVoIPDataBuffer;
    28 class CVoIPFormatIntfc;
    26 class CVoIPFormatIntfc;
    29 class CVoIPAudioUplinkStream;
    27 class CVoIPAudioUplinkStream;
    30 class CVoIPAudioUplinkStreamImpl;
    28 class CVoIPAudioUplinkStreamImpl;
    31 
    29 
    32 
       
    33 /**
    30 /**
    34  *  MVoIPUplinkObserver class
    31  *  MVoIPUplinkObserver class
    35  *
    32  *
    36  *  ?more_complete_description
    33  *  ?more_complete_description
    37  *
    34  *
    38  *  @lib VoIPAudioIntfc.dll
    35  *  @lib VoIPAudioIntfc.dll
    39  *  @since S60 v5.0
    36  *
    40  */
    37  */
    41 class MVoIPUplinkObserver
    38 class MVoIPUplinkObserver
    42     {
    39     {
    43 public:
    40 public:
    44     static const TUint KOpenComplete = 1;
    41     static const TUint KOpenComplete = 1;
    45     static const TUint KUplinkError  = 2;
    42     static const TUint KUplinkError = 2;
    46     static const TUint KUplinkClosed = 3;
    43     static const TUint KUplinkClosed = 3;
    47 
    44 
    48 public:
    45 public:
    49     /**
    46     /**
    50      * ?description
    47      * ?description
    53      * @param CVoIPAudioUplinkStream&
    50      * @param CVoIPAudioUplinkStream&
    54      * @param TPtr8
    51      * @param TPtr8
    55      * @return void
    52      * @return void
    56      */
    53      */
    57     virtual void EmptyBuffer(const CVoIPAudioUplinkStream& aSrc,
    54     virtual void EmptyBuffer(const CVoIPAudioUplinkStream& aSrc,
    58                              CVoIPDataBuffer* aBuffer) = 0;
    55             CVoIPDataBuffer* aBuffer) = 0;
    59 
    56 
    60     /**
    57     /**
    61      * ?description
    58      * ?description
    62      *
    59      *
    63      * @since S60 v5.0
    60      * @since S60 v5.0
    64      * @param CVoIPAudioUplinkStream&
    61      * @param CVoIPAudioUplinkStream&
    65      * @param TInt - Event type
    62      * @param TInt - Event type
    66      * @param TInt - Status
    63      * @param TInt - Status
    67      * @return void
    64      * @return void
    68      */
    65      */
    69     virtual void Event(const CVoIPAudioUplinkStream& aSrc,
    66     virtual void Event(const CVoIPAudioUplinkStream& aSrc, TInt aEventType,
    70                        TInt aEventType,
    67             TInt aError) = 0;
    71                        TInt aError) = 0;
       
    72     };
    68     };
    73 
       
    74 
    69 
    75 /**
    70 /**
    76  *  CVoIPAudioUplinkStream class
    71  *  CVoIPAudioUplinkStream class
    77  *
    72  *
    78  *  ?more_complete_description
    73  *  ?more_complete_description
    79  *
    74  *
    80  *  @lib VoIPAudioIntfc.dll
    75  *  @lib VoIPAudioIntfc.dll
    81  *  @since S60 v5.0
    76  *
    82  */
    77  */
    83 class CVoIPAudioUplinkStream
    78 class CVoIPAudioUplinkStream
    84     {
    79     {
    85 public:
    80 public:
    86 
    81 
   145      * @param TVoIPCodecFormat
   140      * @param TVoIPCodecFormat
   146      * @param CVoIPFormatIntfc&
   141      * @param CVoIPFormatIntfc&
   147      * @return TInt
   142      * @return TInt
   148      */
   143      */
   149     IMPORT_C TInt SetFormat(TVoIPCodecFormat aFormat,
   144     IMPORT_C TInt SetFormat(TVoIPCodecFormat aFormat,
   150                             CVoIPFormatIntfc*& aIntfc);
   145             CVoIPFormatIntfc*& aIntfc);
   151 
   146 
   152     /**
   147     /**
   153      * ?description
   148      * ?description
   154      *
   149      *
   155      * @since S60 v5.0
   150      * @since S60 v5.0
   217 
   212 
   218     };
   213     };
   219 
   214 
   220 #endif //__VOIPUPLINKSTREAM_H
   215 #endif //__VOIPUPLINKSTREAM_H
   221 
   216 
   222 
       
   223 // End of file
   217 // End of file