×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    89

    Question How to add an icon to a native notifier ?

    hi , i am creating an application that will pop up a native notification when an update occurs from server and my application is in background
    to do that i used the RNotifier referred to the link below
    HTML Code:
    http://www.genmaint.com/standard-notifications-or-alert-styles-in-symbian-qt-s60.html
    the corresponding RNotifier display 2 lines to the user with 2 buttons..i want to set an image(my application icon) into the notifier when it pop up to the user
    i have made a lot of search on wiki concerning that but still cant get the desired result
    can anyone help to find a solution for that?
    thank you

  2. #2
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: How to add an icon to a native notifier ?

    With RNotifier you cannot display an image inside the notification.

  3. #3
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    89

    Re: How to add an icon to a native notifier ?

    Quote Originally Posted by kamalakshan View Post
    With RNotifier you cannot display an image inside the notification.
    hi kamalakshan, thx for your reply.
    so what should i use to be able to add an image inside the notification?

  4. #4
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    89

    Re: How to add an icon to a native notifier ?

    i have found the following
    http://www.symlab.org/wiki/index.php...lug-in_Example
    which describes that icons of S60 Global notes can be editable with :

    SetImageL which required a paramter of CEikImage *aImage
    and SetIconL which required a paramter of CEikImage *aIcon

    but i didnt found how to use this..or if that will works too!!
    can anyone guide me what should i do to be able to acheive what i want
    Thank you

  5. #5
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: How to add an icon to a native notifier ?

    This works for progress bar and global notes where there is an icon shown.

    You will have to provide an mbm file with image and its mask.

    _LIT(KMBMFileName,"\\resource\\apps\\MyApp.mbm");

    Then call SetImageL

    myNote->SetImageL(KMBMFileName,EMbmImage1,EMbmImage1_Mask);

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to add an icon to a native notifier ?

    Quote Originally Posted by e.merhej View Post
    hi , i am creating an application that will pop up a native notification when an update occurs from server and my application is in background
    to do that i used the RNotifier referred to the link below
    HTML Code:
    http://www.genmaint.com/standard-notifications-or-alert-styles-in-symbian-qt-s60.html
    the corresponding RNotifier display 2 lines to the user with 2 buttons..i want to set an image(my application icon) into the notifier when it pop up to the user
    i have made a lot of search on wiki concerning that but still cant get the desired result
    can anyone help to find a solution for that?
    thank you
    as you application is Qt, i suggest you use a simple QWidget / QDialog to show your notification rater then using RNotifier as it will break the compatibility for other platforms for sure.

  7. #7
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    89

    Re: How to add an icon to a native notifier ?

    Quote Originally Posted by kamalakshan View Post
    This works for progress bar and global notes where there is an icon shown.

    You will have to provide an mbm file with image and its mask.

    _LIT(KMBMFileName,"\\resource\\apps\\MyApp.mbm");

    Then call SetImageL

    myNote->SetImageL(KMBMFileName,EMbmImage1,EMbmImage1_Mask);
    Thx for the help again
    but is there a way to do that( showing a native pop up notification with icon ) in Qt and not using symbian ? since this method seems not to be a simple one
    Thank you

  8. #8
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to add an icon to a native notifier ?

    Quote Originally Posted by e.merhej View Post
    Thx for the help again
    but is there a way to do that( showing a native pop up notification with icon ) in Qt and not using symbian ? since this method seems not to be a simple one
    Thank you
    as suggested in #6 a simple search in google landed me here http://www.qtcentre.org/wiki/index.p...con_problem%29

  9. #9
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    89

    Re: How to add an icon to a native notifier ?

    Quote Originally Posted by skumar_rao View Post
    as you application is Qt, i suggest you use a simple QWidget / QDialog to show your notification rater then using RNotifier as it will break the compatibility for other platforms for sure.
    hi skumar .. i want the popup to be in native..i mean that user can see it even if the application is in background
    is that possible to do it with QWIdget/QDialog?? and if so how should that be done?
    Thank you in advance for your help

  10. #10
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to add an icon to a native notifier ?

    Quote Originally Posted by e.merhej View Post
    hi skumar .. i want the popup to be in native..i mean that user can see it even if the application is in background
    is that possible to do it with QWIdget/QDialog?? and if so how should that be done?
    Thank you in advance for your help
    oops i think i just guessed your last question. refer to #8

  11. #11
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    89

    Re: How to add an icon to a native notifier ?

    Quote Originally Posted by skumar_rao View Post
    oops i think i just guessed your last question. refer to #8
    hi again..i tried that now..but the msgBox is not showing on the screen when my application is in background untill i open it bymeslf again from the background.
    what i want is that the msg to be shown outside the application too that will alert the user if something happened in the application ..then the user will be free to open the application from background
    hope that u get my idea
    Thank you again for helping

  12. #12
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    89

    Re: How to add an icon to a native notifier ?

    Note that this method will solve the icon problem and it will be so great if the msgbox will be shown too outside the application

  13. #13
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to add an icon to a native notifier ?

    you have to add something more to make it global to device by using Qt::WindowStaysOnTopHint for your requirement . do refer to old discussion http://discussion.forum.nokia.com/fo...ht=#post831175

  14. #14
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    89

    Re: How to add an icon to a native notifier ?

    Quote Originally Posted by skumar_rao View Post
    you have to add something more to make it global to device by using Qt::WindowStaysOnTopHint for your requirement . do refer to old discussion http://discussion.forum.nokia.com/fo...ht=#post831175
    in reference to the link
    Qt::WindowStaysOnTopHint is properly implemented for the Symbian platform and that simply adding this flag to the widget will solve your problem'

    how can i implement this to the msgBox? i am trying to add it but not succeeding till now to know how to add it
    sorry if this is a silly question :$
    Thank you again

  15. #15
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    89

    Re: How to add an icon to a native notifier ?

    i tried the following
    QMessageBox message ;
    message = new QMessageBox ;
    message->setWindowFlags(Qt::WindowStaysOnTopHint);
    message->setModal(true) ;
    message->critical(NULL, "test", "test");
    but still the same problem..the msgbox is shown only in my application and not outside the application
    i have made the following

    QTimer::singleShot(5000, this, SLOT(testing())); //in mainWindow when the application start

    void MainWindow::testing()
    {
    QMessageBox message ;
    message = new QMessageBox ;
    message->setWindowFlags(Qt::WindowStaysOnTopHint);
    message->setModal(true) ;
    message->critical(NULL, "test", "test");
    }
    when i start the application i hide it to the background and wait for 5 sec..the msgbox is shown inside the application and not beeing able to see it from the phone home screen as the notifier did before
    i am doing anything wrong here?

Similar Threads

  1. Replies: 1
    Last Post: 2010-05-14, 15:37
  2. How to add an icon in CAknSettingItemList
    By kunlamp in forum Symbian
    Replies: 1
    Last Post: 2010-01-07, 05:28
  3. How to add menu items to native apps?
    By dnjpsil in forum Symbian
    Replies: 5
    Last Post: 2008-10-15, 06:40
  4. How to add an icon to a menu pane?
    By ManoDasa in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-04-26, 14:55
  5. How to Add an icon on the status area in s90?
    By redglove in forum Symbian User Interface
    Replies: 0
    Last Post: 2004-12-03, 08:38

Posting Permissions

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