uiservicetab/vimpstdetailsviewplugin/inc/cvimpstdetailsviewpluginfactory.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:33:36 +0100
branchRCL_3
changeset 29 9a48e301e94b
parent 0 5e5d6b214f4f
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  View plugin base class of ECE's CCA-application
 *
*/
#ifndef CVIMPSTDETAILSVIEWPLUGINFACTORY_H_
#define CVIMPSTDETAILSVIEWPLUGINFACTORY_H_

#include <e32base.h>
#include <mccapluginfactory.h>

/**
 *  Class implementing MCcaPluginFactory interface.
 */

// High codescanner warning ignored. do not derive this class from CBase
// deriving this class from CBase will cause a crash. to be analysed
class CVIMPSTDetailsViewPluginFactory:  public MCcaPluginFactory,
                                        public CBase
                                        
        {
public:

    /**
     * Create interface
     */
    //static MCcaPluginFactory* NewL();
    static CVIMPSTDetailsViewPluginFactory* NewL();

    /**
     * From MCcaPluginFactory
     */
    TInt TabViewCount();

    /**
     * From MCcaPluginFactory
     */
    CCCAppViewPluginBase* CreateTabViewL( TInt aIndex );
    
    /*
		* destructor
		*/	
    ~CVIMPSTDetailsViewPluginFactory();  
 

private:

    /*
     * constructor
     */
    CVIMPSTDetailsViewPluginFactory();
    

    /*
     * 2- Phase constructor
     */
    void ConstructL();

    /**
     * Helper function for reading the service id from sttings
     * @since S60 v5.0
     */
    TInt ReadServiceIdL();

private:
    /**
     * Owns : service id to use
     */
    RArray< TInt32 > iServiceIds;
    TInt iServiceId;
        };
  


#endif /* CVIMPSTDETAILSVIEWPLUGINFACTORY_H_ */