First public contribution.
2 * Copyright (c) 2008-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.
15 * Name : signalclient.h
16 * Part of : Signal server
23 #ifndef SIGNALSESSION_H
24 #define SIGNALSESSION_H
37 class RSignalSession : public RSessionBase
40 RSignalSession():iIsConnected(EFalse)
41 {iLock.CreateLocal();}
43 TInt SendPipe(RPipe& aPipe);
44 TInt SendSignal(TInt aPid,TInt aSignal);
45 TInt SendSignalValue(TInt aPid,TInt aSignal,TInt aValue);
49 RSessionBase::Close();
53 TInt OnDemandConnection();
55 void Lock() { iLock.Wait(); }
57 void UnLock() { iLock.Signal(); }
61 //todo put a lock around this list
64 #endif // SIGNALSESSION_H