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.
19 #include "timerutils.h"
20 #include "timerclient.h"
21 #include "timerhandler.h"
23 #include <e32atomics.h>
25 // -------------------------------------------------------------------------------
26 // RTimerSession::Connect
27 // -------------------------------------------------------------------------------
29 TInt RTimerSession::Connect(RServer2 aServer)
31 TInt ret = CreateSession(aServer, TVersion(0, 0, 0), 1,EIpcSession_Sharable);
35 //-------------------------------------------------------------------------------
36 // Function Name : RTimerSession::OnDemandConnect()
37 // Description : To create connection to server on demand
39 //-------------------------------------------------------------------------------
40 TInt RTimerSession::OnDemandConnect(RServer2 aServer)
43 //On Demand connection
49 err = Connect (aServer);
59 //--------------------------------------------------------------------------------
60 //This sends a timer delete request to the server.
61 //--------------------------------------------------------------------------------
63 TInt RTimerSession::DeleteTimer(TInt aTimerId)
65 TInt ret = SendReceive(EDeleteTimer,TIpcArgs(aTimerId));
69 //--------------------------------------------------------------------------------
70 //This sends a set timer request to the timer server.
71 //--------------------------------------------------------------------------------
73 TInt RTimerSession::SetTime(TInt aTimerId)
75 TInt ret = SendReceive(ESetTimer,TIpcArgs(aTimerId));