sysstatemgmt/systemstatemgr/sus/inc/susadaptionserver.h
changeset 0 4e1aa6a622a0
child 3 a811597961f0
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 __SUSADAPTIONSERVER_H__
       
    17 #define __SUSADAPTIONSERVER_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <e32std.h> 
       
    21 #include "ssmadaptation.h"
       
    22 #include "susstateadaptation.h"
       
    23 #include "sussimadaptation.h"
       
    24 #include "susmiscadaptation.h"
       
    25 #include "susemergencycallrfadaptation.h"
       
    26 #include "susrtcadaptation.h"
       
    27 #include "susadaptationpluginloader.h"
       
    28 #include "susadaptionsession.h"
       
    29 
       
    30 class CStateAdaptationRef;
       
    31 
       
    32 /**
       
    33  @internalComponent
       
    34  @released
       
    35  */
       
    36 class CSsmAdaptationServer : public CPolicyServer
       
    37 	{	
       
    38 public:
       
    39 	static CSsmAdaptationServer* NewLC();
       
    40 	~CSsmAdaptationServer();
       
    41 
       
    42 	//State Adaptation services 
       
    43 	void DoRequestCoopSysStateChangeL(const RMessage2& aMessage);
       
    44 	void DoRequestCoopSysSelfTestL(const RMessage2& aMessage);
       
    45 	void DoRequestCoopSysPerformRestartActionsL(const RMessage2& aMessage);
       
    46 	void DoRequestCoopSysPerformShutdownActionsL(const RMessage2& aMessage);
       
    47 	void DoRequestCoopSysPerformRfsActionsL(const RMessage2& aMessage);
       
    48 	void DoRequestCoopSysCancelL(const RMessage2& aMessage);
       
    49 	void DoNotifyCoopSysEventL(const RMessage2& aMessage);
       
    50 	void DoNotifyCoopSysEventCancelL(const RMessage2& aMessage);
       
    51 	void DoGetLastCoopSysEventL(const RMessage2& aMessage);
       
    52 	//SIM Adaptation services
       
    53 	void DoGetSimOwnedL(const RMessage2& aMessage);
       
    54 	void DoGetSimCancelL(const RMessage2& aMessage);
       
    55 	void DoNotifySimEventL(const RMessage2& aMessage);
       
    56 	void DoNotifySimCancelL(const RMessage2& aMessage);
       
    57 	void DoGetLastSimEventL(const RMessage2& aMessage);
       
    58 	// RTC Adaptation services
       
    59 	void DoValidateRtcL(const RMessage2& aMessage);
       
    60 	void DoSetWakeupAlarmL(const RMessage2& aMessage);
       
    61 	void DoUnsetWakeupAlarmL(const RMessage2& aMessage);
       
    62 	void DoRtcCancelL(const RMessage2& aMessage);
       
    63 	//Misc Adaptation services
       
    64 	void DoSecurityStateChangeL(const RMessage2& aMessage);
       
    65 	void DoGetGlobalStartupModeL(const RMessage2& aMessage);
       
    66 	void DoPrepareSimLanguagesL(const RMessage2& aMessage);
       
    67 	void DoMiscAdaptationCancelL(const RMessage2& aMessage);
       
    68 	void DoMiscAdaptationHiddenResetL(const RMessage2& aMessage);
       
    69 	void DoGetSimLanguagesArrayL(const RMessage2& aMessage);
       
    70 
       
    71 	//Emergency call Rf services
       
    72 	void DoActivateRfForEmergencyCallL(const RMessage2& aMessage);
       
    73 	void DoDeactivateRfForEmergencyCallL(const RMessage2& aMessage);
       
    74 	void DoEmergencyCallRfCancelL(const RMessage2& aMessage);
       
    75 	TInt SetAsPriorityClientL(CSsmAdaptationSession* aSession);
       
    76 	void RemovePriorityClient(CSsmAdaptationSession* aSession);
       
    77 #ifdef _DEBUG
       
    78 	void UnloadAdaptationsAndObservers();
       
    79 #endif
       
    80 	
       
    81 #ifdef  TESTSUSADAPTATIONPLUGINLOAD_OOM
       
    82 	friend class CTestSusLoadAdaptationServer;
       
    83 #endif
       
    84 
       
    85 private:
       
    86 //From Policy Server
       
    87 	CPolicyServer::TCustomResult CustomSecurityCheckL(const RMessage2& aMsg, TInt& aAction, TSecurityInfo& aMissing);
       
    88 	CSsmAdaptationServer();
       
    89 	void ConstructL();
       
    90 	//from CServer2
       
    91 	CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
       
    92 	void LoadStateAdaptationL();
       
    93 	void LoadStateAdaptationObserversL();
       
    94 	void LoadSimAdaptationL();
       
    95 	void LoadSimAdaptationObserversL();
       
    96 	void LoadRtcAdaptationL();
       
    97 	void LoadMiscAdaptationL();
       
    98 	void LoadEmergencyCallRfAdaptationL();
       
    99 private:
       
   100 	CStateAdaptationRequests* iStateAdaptation;
       
   101 	CStateAdaptationObservers* iStateAdaptationObservers;
       
   102 	CSimAdaptationRequests* iSimAdaptation;
       
   103 	CSimAdaptationObservers* iSimAdaptationObservers;
       
   104 	CEmergencyCallRfAdaptation* iEmergencyCallRfAdaptation;
       
   105 	CMiscAdaptation* iMiscAdaptation;
       
   106 	CRtcAdaptation* iRtcAdaptation;
       
   107 	CSusAdaptationPluginLoader* iSusAdaptationPluginLoader;
       
   108 	CSsmAdaptationSession* iPriorityClientSession;
       
   109 	};
       
   110 
       
   111 #endif //__SUSADAPTIONSERVER_H__