bluetoothengine/btnotif/src/BTNPBAPPinNotifier.cpp
branchRCL_3
changeset 61 269724087bed
parent 56 9386f31cc85b
child 72 4b59561a31c0
equal deleted inserted replaced
56:9386f31cc85b 61:269724087bed
    78     iInfo.iPriority=ENotifierPriorityVHigh;
    78     iInfo.iPriority=ENotifierPriorityVHigh;
    79     return iInfo;
    79     return iInfo;
    80     }
    80     }
    81 
    81 
    82 // ----------------------------------------------------------
    82 // ----------------------------------------------------------
    83 // CBTPBAPPinNotifier::GetParamsL
    83 // CBTPBAPPinNotifier::ProcessStartParamsL
    84 // Initialize parameters. Jump to RunL as soon as possible.
    84 // Initialize parameters. Jump to RunL as soon as possible.
    85 // ----------------------------------------------------------
    85 // ----------------------------------------------------------
    86 //
    86 //
    87 void CBTPBAPPinNotifier::GetParamsL(const TDesC8& /* aBuffer */, TInt aReplySlot, const RMessagePtr2& aMessage)
    87 void CBTPBAPPinNotifier::ProcessStartParamsL()
    88     {
    88     {
    89     FLOG(_L("[BTNOTIF]\t CBTPBAPPinNotifier::GetParamsL()"));
    89     FLOG(_L("[BTNOTIF]\t CBTPBAPPinNotifier::ProcessStartParamsL()"));
    90 
    90 
    91     if( !iMessage.IsNull())
       
    92         {
       
    93         User::Leave(KErrInUse);
       
    94         }
       
    95     
       
    96     iMessage = aMessage;
       
    97     iReplySlot = aReplySlot;
       
    98     
       
    99     if ( AutoLockOnL() )
    91     if ( AutoLockOnL() )
   100         {
    92         {
   101         // The phone is locked, access denied.
    93         // The phone is locked, access denied.
   102         //
    94         //
   103         CompleteMessage(KErrCancel);
    95         CompleteMessage(KErrCancel);
   104         return;
    96         return;
   105         }
    97         }
   106 
    98 
   107     ShowNoteCompleteMessageL();
    99     ShowNoteCompleteMessageL();
   108 
   100 
   109     FLOG(_L("[BTNOTIF]\t CBTPBAPPinNotifier::GetParamsL() completed"));
   101     FLOG(_L("[BTNOTIF]\t CBTPBAPPinNotifier::ProcessStartParamsL() completed"));
   110     }
   102     }
   111 
   103 
   112 // ----------------------------------------------------------
   104 // ----------------------------------------------------------
   113 // CBTPBAPPinNotifier::ShowNoteCompleteMessageL
   105 // CBTPBAPPinNotifier::ShowNoteCompleteMessageL
   114 // Ask user response and return it to caller.
   106 // Ask user response and return it to caller.