Update contrib.
2 * Copyright (c) 2005-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.
19 #if (!defined __ACTIVE_CALLBACK_BASE__)
20 #define __ACTIVE_CALLBACK_BASE__
23 #include "DataWrapperBase.h"
25 class CActiveCallbackBase : public CActiveCallback
28 class CActiveCallbackTimer : public CTimer
31 static CActiveCallbackTimer* NewL(CActive& aActive, TInt aPriority=EPriorityStandard);
33 // CActive implementation
37 CActiveCallbackTimer(CActive& aActive, TInt aPriority);
44 virtual ~CActiveCallbackBase();
45 static CActiveCallbackBase* NewL(CDataWrapperBase& aDataWrapperBase, TInt aPriority=EPriorityStandard);
46 static CActiveCallbackBase* NewLC(CDataWrapperBase& aDataWrapperBase, TInt aPriority=EPriorityStandard);
48 void Activate(TInt aIndex, TInt aTimeout=0);
52 CActiveCallbackBase(CDataWrapperBase& aDataWrapperBase, TInt aPriority);
56 CDataWrapperBase& iDataWrapperBase;
59 CActiveCallbackTimer* iTimer;
62 #endif /* __ACTIVE_CALLBACK_BASE__ */