os/persistentdata/featuremgmt/featuremgr/test/helper/test_plugins/src/plugintimer.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 "plugintimer.h"
19 #include <featmgr/featureinfoplugin.h>
22 CPluginTimer* CPluginTimer::NewL( const TTimeIntervalMicroSeconds32& anInterval,
23 MFeatureInfoPluginCallback& aService,
24 FeatureInfoCommand::TFeatureInfoCmd aCommandId,
27 MPluginTimerCallback* aCallback )
29 CPluginTimer* self = new( ELeave ) CPluginTimer(0, aService, aCommandId,
30 aTransId, aRetVal, aCallback);
32 CleanupStack::PushL( self );
34 CleanupStack::Pop( self );
36 CActiveScheduler::Add(self);
38 self->After(anInterval);
43 CPluginTimer::~CPluginTimer()
49 CPluginTimer::CPluginTimer( TInt aPriority,
50 MFeatureInfoPluginCallback& aService,
51 FeatureInfoCommand::TFeatureInfoCmd aCommandId,
54 MPluginTimerCallback* aCallback )
57 iCommandId(aCommandId),
64 void CPluginTimer::ConstructL()
70 void CPluginTimer::RunL( )
72 iCallback->GenericTimerFiredL(iService, iCommandId, iTransId, iRetVal );