securitydialogs/lockapp/src/lockappstatecontrol.cpp
changeset 15 318c4eab2439
parent 0 164170e6151a
child 19 098e361762d2
equal deleted inserted replaced
14:b75757c81051 15:318c4eab2439
    31 #include "lockappecsdetector.h"
    31 #include "lockappecsdetector.h"
    32 #include "lockapputils.h"
    32 #include "lockapputils.h"
    33 #include <featmgr.h>
    33 #include <featmgr.h>
    34 
    34 
    35 #include <settingsinternalcrkeys.h>
    35 #include <settingsinternalcrkeys.h>
    36 #include <ScreensaverInternalPSKeys.h>
    36 // #include <ScreensaverInternalPSKeys.h>
    37 #include <ctsydomainpskeys.h>
    37 #include <ctsydomainpskeys.h>
    38 #include <activeidle2domainpskeys.h>
    38 #include <activeidle2domainpskeys.h>
    39 
    39 
    40 #include "GlobalWindowPriorities.h"
    40 #include "GlobalWindowPriorities.h"
    41 
    41 
   192     // Lock state publisher
   192     // Lock state publisher
   193     CLockAppStatePublisher* lockPublisher = CLockAppStatePublisher::NewL( );
   193     CLockAppStatePublisher* lockPublisher = CLockAppStatePublisher::NewL( );
   194     AddObserverL( lockPublisher ); // ownership is transfered
   194     AddObserverL( lockPublisher ); // ownership is transfered
   195 
   195 
   196     // PubSub observers
   196     // PubSub observers
       
   197 		/* This is not used any more because screensavers are removed now
   197     iPSScreenSaverObserver = CLockAppPubSubObserver::NewL( this, KPSUidScreenSaver, KScreenSaverOn );
   198     iPSScreenSaverObserver = CLockAppPubSubObserver::NewL( this, KPSUidScreenSaver, KScreenSaverOn );
       
   199     */
   198     iPSTelephonyObserver = CLockAppPubSubObserver::NewL( this, KPSUidCtsyCallInformation, KCTsyCallState );
   200     iPSTelephonyObserver = CLockAppPubSubObserver::NewL( this, KPSUidCtsyCallInformation, KCTsyCallState );
   199     iPSGripObserver = CLockAppPubSubObserver::NewL( this, KPSUidHWRM, KHWRMGripStatus );
   201     iPSGripObserver = CLockAppPubSubObserver::NewL( this, KPSUidHWRM, KHWRMGripStatus );
   200 
   202 
   201     iPSFPSObserver = CLockAppPubSubObserver::NewL( this, KUidFpsCategory, KFpsAuthenticationKey );
   203     iPSFPSObserver = CLockAppPubSubObserver::NewL( this, KUidFpsCategory, KFpsAuthenticationKey );
   202 
   204 
   495 // Handle all Publish & Subscribe observer callbacks.
   497 // Handle all Publish & Subscribe observer callbacks.
   496 // ---------------------------------------------------------------------------
   498 // ---------------------------------------------------------------------------
   497 void CLockAppStateControl::HandlePubSubNotify(TUid aPubSubUid, TUint aKeyId, TInt aValue )
   499 void CLockAppStateControl::HandlePubSubNotify(TUid aPubSubUid, TUint aKeyId, TInt aValue )
   498     {
   500     {
   499     INFO_3( "CLockAppStateControl::HandlePubSubNotify %x %x = %d", aPubSubUid.iUid, aKeyId, aValue );
   501     INFO_3( "CLockAppStateControl::HandlePubSubNotify %x %x = %d", aPubSubUid.iUid, aKeyId, aValue );
       
   502 		/* This is not used any more because screensavers are removed now
   500     INFO_3( "CLockAppStateControl::HandlePubSubNotify KPSUidScreenSaver=%x KPSUidCtsyCallInformation=%x KPSUidAiInformation=%x", KPSUidScreenSaver, KPSUidCtsyCallInformation, KPSUidAiInformation );
   503     INFO_3( "CLockAppStateControl::HandlePubSubNotify KPSUidScreenSaver=%x KPSUidCtsyCallInformation=%x KPSUidAiInformation=%x", KPSUidScreenSaver, KPSUidCtsyCallInformation, KPSUidAiInformation );
   501     INFO_3( "CLockAppStateControl::HandlePubSubNotify KPSUidHWRM=%x KHWRMGripStatus=%x KPSUidAiInformation=%x", KPSUidHWRM, KHWRMGripStatus, KPSUidAiInformation );
   504     INFO_3( "CLockAppStateControl::HandlePubSubNotify KPSUidHWRM=%x KHWRMGripStatus=%x KPSUidAiInformation=%x", KPSUidHWRM, KHWRMGripStatus, KPSUidAiInformation );
   502     if ( aPubSubUid == KPSUidScreenSaver )
   505     if ( aPubSubUid == KPSUidScreenSaver )
   503         {
   506         {
   504         switch ( aKeyId )
   507         switch ( aKeyId )
   568                 break;
   571                 break;
   569             default:
   572             default:
   570                 break;
   573                 break;
   571             }
   574             }
   572         }
   575         }
       
   576     */
   573     }
   577     }
   574 
   578 
   575 // ---------------------------------------------------------------------------
   579 // ---------------------------------------------------------------------------
   576 // All keyevents should go trough here.
   580 // All keyevents should go trough here.
   577 // ---------------------------------------------------------------------------
   581 // ---------------------------------------------------------------------------