sysstatemgmt/systemstatemgr/ssm/inc/clesessionproxy.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CLESESSIONPROXY_H__
       
    17 #define __CLESESSIONPROXY_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include "clecli.h"
       
    21 #include "ssmserverpanic.h"
       
    22 #include <ssm/ssmcmd.hrh>
       
    23 
       
    24 class TRequestStatus;
       
    25 class CSsmCommandList;
       
    26 
       
    27 class MCleSessionProxy
       
    28 	{
       
    29 public:
       
    30 	virtual void ExecuteCommandList(const CSsmCommandList& aCmdList, TRequestStatus& aStatus, TCmdErrorSeverity& aSeverity) = 0;
       
    31 	virtual void ExecuteCommandListCancel() = 0;
       
    32 	virtual void ConnectL() = 0;
       
    33 	virtual void ReleaseCle() = 0;
       
    34 	virtual void Close() = 0;
       
    35 	virtual TBool IsConnected() = 0;
       
    36 	virtual MCleSessionProxy* CreateNewProxyL() = 0;
       
    37 	};
       
    38 
       
    39 class CCleSessionProxy : public CBase, public MCleSessionProxy
       
    40 	{
       
    41 public:
       
    42 	static CCleSessionProxy* NewL();
       
    43 
       
    44 	//from MCleSessionProxy
       
    45 	void ExecuteCommandList(const CSsmCommandList& aCmdList, TRequestStatus& aStatus, TCmdErrorSeverity& aSeverity);
       
    46 	void ExecuteCommandListCancel();
       
    47 	void ConnectL();
       
    48 	void ReleaseCle();
       
    49 	void Close();
       
    50 	TBool IsConnected();
       
    51 	MCleSessionProxy* CreateNewProxyL();
       
    52 	
       
    53 private:
       
    54 	inline CCleSessionProxy() {}
       
    55 	~CCleSessionProxy();
       
    56 
       
    57 private:
       
    58 	RCleSession iCleSession;
       
    59 	TBool iConnected;
       
    60 	};
       
    61 
       
    62 #endif