os/persistentdata/featuremgmt/featuremgr/test/helper/test_plugins/inc/plugintimer.h
Update contrib.
2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
21 #ifndef __PLUGINTIMER_H_
22 #define __PLUGINTIMER_H_
24 #include <featmgr/featureinfoplugin.h>
27 * An interface for handling timer expiration events.
29 class MPluginTimerCallback
33 * Called when the timer fires
35 virtual void GenericTimerFiredL( MFeatureInfoPluginCallback& aService,
36 FeatureInfoCommand::TFeatureInfoCmd aCommandId,
42 class CPluginTimer : public CTimer
45 CPluginTimer( TInt aPriority,
46 MFeatureInfoPluginCallback& aService,
47 FeatureInfoCommand::TFeatureInfoCmd aCommandId,
50 MPluginTimerCallback* aCallback );
54 CPluginTimer(TInt aPriority);
56 static CPluginTimer* NewL( const TTimeIntervalMicroSeconds32& anInterval,
57 MFeatureInfoPluginCallback& aService,
58 FeatureInfoCommand::TFeatureInfoCmd aCommandId,
61 MPluginTimerCallback* aCallback );
67 inline TUint8 TransId() const
74 MFeatureInfoPluginCallback& iService; // Not owned
76 FeatureInfoCommand::TFeatureInfoCmd iCommandId;
80 MPluginTimerCallback* iCallback; // Not owned
85 #endif // __PLUGINTIMER_H_