Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Dec 2010

    Question Problem with RNotifier

    i am facing some problem with RNotifier, i need to close the notifier in case where another msg will be displayed

    i am using the notifier as following:
    RNotifier notifier;//declared as global parameter
    TInt buttonVal;
    TRequestStatus lStatus;
    QString num = "Some data";
    TPtrC16 textPtr(reinterpret_cast<const TUint16*>(num.utf16()));
    notifier.Notify(_L("Test"), textPtr, _L("Ok"), _L("Cancel"), buttonVal, lStatus);

    if( buttonVal == 0 )
    if( buttonVal == 1)
    i tried to use notifier.Close(); in another function to close the notifier but this didnt work!!!
    seems that still waiting the user response ..so what should i do to be able to close the notifier??

    Thank you

  2. #2
    Nokia Developer Expert
    Join Date
    Sep 2011

    Re: Problem with RNotifier

    Cancelling outstanding request of an active object have to be done before releasing its resources.

    In this case thought that RNotifier::NotifyCancel() method is not implemented by the server.

    The RNotifier::CancelNotifier(TUid aNotifierUid) allow you to cancel the notification when providing the UID identifying the notifier.

    With the use of the TrustedUI, ProtServ capabilities one can implement a notifier and cancel it by the UID based on the CustomNotifier.zip code located at the following wiki article:



Similar Threads

  1. problem in RNotifier Connect()
    By npradeep in forum Bluetooth Technology
    Replies: 0
    Last Post: 2008-02-16, 06:34
  2. RNotifier plugin problem.
    By ilsocio in forum Symbian
    Replies: 0
    Last Post: 2007-12-14, 03:13
  3. Problem with RNotifier::Notify in S60 3rd
    By jarik in forum Symbian User Interface
    Replies: 0
    Last Post: 2007-04-11, 05:24
  4. Using RNotifier.
    By amitaggarwal in forum Symbian
    Replies: 1
    Last Post: 2004-12-29, 20:29
  5. RNotifier
    By niutajus in forum Symbian
    Replies: 0
    Last Post: 2003-07-16, 13:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts