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