equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file Server.h |
|
22 */ |
|
23 |
|
24 #if (!defined __TESTEXECUTE_PIPS_LOG_SERVER_H__) |
|
25 #define __TESTEXECUTE_PIPS_LOG_SERVER_H__ |
|
26 #include <e32base.h> |
|
27 #include <f32file.h> |
|
28 #include <testexecutepipslog.h> |
|
29 |
|
30 class CLogSession ; |
|
31 class CLogServer : public CServer2 |
|
32 { |
|
33 public: |
|
34 static CLogServer* NewL(); |
|
35 ~CLogServer(); |
|
36 void ControlComplete(CLogSession& aControl); |
|
37 |
|
38 inline RPointerArray<CLogSession>& LogControl(); |
|
39 |
|
40 CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const; |
|
41 void SessionClosed(); |
|
42 private: |
|
43 CLogServer(); |
|
44 void ConstructL(); |
|
45 private: |
|
46 RPointerArray<CLogSession> iControl; |
|
47 }; |
|
48 |
|
49 class CLogSession : public CSession2 |
|
50 { |
|
51 public: |
|
52 inline const CLogServer& LogServer() const; |
|
53 CLogSession(); |
|
54 ~CLogSession(); |
|
55 |
|
56 void ServiceL(const RMessage2& aMessage); |
|
57 |
|
58 inline void AddSession(); |
|
59 inline void RemoveSession(); |
|
60 inline TInt SessionCount() const; |
|
61 |
|
62 private: |
|
63 int iFileDes ; |
|
64 TPtr8* iPipeName; |
|
65 TInt iSessionCount; |
|
66 }; |
|
67 |
|
68 #include "Server.inl" |
|
69 |
|
70 #endif |