diff -r 000000000000 -r 4e1aa6a622a0 sysstatemgmt/systemstatemgr/ssm/inc/clesessionproxy.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysstatemgmt/systemstatemgr/ssm/inc/clesessionproxy.h Tue Feb 02 00:53:00 2010 +0200 @@ -0,0 +1,62 @@ +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __CLESESSIONPROXY_H__ +#define __CLESESSIONPROXY_H__ + +#include +#include "clecli.h" +#include "ssmserverpanic.h" +#include + +class TRequestStatus; +class CSsmCommandList; + +class MCleSessionProxy + { +public: + virtual void ExecuteCommandList(const CSsmCommandList& aCmdList, TRequestStatus& aStatus, TCmdErrorSeverity& aSeverity) = 0; + virtual void ExecuteCommandListCancel() = 0; + virtual void ConnectL() = 0; + virtual void ReleaseCle() = 0; + virtual void Close() = 0; + virtual TBool IsConnected() = 0; + virtual MCleSessionProxy* CreateNewProxyL() = 0; + }; + +class CCleSessionProxy : public CBase, public MCleSessionProxy + { +public: + static CCleSessionProxy* NewL(); + + //from MCleSessionProxy + void ExecuteCommandList(const CSsmCommandList& aCmdList, TRequestStatus& aStatus, TCmdErrorSeverity& aSeverity); + void ExecuteCommandListCancel(); + void ConnectL(); + void ReleaseCle(); + void Close(); + TBool IsConnected(); + MCleSessionProxy* CreateNewProxyL(); + +private: + inline CCleSessionProxy() {} + ~CCleSessionProxy(); + +private: + RCleSession iCleSession; + TBool iConnected; + }; + +#endif