uiservicetab/vimpstdetailsviewplugin/inc/cvimpstdetailsviewpluginfactory.h
branchRCL_3
changeset 23 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
22:3104fc151679 23:9a48e301e94b
       
     1 /*
       
     2 * Copyright (c) 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:  View plugin base class of ECE's CCA-application
       
    15  *
       
    16 */
       
    17 #ifndef CVIMPSTDETAILSVIEWPLUGINFACTORY_H_
       
    18 #define CVIMPSTDETAILSVIEWPLUGINFACTORY_H_
       
    19 
       
    20 #include <e32base.h>
       
    21 #include <mccapluginfactory.h>
       
    22 
       
    23 /**
       
    24  *  Class implementing MCcaPluginFactory interface.
       
    25  */
       
    26 
       
    27 // High codescanner warning ignored. do not derive this class from CBase
       
    28 // deriving this class from CBase will cause a crash. to be analysed
       
    29 class CVIMPSTDetailsViewPluginFactory:  public MCcaPluginFactory,
       
    30                                         public CBase
       
    31                                         
       
    32         {
       
    33 public:
       
    34 
       
    35     /**
       
    36      * Create interface
       
    37      */
       
    38     //static MCcaPluginFactory* NewL();
       
    39     static CVIMPSTDetailsViewPluginFactory* NewL();
       
    40 
       
    41     /**
       
    42      * From MCcaPluginFactory
       
    43      */
       
    44     TInt TabViewCount();
       
    45 
       
    46     /**
       
    47      * From MCcaPluginFactory
       
    48      */
       
    49     CCCAppViewPluginBase* CreateTabViewL( TInt aIndex );
       
    50     
       
    51     /*
       
    52 		* destructor
       
    53 		*/	
       
    54     ~CVIMPSTDetailsViewPluginFactory();  
       
    55  
       
    56 
       
    57 private:
       
    58 
       
    59     /*
       
    60      * constructor
       
    61      */
       
    62     CVIMPSTDetailsViewPluginFactory();
       
    63     
       
    64 
       
    65     /*
       
    66      * 2- Phase constructor
       
    67      */
       
    68     void ConstructL();
       
    69 
       
    70     /**
       
    71      * Helper function for reading the service id from sttings
       
    72      * @since S60 v5.0
       
    73      */
       
    74     TInt ReadServiceIdL();
       
    75 
       
    76 private:
       
    77     /**
       
    78      * Owns : service id to use
       
    79      */
       
    80     RArray< TInt32 > iServiceIds;
       
    81     TInt iServiceId;
       
    82         };
       
    83   
       
    84 
       
    85 
       
    86 #endif /* CVIMPSTDETAILSVIEWPLUGINFACTORY_H_ */