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