mmserv/voipaudioservices/VoIPIntfc/inc/VoIPUtilityFactoryImpl.h
changeset 0 71ca22bcf22a
child 53 eabc8c503852
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  VOIP Audio Services
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __VOIPUTILITYFACTORYIMPL_H
       
    20 #define __VOIPUTILITYFACTORYIMPL_H
       
    21 
       
    22 #include <mmfbase.h>
       
    23 #include <voipaudiocommon.h>
       
    24 #include <voiputilityfactory.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 
       
    29 /**
       
    30  *  CVoIPUtilityFactoryImpl class
       
    31  *
       
    32  *  ?more_complete_description
       
    33  *
       
    34  *  @lib VoIPAudioIntfc.dll
       
    35  *  @since S60 v5.0
       
    36  */
       
    37 NONSHARABLE_CLASS(CVoIPUtilityFactoryImpl) : public CBase
       
    38     {
       
    39     enum TStreamType
       
    40         {
       
    41         EDownlink,
       
    42         EUplink
       
    43         };
       
    44 
       
    45 public:
       
    46 
       
    47     /**
       
    48      * ?description
       
    49      *
       
    50      * @since S60 v5.0
       
    51      * @param none
       
    52      * @return CVoIPUtilityFactoryImpl*
       
    53      */
       
    54     static CVoIPUtilityFactoryImpl* NewL();
       
    55 
       
    56     /**
       
    57      * Destructor
       
    58      *
       
    59      * @since S60 v5.0
       
    60      * @param none
       
    61      * @return none
       
    62      */
       
    63     virtual ~CVoIPUtilityFactoryImpl();
       
    64 
       
    65     /**
       
    66      * ?description
       
    67      *
       
    68      * @since S60 v5.0
       
    69      * @param TVersion
       
    70      * @param TCallType
       
    71      * @param CVoIPAudioDownlinkStream*&
       
    72      * @return void
       
    73      */
       
    74     void CreateDownlinkStreamL(TVersion aVersion,
       
    75                                CVoIPUtilityFactory::TVoIPCallType aCallType,
       
    76                                CVoIPAudioDownlinkStream*& aDnLink);
       
    77 
       
    78     /**
       
    79      * ?description
       
    80      *
       
    81      * @since S60 v5.0
       
    82      * @param TVersion
       
    83      * @param CVoIPJitterBufferIntfc*&
       
    84      * @param CVoIPAudioDownlinkStream*&
       
    85      * @return void
       
    86      */
       
    87     void CreateDownlinkStreamL(TVersion aVersion,
       
    88                                CVoIPJitterBufferIntfc*& aJBIntfc,
       
    89                                CVoIPAudioDownlinkStream*& aDnLink);
       
    90 
       
    91     /**
       
    92      * ?description
       
    93      *
       
    94      * @since S60 v5.0
       
    95      * @param TVersion
       
    96      * @param TCallType
       
    97      * @param CVoIPAudioUplinkStream*&
       
    98      * @return void
       
    99      */
       
   100     void CreateUplinkStreamL(TVersion aVersion,
       
   101                              CVoIPUtilityFactory::TVoIPCallType aCallType,
       
   102                              CVoIPAudioUplinkStream*& aUpLink);
       
   103 
       
   104     /**
       
   105      * ?description
       
   106      *
       
   107      * @since S60 v5.0
       
   108      * @param CDTMFTonePlayer*&
       
   109      * @return void
       
   110      */
       
   111     void CreateDTMFTonePlayerL(CDTMFTonePlayer*& aDtmfPlayer);
       
   112 
       
   113     /**
       
   114      * ?description
       
   115      *
       
   116      * @since S60 v5.0
       
   117      * @param CVoIPDataBuffer*&
       
   118      * @param const CVoIPDataBuffer::TVoIPBufferType
       
   119      * @param const TVoIPCodecFormat
       
   120      * @return void
       
   121      */
       
   122     void CreateBufferL(CVoIPDataBuffer*& aBuffer,
       
   123                        const CVoIPDataBuffer::TVoIPBufferType aType,
       
   124                        const TVoIPCodecFormat aCodecFormat);
       
   125 
       
   126     /**
       
   127      * ?description
       
   128      *
       
   129      * @since S60 v5.0
       
   130      * @param RArray<TVoIPCodecFormat>&
       
   131      * @return TInt -
       
   132      */
       
   133     TInt GetSupportedDownlinkFormats(RArray<TVoIPCodecFormat>& aFormats);
       
   134 
       
   135     /**
       
   136      * ?description
       
   137      *
       
   138      * @since S60 v5.0
       
   139      * @param RArray<TVoIPCodecFormat>&
       
   140      * @return TInt -
       
   141      */
       
   142     TInt GetSupportedUplinkFormats(RArray<TVoIPCodecFormat>& aFormats);
       
   143 
       
   144 protected:
       
   145 
       
   146 private:
       
   147 
       
   148     /**
       
   149      * Constructor
       
   150      *
       
   151      * @since S60 v5.0
       
   152      * @param none
       
   153      * @return none
       
   154      */
       
   155     CVoIPUtilityFactoryImpl();
       
   156 
       
   157     /**
       
   158      * Symbian constructor
       
   159      *
       
   160      * @since S60 v5.0
       
   161      * @param none
       
   162      * @return void
       
   163      */
       
   164     void ConstructL();
       
   165 
       
   166 private:
       
   167 
       
   168     CVoIPAudioDownlinkStreamImpl* iDownLink; // not owned!
       
   169     CVoIPAudioUplinkStreamImpl*   iUpLink;   // not owned!
       
   170     TMMFPrioritySettings          iPriorityUp;
       
   171     TMMFPrioritySettings          iPriorityDn;
       
   172 
       
   173     };
       
   174 
       
   175 #endif //__VOIPUTILITYFACTORYIMPL_H
       
   176 
       
   177 // End of file