78 iInfo.iPriority=ENotifierPriorityVHigh; |
78 iInfo.iPriority=ENotifierPriorityVHigh; |
79 return iInfo; |
79 return iInfo; |
80 } |
80 } |
81 |
81 |
82 // ---------------------------------------------------------- |
82 // ---------------------------------------------------------- |
83 // CBTPBAPPinNotifier::ProcessStartParamsL |
83 // CBTPBAPPinNotifier::GetParamsL |
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::ProcessStartParamsL() |
87 void CBTPBAPPinNotifier::GetParamsL(const TDesC8& /* aBuffer */, TInt aReplySlot, const RMessagePtr2& aMessage) |
88 { |
88 { |
89 FLOG(_L("[BTNOTIF]\t CBTPBAPPinNotifier::ProcessStartParamsL()")); |
89 FLOG(_L("[BTNOTIF]\t CBTPBAPPinNotifier::GetParamsL()")); |
90 |
90 |
|
91 if( !iMessage.IsNull()) |
|
92 { |
|
93 User::Leave(KErrInUse); |
|
94 } |
|
95 |
|
96 iMessage = aMessage; |
|
97 iReplySlot = aReplySlot; |
|
98 |
91 if ( AutoLockOnL() ) |
99 if ( AutoLockOnL() ) |
92 { |
100 { |
93 // The phone is locked, access denied. |
101 // The phone is locked, access denied. |
94 // |
102 // |
95 CompleteMessage(KErrCancel); |
103 CompleteMessage(KErrCancel); |
96 return; |
104 return; |
97 } |
105 } |
98 |
106 |
99 ShowNoteCompleteMessageL(); |
107 ShowNoteCompleteMessageL(); |
100 |
108 |
101 FLOG(_L("[BTNOTIF]\t CBTPBAPPinNotifier::ProcessStartParamsL() completed")); |
109 FLOG(_L("[BTNOTIF]\t CBTPBAPPinNotifier::GetParamsL() completed")); |
102 } |
110 } |
103 |
111 |
104 // ---------------------------------------------------------- |
112 // ---------------------------------------------------------- |
105 // CBTPBAPPinNotifier::ShowNoteCompleteMessageL |
113 // CBTPBAPPinNotifier::ShowNoteCompleteMessageL |
106 // Ask user response and return it to caller. |
114 // Ask user response and return it to caller. |