bluetoothengine/btnotif/src/BTNPBAPPinNotifier.cpp
changeset 26 b78e66e88238
parent 0 f63038272f30
equal deleted inserted replaced
25:9c3798b88e30 26:b78e66e88238
    29 #endif
    29 #endif
    30 
    30 
    31 #include "btnpbappinnotifier.h" // own class definition
    31 #include "btnpbappinnotifier.h" // own class definition
    32 #include "btNotifDebug.h"       // debugging macros
    32 #include "btNotifDebug.h"       // debugging macros
    33 
    33 
    34 #include <SecondaryDisplay/BTnotifSecondaryDisplayAPI.h>
    34 #include <secondarydisplay/BTnotifSecondaryDisplayAPI.h>
    35 
    35 
    36 // ================= MEMBER FUNCTIONS =======================
    36 // ================= MEMBER FUNCTIONS =======================
    37 
    37 
    38 // ----------------------------------------------------------
    38 // ----------------------------------------------------------
    39 // CBTObexPinNotifier::NewL
    39 // CBTObexPinNotifier::NewL
    90 
    90 
    91     if( !iMessage.IsNull())
    91     if( !iMessage.IsNull())
    92         {
    92         {
    93         User::Leave(KErrInUse);
    93         User::Leave(KErrInUse);
    94         }
    94         }
    95     else if ( AutoLockOnL() )
    95     
       
    96     iMessage = aMessage;
       
    97     iReplySlot = aReplySlot;
       
    98     
       
    99     if ( AutoLockOnL() )
    96         {
   100         {
    97         // The phone is locked, access denied.
   101         // The phone is locked, access denied.
    98         //
   102         //
    99         CompleteMessage(KErrCancel);
   103         CompleteMessage(KErrCancel);
   100         return;
   104         return;
   101         }
   105         }
   102         
       
   103     iMessage = aMessage;
       
   104     iReplySlot = aReplySlot;
       
   105 
   106 
   106     ShowNoteCompleteMessageL();
   107     ShowNoteCompleteMessageL();
   107 
   108 
   108     FLOG(_L("[BTNOTIF]\t CBTPBAPPinNotifier::GetParamsL() completed"));
   109     FLOG(_L("[BTNOTIF]\t CBTPBAPPinNotifier::GetParamsL() completed"));
   109     }
   110     }