tsrc/testtools/stubsrv/inc/stubsrvsession.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 10:54:11 +0300
branchRCL_3
changeset 22 5b2a402e96ac
permissions -rw-r--r--
Revision: 201031 Kit: 201033

/*
* 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