eventsui/eventshandlerui/eventshandlerserver/inc/evthandlerserversession.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2008 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:  Session class for Events Handler Server
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_EVTHANDLERSERVERSESSION_H
       
    20 #define C_EVTHANDLERSERVERSESSION_H
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 #include "evthandlerserver.h"
       
    25 
       
    26 /**
       
    27  * Events Handler Server Session class. This class extents the CSession2
       
    28  * class for Events Handler Server.
       
    29  *
       
    30  * @lib evthandlerserver.exe
       
    31  * @since S60 v9.1
       
    32  */
       
    33 class CEvtHandlerServerSession : public CSession2
       
    34 	{
       
    35 public:
       
    36 	CEvtHandlerServerSession();
       
    37 	void ResolveMessageL( const RMessage2& aMessage );
       
    38 	void CreateL();
       
    39 
       
    40 private:
       
    41 	~CEvtHandlerServerSession();
       
    42 	inline CEvtHandlerServer& Server();
       
    43 	void ServiceL( const RMessage2& aMessage );
       
    44 	void ServiceError( const RMessage2& aMessage, TInt aError );
       
    45 	inline TBool ReceivePending() const;
       
    46 
       
    47 private:
       
    48 	RMessagePtr2 iReceiveMsg;
       
    49 	TInt iReceiveLen;
       
    50 	};
       
    51 
       
    52 #include "evthandlerserversession.inl"
       
    53 
       
    54 #endif  // C_EVTHANDLERSERVERSESSION_H
       
    55 
       
    56 // End of File