diff -r 1ddbe54d0645 -r ccb4f6b3db21 sysstatemgmt/systemstateplugins/adptplugin/inc/stateadaptationref.h --- a/sysstatemgmt/systemstateplugins/adptplugin/inc/stateadaptationref.h Thu Aug 19 11:09:10 2010 +0300 +++ b/sysstatemgmt/systemstateplugins/adptplugin/inc/stateadaptationref.h Tue Aug 31 16:29:05 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-2010 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" @@ -27,8 +27,7 @@ On a device when NotifyCoopSysEvent is called, State Adaptation Plug-in would request for notification from the Cooperating System for 'aEvent'. - On HRP/Techview,the reference implementation has to complete the notification request with KErrNotSupported - since there is no Cooperating System on HRP/Techview. + The reference implementation has to complete the notification request with KErrNotSupported. But this implementation will cause problems in the following scenario. @@ -45,7 +44,7 @@ In this context if NotifyCoopSysEvent just completes the message immediately this results in a infinite loop and starves other active objects with same priority. - This makes testing of Adaptation servers notification functionality impossible on HRP/Techview. + This makes testing of Adaptation servers notification functionality impossible on PlatSim/device. *********Solution********* @@ -97,13 +96,17 @@ void NotifyCoopSysEvent(TDes8& aEvent, TRequestStatus& aStatus); void NotifyCancel(); - + private: CStateAdaptationRef(); void ConstructL(); + //Helper function to check for P&S Key + TBool IsTestPsKeyDefined(); private: - CStateRefAdaptationTimer* iTimer; + CStateRefAdaptationTimer* iTimer; + MStateAdaptation* iSaaStateAdaptationDll; + RLibrary iSaaStateAdaptationLib; };