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