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