securitydialogs/Securitynotifier/Src/Securitynotifierwrapper.cpp
branchRCL_3
changeset 49 09b1ac925e3f
parent 0 164170e6151a
child 50 03674e5abf46
equal deleted inserted replaced
47:63339781d179 49:09b1ac925e3f
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 
    19 
    20 #include <ecom/implementationproxy.h>
    20 #include <ecom/implementationproxy.h>
    21 
    21 #include <e32notif.h>
       
    22 #include <e32base.h>
       
    23 #include <eiknotapi.h>
    22 #include <AknNotifierWrapper.h> // link against aknnotifierwrapper.lib
    24 #include <AknNotifierWrapper.h> // link against aknnotifierwrapper.lib
    23 
    25 
    24 #define KMyNotifierUid TUid::Uid(0x10005988) //  uid
    26 #define KMyNotifierUid TUid::Uid(0x10005988) //  uid
    25 #define KMyPriority TInt(MEikSrvNotifierBase2::ENotifierPriorityHigh)
    27 #define KMyPriority TInt(MEikSrvNotifierBase2::ENotifierPriorityHigh)
    26 #define KMyAppServerUid TUid::Uid(0x102071FB)
    28 #define KMyAppServerUid TUid::Uid(0x102071FB)
    46     CleanupStack::PushL(TCleanupItem(CleanupArray, subjects));
    48     CleanupStack::PushL(TCleanupItem(CleanupArray, subjects));
    47 
    49 
    48     // Create Wrappers
    50     // Create Wrappers
    49 
    51 
    50     // Session owning notifier(if default implementation is enough)
    52     // Session owning notifier(if default implementation is enough)
       
    53     RDebug::Printf( "%s %s (%u) !!!!**  creating SecurityNotifier.dll . This means that PIN/unlock queries will work **!!!! 0=%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, 0 );
       
    54 
       
    55     
    51     CAknCommonNotifierWrapper* master = 
    56     CAknCommonNotifierWrapper* master = 
    52         CAknCommonNotifierWrapper::NewL( KMyNotifierUid,
    57         CAknCommonNotifierWrapper::NewL( KMyNotifierUid,
    53                                    KMyNotifierUid,
    58                                    KMyNotifierUid,
    54                                    KMyPriority,
    59                                    KMyPriority,
    55                                    _L("SecurityNotifier.dll"),
    60                                    _L("SecurityNotifier.dll"),
    56                                    1, // we don't use synch reply
    61                                    1, // we don't use synch reply
    57                                    ETrue); // preload library once app server is up and running 
    62                                    ETrue); // preload library once app server is up and running 
    58 	  	
    63 	  	
    59 	   
    64 	   
    60     subjects->AppendL( master );
    65     subjects->AppendL( master );
       
    66     
    61     CleanupStack::Pop();	// array cleanup
    67     CleanupStack::Pop();	// array cleanup
    62     #if defined(_DEBUG)
    68     #if defined(_DEBUG)
    63     RDebug::Print(_L("(SECURITYNOTIFIER)WRAPPER DoCreateNotifierArrayL END"));
    69     RDebug::Print(_L("(SECURITYNOTIFIER)WRAPPER DoCreateNotifierArrayL END"));
    64 	#endif
    70 	#endif
    65     
    71