tsrc/testtools/stubsrv/inc/stubsrvsession.h
branchRCL_3
changeset 22 5b2a402e96ac
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tsrc/testtools/stubsrv/inc/stubsrvsession.h	Thu Aug 19 10:54:11 2010 +0300
@@ -0,0 +1,64 @@
+/*
+* Copyright (c) 2010 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:
+*
+*/
+
+#ifndef SESSION_H
+#define SESSION_H
+
+#include <e32base.h>
+#include <apibehavior.h>
+
+class CStubSrv;
+class CApiExecutor;
+
+/**
+*  CStubSrvSess class represent session on server side
+*
+*/
+NONSHARABLE_CLASS(CStubSrvSess) : public CSession2
+    {
+public:
+
+    static CStubSrvSess* NewL(CStubSrv& aServer);
+
+    ~CStubSrvSess();
+
+    void InvokeApiComplete();
+
+    TInt ConsumeApiBehavior(const TApiBehavior& aBeh, TInt aExeDuration);
+    
+private:
+
+    void ServiceL(const RMessage2& aMessage);
+
+    void DispatchMessageL(const RMessage2& aMessage);
+
+
+private:
+
+    CStubSrvSess(CStubSrv& aServer);
+
+    void ConstructL();
+
+private:
+    CStubSrv& iServer;
+    
+    CApiExecutor* iExecutor;       
+    };
+
+#endif      // SESSION_H
+
+// End of File