os/persistentdata/featuremgmt/featuremgr/test/helper/test_plugins/src/baseplugin.cpp
Update contrib.
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 #include "baseplugin.h"
19 #include <featmgr/featureinfoplugin.h>
20 #include "featmgrdebug.h"
21 #include "efm_test_consts.h"
22 #include "plugintimer.h"
25 CFeatMgrBasePlugin::CFeatMgrBasePlugin()
29 CFeatMgrBasePlugin::~CFeatMgrBasePlugin()
38 void CFeatMgrBasePlugin::ConstructL()
42 void CFeatMgrBasePlugin::ProcessCommandL( const FeatureInfoCommand::TFeatureInfoCmd aCommandId,
43 const TUint8 aTransId,
46 INFO_LOG2( "FeatMgrPlugin: Processing command: 0x%x, TransId: 0x%x",
47 aCommandId, aTransId );
51 case FeatureInfoCommand::ELoadFeatureInfoCmdId:
53 INFO_LOG( "FeatMgrPlugin: Processed ELoadFeatureInfoCmdId" );
57 case FeatureInfoCommand::ELoadEnhancedFeatureInfoCmdId:
62 INFO_LOG1( "FeatMgrPlugin: Unknown Command: 0x%x", aCommandId );
63 User::Leave(KErrNotSupported);
68 TInt retval(KErrNone);
69 TInt timeout( 50 ); // microseconds
74 if ( iTimer && !iTimer->IsActive() )
80 iTimer = CPluginTimer::NewL(timeout, *iResponseCallback, aCommandId, aTransId, retval,this);
84 void CFeatMgrBasePlugin::GenericTimerFiredL(
85 MFeatureInfoPluginCallback& /*aService*/,
86 FeatureInfoCommand::TFeatureInfoCmd /*aCommandId*/,
90 if ( iTimer && !iTimer->IsActive() )
94 INFO_LOG( "FeatMgr Plugin: GenericTimerFiredL - Removed obsolete timer" );