//----------------------------------------------------------------------------- // CAknDynamicSoftNotifier::AddDynamicNotificationL //----------------------------------------------------------------------------- // EXPORT_C TInt CAknDynamicSoftNotifier::AddDynamicNotificationL( TAknDynamicSoftNotificationParams& aParams, TInt aNoteId, // = KErrUnknown TInt aCount ) // = 1 { return SendMessageL( aNoteId, aCount, EFalse, ETrue, aParams ); }
//----------------------------------------------------------------------------- // CAknDynamicSoftNotifier::SetDynamicNotificationCountL //----------------------------------------------------------------------------- // EXPORT_C TInt CAknDynamicSoftNotifier::SetDynamicNotificationCountL( TAknDynamicSoftNotificationParams& aParams, TInt aNoteId, TInt aCount ) { return SendMessageL( aNoteId, aCount, EFalse, EFalse, aParams ); }
//----------------------------------------------------------------------------- // CAknDynamicSoftNotifier::CancelDynamicSoftNotificationL //----------------------------------------------------------------------------- // EXPORT_C void CAknDynamicSoftNotifier::CancelDynamicNotificationL( TInt aNoteId ) { // parameters are unrelevant TAknDynamicSoftNotificationParams params( KAknPriorityOfCancelMessage ); SendMessageL( aNoteId, 0, ETrue, EFalse, params ); StopObserving( aNoteId ); }
// ----------------------------------------------------------------------------- // CSeiForwardPlugin::HandleNotifyL // // ----------------------------------------------------------------------------- // void CSeiForwardPlugin::HandleNotifyL( const CEcmtMessageEvent& aEvent ) { const TPtrC8 m = iMessaging->Message( aEvent ); TLex8 lexer( m ); TPtrC8 type = lexer.NextToken(); TPtrC8 channelStr = lexer.NextToken(); TLex8 num ( channelStr ); TInt channel; // Check message type if ( ( type != KConnect ) && ( type != KListen ) && ( type != KMsg ) ) { RDebug::Print( _L( "EcmtSeiForwardPlugin: Invalid message" ) ); return; } // Get channel number if ( num.Val( channel ) ) { RDebug::Print( _L( "EcmtSeiForwardPlugin: Invalid channel" ) ); return; } // Process message if ( type == KConnect ) { TPtrC8 portStr = lexer.NextToken(); TInt port; num.Assign ( portStr ); // Get port number if ( num.Val( port ) ) { RDebug::Print( _L( "EcmtSeiForwardPlugin: Invalid port" ) ); return; } ConnectL( channel, port ); } else if ( type == KListen ) { ListenL( channel ); } else if ( type == KMsg ) { // Now this just sends the message back to the Java plug-in. // Instead, should cancel the appropriate socket read and write // the message to the socket. TPtrC8 msg = lexer.Remainder(); SendMessageL( channel, msg ); } }