vtuis/videotelui/inc/features/cvtuifeaturebase.h
branchRCL_3
changeset 25 779871d1e4f4
parent 0 ed9695c8bcbe
equal deleted inserted replaced
24:f15ac8e65a02 25:779871d1e4f4
       
     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:  CVtUiFeatureBase implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_VTUIFEATUREBASE_H
       
    20 #define C_VTUIFEATUREBASE_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "mvtuifeature.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 class CVtUiAppUi;
       
    28 class CVtUiFeatureManager;
       
    29 
       
    30 /**
       
    31 *   Base class for Video Telephone application features.
       
    32 *
       
    33 *  @since S60 3.2
       
    34 */
       
    35 class CVtUiFeatureBase : public CBase, public MVtUiFeature
       
    36     {
       
    37     public: // public methods
       
    38         /**
       
    39         * C++ destructor.
       
    40         */
       
    41         ~CVtUiFeatureBase();
       
    42  
       
    43     public: // from MVtUiFeature
       
    44 
       
    45         /** @see MVtUiFeature */
       
    46         virtual void StartL();
       
    47 
       
    48         /** @see MVtUiFeature */
       
    49         virtual void Stop() = 0;
       
    50         
       
    51         /** @see MVtUiFeature */
       
    52         virtual void InitFeatureL() = 0;
       
    53         
       
    54         /** @see MVtUiFeature */
       
    55         TVtUiFeatureState State() const;
       
    56         
       
    57         /** @see MVtUiFeature */
       
    58         TVtUiFeatureId Id() const;
       
    59 
       
    60     protected:
       
    61         /**
       
    62         * C++ constructor
       
    63         *
       
    64         */
       
    65         CVtUiFeatureBase( TVtUiFeatureId aId,
       
    66             CVtUiFeatureManager& aFeatureManager );
       
    67 
       
    68         /**
       
    69         * BaseConstructL
       
    70         * For child class to use.
       
    71         * Calls constructL. 
       
    72         */
       
    73         void BaseConstructL();
       
    74 
       
    75         /**
       
    76         * Callback function that inits the features.
       
    77         * @param aAny pointer to an instance of the class.
       
    78         * @return always KErrNone.
       
    79         */
       
    80         static TInt DoInitFeaturesL( TAny* aAny );
       
    81     
       
    82 
       
    83     protected: // data
       
    84         
       
    85         // Feature's unique Id
       
    86         const TVtUiFeatureId iId;
       
    87         
       
    88         // Reference to featuremanager
       
    89         CVtUiFeatureManager& iFeatureManager;
       
    90                 
       
    91         // Features current state
       
    92         MVtUiFeature::TVtUiFeatureState iFeatureState;
       
    93     
       
    94         // Owned asynch callback.
       
    95         CAsyncCallBack* iAsyncCallback;
       
    96         
       
    97     };
       
    98 
       
    99 #endif // C_VTUIFEATUREBASE_H