sysstatemgmt/systemstateplugins/adptplugin/inc/simadaptationref.h
branchRCL_3
changeset 21 ccb4f6b3db21
parent 0 4e1aa6a622a0
child 22 8cb079868133
equal deleted inserted replaced
20:1ddbe54d0645 21:ccb4f6b3db21
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-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".
    25   *********Need for the class*********
    25   *********Need for the class*********
    26   
    26   
    27   On a device when NotifySimEvent is called, Sim Adaptation Plug-in would request for notification 
    27   On a device when NotifySimEvent is called, Sim Adaptation Plug-in would request for notification 
    28   from the Cooperating System for 'aEvent'.
    28   from the Cooperating System for 'aEvent'.
    29   
    29   
    30   On HRP/Techview,the reference implementation has to complete the notification request with KErrNotSupported
    30   The reference implementation has to complete the notification request with KErrNotSupported.
    31   since there is no Cooperating System on HRP/Techview.
       
    32   
    31   
    33   But this implementation will cause problems in the following scenario.
    32   But this implementation will cause problems in the following scenario.
    34   
    33   
    35   *********Problem*********
    34   *********Problem*********
    36   
    35   
    43   by calling NotifySimEvent .
    42   by calling NotifySimEvent .
    44   
    43   
    45   In this context if NotifySimEvent just completes the message immediately this results in a infinite 
    44   In this context if NotifySimEvent just completes the message immediately this results in a infinite 
    46   loop and starves other active objects with same priority.
    45   loop and starves other active objects with same priority.
    47   
    46   
    48   This makes testing of Adaptation servers notification functionality impossible on HRP/Techview.
    47   This makes testing of Adaptation servers notification functionality impossible on PlatSim/device.
    49   
    48   
    50   *********Solution*********
    49   *********Solution*********
    51 
    50 
    52   To solve this problem NotifySimEvent will forward the notification request from adaptation server 
    51   To solve this problem NotifySimEvent will forward the notification request from adaptation server 
    53   to the test active object(CSimAdaptationRefEventHandler) which has lesser priority compared to 
    52   to the test active object(CSimAdaptationRefEventHandler) which has lesser priority compared to 
    95 	void NotifyCancel();
    94 	void NotifyCancel();
    96 
    95 
    97 private:
    96 private:
    98 	CSimAdaptationRef();
    97 	CSimAdaptationRef();
    99 	void ConstructL();
    98 	void ConstructL();
       
    99 	//Helper function to check for P&S Key
       
   100     TBool IsTestPsKeyDefined();
       
   101 	
   100 private:
   102 private:
   101 	CSimRefAdaptationTimer* iTimer;
   103 	CSimRefAdaptationTimer* iTimer;
       
   104 	MSimAdaptation* iSaaSimAdaptationDll;
       
   105 	RLibrary iSaaSimAdaptationLib;
   102 	};
   106 	};
   103 
   107 
   104 
   108 
   105 
   109 
   106 
   110