dcmofw/dcmoserver/inc/dcmosession.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     1 /*
       
     2 * Copyright (c) 2009 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:  DCMO Session
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __DCMO_SESSION_H__
       
    19 #define __DCMO_SESSION_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>
       
    23 #include "dcmoserver.h"
       
    24 #include "dcmoclientserver.h"
       
    25 
       
    26 class CDCMOServer;
       
    27 
       
    28 /**
       
    29 *  CDCMOSession 
       
    30 *  Description.
       
    31 */
       
    32 
       
    33 class CDCMOSession : public CSession2
       
    34 	{
       
    35 
       
    36 public:
       
    37 	/**
       
    38 	 * Createss CDCMOSession
       
    39 	 * Default Constructor
       
    40 	 */
       
    41 	CDCMOSession();
       
    42 
       
    43 private:
       
    44 	/**
       
    45 	 * Destructor
       
    46 	 */
       
    47 	~CDCMOSession();
       
    48 	
       
    49 	/**
       
    50 	 * Provides DCMO Server reference
       
    51 	 * @param None
       
    52 	 * @return CDCMOServer reference
       
    53 	 */
       
    54 	CDCMOServer& Server();
       
    55 	
       
    56 	/**
       
    57 	 * Called by the framework to handle the request 	 
       
    58 	 * @param aMessage
       
    59 	 * @return None
       
    60 	 */
       
    61 	void ServiceL           ( const RMessage2& aMessage );
       
    62 	
       
    63 	/**
       
    64 	 * Called from ServiceL to handle the request 
       
    65 	 * @param aMessage
       
    66 	 * @return None
       
    67 	 */
       
    68 	void DispatchMessageL   ( const RMessage2& aMessage );
       
    69 	
       
    70 	/**
       
    71 	 * Called when ServiceL leaves
       
    72 	 * @param aMessage
       
    73 	 * @param aError
       
    74 	 * @return None
       
    75 	 */
       
    76 	void ServiceError       ( const RMessage2& aMessage, TInt aError );
       
    77 	
       
    78 	
       
    79 private:	
       
    80 
       
    81 };
       
    82 
       
    83 #endif //__DCMO_SESSION_H__