os/persistentdata/featuremgmt/featuremgr/test/helper/test_plugins/inc/baseplugin.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2002-2009 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:
    15 *
    16 */
    17 
    18 
    19 
    20 #ifndef __FEATMGRBASEPLUGIN_H_
    21 #define __FEATMGRBASEPLUGIN_H_
    22 
    23 #include <featmgr/featureinfoplugin.h>
    24 #include "plugintimer.h"
    25 
    26 
    27 class CFeatMgrBasePlugin : public CFeatureInfoPlugin,
    28                        public MPluginTimerCallback
    29     {
    30     public:
    31     		
    32         virtual ~CFeatMgrBasePlugin ();
    33 
    34         /**
    35         * Method to invoke a particular command in the plugin
    36         * @param aCommandId Command ID
    37         * @param aTransId   Transaction ID
    38         * @param aData      Data associated with command
    39         */
    40         virtual void ProcessCommandL( const FeatureInfoCommand::TFeatureInfoCmd aCommandId,
    41                                       const TUint8 aTransId,
    42                                       TDesC8& aData );
    43         
    44         // From MPluginTimerCallback
    45         virtual void GenericTimerFiredL( MFeatureInfoPluginCallback& aService,
    46                                 const FeatureInfoCommand::TFeatureInfoCmd aCommandId,
    47                                 const TUint8 aTransId,
    48                                 TInt aRetVal );
    49         
    50                                 
    51                                 
    52     protected: // Construction
    53 
    54         CFeatMgrBasePlugin();
    55         void ConstructL();
    56         
    57        CPluginTimer* iTimer;
    58  
    59     };
    60 
    61 #endif // __FEATMGRBASEPLUGIN_H_