--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/testexecfw/tef/pipslogger/src/server.h Mon Mar 08 15:03:44 2010 +0800
@@ -0,0 +1,70 @@
+/*
+* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+
+
+
+/**
+ @file Server.h
+*/
+
+#if (!defined __TESTEXECUTE_PIPS_LOG_SERVER_H__)
+#define __TESTEXECUTE_PIPS_LOG_SERVER_H__
+#include <e32base.h>
+#include <f32file.h>
+#include <testexecutepipslog.h>
+
+class CLogSession ;
+class CLogServer : public CServer2
+ {
+public:
+ static CLogServer* NewL();
+ ~CLogServer();
+ void ControlComplete(CLogSession& aControl);
+
+ inline RPointerArray<CLogSession>& LogControl();
+
+ CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const;
+ void SessionClosed();
+private:
+ CLogServer();
+ void ConstructL();
+private:
+ RPointerArray<CLogSession> iControl;
+ };
+
+class CLogSession : public CSession2
+ {
+public:
+ inline const CLogServer& LogServer() const;
+ CLogSession();
+ ~CLogSession();
+
+ void ServiceL(const RMessage2& aMessage);
+
+ inline void AddSession();
+ inline void RemoveSession();
+ inline TInt SessionCount() const;
+
+private:
+ int iFileDes ;
+ TPtr8* iPipeName;
+ TInt iSessionCount;
+ };
+
+#include "Server.inl"
+
+#endif