tsrc/testtools/stubsrv/inc/stubsrvsession.h
branchRCL_3
changeset 92 dde4619868dc
parent 86 703a2b94c06c
child 95 55a3258355ea
equal deleted inserted replaced
86:703a2b94c06c 92:dde4619868dc
     1 /*
       
     2 * Copyright (c) 2010 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 #ifndef SESSION_H
       
    19 #define SESSION_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <apibehavior.h>
       
    23 
       
    24 class CStubSrv;
       
    25 class CApiExecutor;
       
    26 
       
    27 /**
       
    28 *  CStubSrvSess class represent session on server side
       
    29 *
       
    30 */
       
    31 NONSHARABLE_CLASS(CStubSrvSess) : public CSession2
       
    32     {
       
    33 public:
       
    34 
       
    35     static CStubSrvSess* NewL(CStubSrv& aServer);
       
    36 
       
    37     ~CStubSrvSess();
       
    38 
       
    39     void InvokeApiComplete();
       
    40 
       
    41     TInt ConsumeApiBehavior(const TApiBehavior& aBeh, TInt aExeDuration);
       
    42     
       
    43 private:
       
    44 
       
    45     void ServiceL(const RMessage2& aMessage);
       
    46 
       
    47     void DispatchMessageL(const RMessage2& aMessage);
       
    48 
       
    49 
       
    50 private:
       
    51 
       
    52     CStubSrvSess(CStubSrv& aServer);
       
    53 
       
    54     void ConstructL();
       
    55 
       
    56 private:
       
    57     CStubSrv& iServer;
       
    58     
       
    59     CApiExecutor* iExecutor;       
       
    60     };
       
    61 
       
    62 #endif      // SESSION_H
       
    63 
       
    64 // End of File