vtengines/videoteleng/CallCtrl/Inc/CVtCtlFactory.h
changeset 0 ed9695c8bcbe
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     1 /*
       
     2 * Copyright (c) 2004 - 2007 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:  Factory for creating call control
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CVTCTLFACTORY_H
       
    21 #define CVTCTLFACTORY_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "VtCtlDefs.h"
       
    26 
       
    27 // CONSTANTS
       
    28 _LIT( KVtCtlLibraryName, "CSCallCtrl" );
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class MVtCtlEventObserver;
       
    32 class MVtCtlCommandObserver;
       
    33 class MVtCtlCallControl;
       
    34 
       
    35 /**
       
    36 * Factory class for instantiating call control.
       
    37 *
       
    38 *  @lib CSCallCtrl
       
    39 *  @since 2.6
       
    40 */
       
    41 NONSHARABLE_CLASS( CVtCtlFactory ) : public CBase
       
    42     {
       
    43     public:
       
    44 
       
    45         /**
       
    46         * Instantiates call control
       
    47         * @param aEventObserver
       
    48         * @param aCommandObserver
       
    49         * @return call control
       
    50         */
       
    51         virtual MVtCtlCallControl* CreateCallControlL(
       
    52             MVtCtlEventObserver& aEventObserver );
       
    53 
       
    54         /**
       
    55         * Destructs call control created with CreateCallControlL.
       
    56         * @param aCallControl pointer to call control instance
       
    57         */
       
    58         virtual void Delete( MVtCtlCallControl* aCallControl );
       
    59     };
       
    60 
       
    61 /**
       
    62 * Creates call control factory
       
    63 * @return factory
       
    64 */
       
    65 IMPORT_C CVtCtlFactory* CreateVtCtlFactory();
       
    66 
       
    67 #endif      // CVTCTLFACTORY_H
       
    68             
       
    69 // End of File