sysstatemgmt/systemstatemgr/sus/inc/susadaptionserver.h
branchRCL_3
changeset 3 a811597961f0
parent 0 4e1aa6a622a0
equal deleted inserted replaced
0:4e1aa6a622a0 3:a811597961f0
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    35  */
    35  */
    36 class CSsmAdaptationServer : public CPolicyServer
    36 class CSsmAdaptationServer : public CPolicyServer
    37 	{	
    37 	{	
    38 public:
    38 public:
    39 	static CSsmAdaptationServer* NewLC();
    39 	static CSsmAdaptationServer* NewLC();
       
    40 	static CSsmAdaptationServer* NewLC(const TDesC& aServerName);
       
    41 
    40 	~CSsmAdaptationServer();
    42 	~CSsmAdaptationServer();
    41 
    43 
    42 	//State Adaptation services 
    44 	//State Adaptation services 
    43 	void DoRequestCoopSysStateChangeL(const RMessage2& aMessage);
    45 	void DoRequestCoopSysStateChangeL(const RMessage2& aMessage);
    44 	void DoRequestCoopSysSelfTestL(const RMessage2& aMessage);
    46 	void DoRequestCoopSysSelfTestL(const RMessage2& aMessage);
    71 	//Emergency call Rf services
    73 	//Emergency call Rf services
    72 	void DoActivateRfForEmergencyCallL(const RMessage2& aMessage);
    74 	void DoActivateRfForEmergencyCallL(const RMessage2& aMessage);
    73 	void DoDeactivateRfForEmergencyCallL(const RMessage2& aMessage);
    75 	void DoDeactivateRfForEmergencyCallL(const RMessage2& aMessage);
    74 	void DoEmergencyCallRfCancelL(const RMessage2& aMessage);
    76 	void DoEmergencyCallRfCancelL(const RMessage2& aMessage);
    75 	TInt SetAsPriorityClientL(CSsmAdaptationSession* aSession);
    77 	TInt SetAsPriorityClientL(CSsmAdaptationSession* aSession);
    76 	void RemovePriorityClient(CSsmAdaptationSession* aSession);
    78 	void RemovePriorityClient(CSsmAdaptationSession* aSession);	
    77 #ifdef _DEBUG
    79 #ifdef _DEBUG
    78 	void UnloadAdaptationsAndObservers();
    80 	void UnloadAdaptationsAndObservers();
    79 #endif
    81 #endif
    80 	
    82 	
    81 #ifdef  TESTSUSADAPTATIONPLUGINLOAD_OOM
    83 #ifdef  TESTSUSADAPTATIONPLUGINLOAD_OOM
    84 
    86 
    85 private:
    87 private:
    86 //From Policy Server
    88 //From Policy Server
    87 	CPolicyServer::TCustomResult CustomSecurityCheckL(const RMessage2& aMsg, TInt& aAction, TSecurityInfo& aMissing);
    89 	CPolicyServer::TCustomResult CustomSecurityCheckL(const RMessage2& aMsg, TInt& aAction, TSecurityInfo& aMissing);
    88 	CSsmAdaptationServer();
    90 	CSsmAdaptationServer();
    89 	void ConstructL();
    91 	void ConstructL(const TDesC& aServerName);
    90 	//from CServer2
    92 	//from CServer2
    91 	CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
    93 	CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
    92 	void LoadStateAdaptationL();
    94 	void LoadStateAdaptationL();
    93 	void LoadStateAdaptationObserversL();
    95 	void LoadStateAdaptationObserversL();
    94 	void LoadSimAdaptationL();
    96 	void LoadSimAdaptationL();