dbgagents/trkagent/toolsstarter/toolsstarterserver/inc/toolssrvsession.h
changeset 0 c6b0df440bee
equal deleted inserted replaced
-1:000000000000 0:c6b0df440bee
       
     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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __toolssrvsession_h__
       
    19 #define __toolssrvsession_h__
       
    20 
       
    21 // System includes
       
    22 #include <e32base.h>
       
    23 #include "sessionmessgelistener.h"
       
    24 #include "launchmanagerinterface.h"
       
    25 
       
    26 //
       
    27 // CToolsSrvSession (header)
       
    28 //
       
    29 // This class acts as a simple wrapper around the IPC client-server framework,
       
    30 // and drives a real underlying engine, which is actually responsible for
       
    31 // fulfulling all the client requests.
       
    32 
       
    33  
       
    34 class CToolsSrvSession : public CSession2 ,public MConnStateListener
       
    35 {
       
    36 	public:
       
    37 		static 	CToolsSrvSession* NewL();
       
    38 				~CToolsSrvSession();
       
    39 
       
    40 	private:
       
    41 				CToolsSrvSession();
       
    42 		void 	ConstructL();
       
    43 
       
    44 	public:
       
    45 		void 	HandleServerDestruction();
       
    46 		void    CreateL();
       
    47 
       
    48 	private:
       
    49 
       
    50 
       
    51 
       
    52 	private:
       
    53 	//FROM CSession2
       
    54 		void 	ServiceL(const RMessage2& aMessage);
       
    55 
       
    56 	private:
       
    57 	// CMD - ToolsSERVER SPECIFIC FUNCTIONALITY
       
    58 		
       
    59 		void   CmdGetUsbConnStatus(const RMessage2& aMessage);
       
    60 		void   CmdConnNofify(const RMessage2& aMessage);
       
    61 		void   CmdConnNotifyCancel(const RMessage2& aMessage);
       
    62 		void   CmdShutDownServer();
       
    63 
       
    64 
       
    65 private:
       
    66 	/*
       
    67 	 * Used to transfer collections of objects between server and client.
       
    68 	 */
       
    69 	CBufBase*	 iTransferBuffer;
       
    70 	RMessagePtr2 iBlockedRead;
       
    71 	TBool     iPendingRead;
       
    72 	ILaunchManagerInterface* iLaunchManager;
       
    73 	
       
    74 	public:
       
    75 	    
       
    76 	void ConnStatusChanged(TConnectionStatus );
       
    77 	
       
    78 };
       
    79 
       
    80 #endif