Update contrib.
2 * Copyright (c) 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.
18 #ifndef __TIMERSERVER_H__
19 #define __TIMERSERVER_H__
22 #include "timerutils.h"
27 EPanicIllegalFunction,
28 EPanicAlreadyReceiving
31 void PanicClient(const RMessagePtr2& aMessage,TMyPanic TMyPanic);
33 NONSHARABLE_CLASS(CShutdown) : public CTimer
36 CShutdown() : CTimer(EPriorityStandard)
43 static const TUint KTimerServerShutdownDelay=3000000;
47 NONSHARABLE_CLASS(CTimerServer) : public CServer2
50 // We want the transfers to be done on a priority. Hence the EPriorityHigh
51 CTimerServer() : CServer2(EPriorityHigh,ESharableSessions)
57 static CTimerServer* NewLC();
59 TInt AddToScheduler();
60 void RemoveFromScheduler();
61 TInt RemoveInternal(const TInt);
62 TInt SetTimer(const TInt);
64 static TInt NewTimerServerL();
68 CActiveScheduler* iOldScheduler;
72 CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
78 NONSHARABLE_CLASS(CTimerServerSession) : public CSession2
83 ~CTimerServerSession();
84 CTimerServer& Server();
85 void ServiceL(const RMessage2& aMessage);
86 void ServiceError(const RMessage2& aMessage, TInt aError);
89 #endif //__TIMERSERVER_H__