vtengines/videoteleng/Inc/Base/CVtEngHandlerContainer.h
changeset 0 ed9695c8bcbe
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Handler container
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CVTENGHANDLERCONTAINER_H
       
    21 #define CVTENGHANDLERCONTAINER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include    <e32base.h>
       
    25 #include    "CVtEngMediaHandler.h"
       
    26 #include    "CVtEngSessionHandler.h"
       
    27 #include    "CVtEngAudioHandler.h"
       
    28 #include    "CVtEngDtmfHandler.h"
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class MVtEngSessionInfo;
       
    32 class MVtEngMedia;
       
    33 class MVtEngAudio;
       
    34 
       
    35 // CLASS DECLARATION
       
    36 
       
    37 /**
       
    38 *  Container for media, audio and session handlers.
       
    39 *
       
    40 *  @lib videoteleng
       
    41 *  @since Series60 2.6
       
    42 */
       
    43 NONSHARABLE_CLASS( CVtEngHandlerContainer ) : public CBase
       
    44     {
       
    45     public:  // Constructors and destructor
       
    46         
       
    47         /**
       
    48         * Two-phased constructor.
       
    49         */
       
    50         static CVtEngHandlerContainer* NewL(  );
       
    51         
       
    52         /**
       
    53         * Destructor.
       
    54         */
       
    55         virtual ~CVtEngHandlerContainer();
       
    56 
       
    57     public: // New functions
       
    58             
       
    59 
       
    60         /**
       
    61         * Returns session handler.
       
    62         * @return session handler
       
    63         */
       
    64         inline MVtEngSessionInfo& Session() const;
       
    65 
       
    66         /**
       
    67         * Returns media handler.
       
    68         * @return media handler
       
    69         */
       
    70         inline MVtEngMedia& Media() const;
       
    71 
       
    72         /**
       
    73         * Returns audio handler.
       
    74         * @return audio handler
       
    75         */
       
    76         inline MVtEngAudio& Audio() const;
       
    77 
       
    78 
       
    79         /**
       
    80         * Returns DTMF handler.
       
    81         * @return DTMF handler
       
    82         */
       
    83         inline CVtEngDtmfHandler& Dtmf() const;
       
    84 
       
    85         /*
       
    86         * Uninitializes audio and session handlers.
       
    87         * Media handler uninitialization is done
       
    88         * asynchronously using directly the handler.
       
    89         */
       
    90         void Uninitialize();
       
    91 
       
    92         /**
       
    93         * Creates DTMF handler
       
    94         * @param aH324Config H324 configure interface
       
    95         */
       
    96         void CreateDtmfHandlerL( MVtH324ConfigCommand* aH324Config );
       
    97 
       
    98     private:
       
    99 
       
   100         /**
       
   101         * C++ default constructor.
       
   102         */
       
   103         CVtEngHandlerContainer();
       
   104 
       
   105         /**
       
   106         * By default Symbian 2nd phase constructor is private.
       
   107         */
       
   108         void ConstructL();
       
   109 
       
   110     private:    // member data
       
   111 
       
   112         // media handler
       
   113         CVtEngMediaHandler* iMedia;
       
   114 
       
   115         // session handler
       
   116         CVtEngSessionHandler* iSession;
       
   117 
       
   118         // audio handler
       
   119         CVtEngAudioHandler* iAudio;
       
   120 
       
   121 
       
   122         // DTMF handler
       
   123         CVtEngDtmfHandler*   iDtmf;
       
   124 
       
   125     };
       
   126 
       
   127 #include "CVtEngHandlerContainer.inl"
       
   128 
       
   129 #endif      // CVTENGHANDLERCONTAINER_H
       
   130             
       
   131 // End of File