×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    6

    Use of MNotification

    Hi

    for my application I would like to implement a system wide notification with custom text that should be shown on the lockscreen and the event page. Additionally it would be really cool to show an icon in the status bar of the phone (...in the bar where the battery indicator is located)...

    I searched all QT examples in the QT SDK but I did not found a suitable demo. The only thing I found is the following link:
    http://www.developer.nokia.com/Commu..._D-Bus_Adaptor

    where MNotification is explained... it is said that the "eventType" parameter can be used to change the behaviour of the notification...

    Is there a better way of getting a notification that behaves like an incoming email without using the "EmailArrivedEvent" since my notification is not an email???

    If we can create custom types - how can we show a custom icon in the status bar of the phone?

    Does somebody know how to do that?
    Are there any demo example/tutorials where this steps are covered?

    Regards
    Martin

  2. #2
    Registered User
    Join Date
    Mar 2012
    Posts
    6

    Re: Use of MNotification

    To put it simpler....

    if I use:
    Code:
    MNotification notification(MNotification::DeviceEvent, "", tr("Notification text"));
    This line breaks down to 3 questions:

    1. Will there be a default status bar indicator added when publishing such a notification?
    (http://harmattan-dev.nokia.com/docs/...tatus_Bar.html says there is a "Notifications indicator" - does this mean an indicator for such a simple notification?)
    2. Will such a notification be shown on the lockscreen and the events page?
    3. Any ideas how to change the icon or where to define the notification behaviour

    I get my N9 in a few days so I cannot test this behaviour... Would be nice if somebody can a few words...

    Thanks in advance
    Regards
    Martin

  3. #3
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Use of MNotification

    Hi,
    If you don't have a device yet, you can use the Nokia Remote device access service: http://www.developer.nokia.com/Devic...device_access/
    It allows you to use a device remotely.

    About your quesitons:
    1. by default only few events' icons are shown on the status bar.
    2. Yes
    3. IIRC to define a new event type you have to write your own conf file in /usr/share/meegotouch/notifications/eventtypes.
    The config file you find there could be modified to change events behaviour.
    Last edited by gnuton; 2012-03-16 at 12:07.

  4. #4
    Registered User
    Join Date
    Mar 2012
    Posts
    6

    Re: Use of MNotification

    Thank you very much!!!
    Great information - thanks a lot...

    Regards
    Martin

Similar Threads

  1. MNotification timeout
    By secyritas in forum Nokia N9
    Replies: 1
    Last Post: 2012-02-15, 04:34
  2. MNotification to open an application
    By conxt in forum Nokia N9
    Replies: 7
    Last Post: 2012-02-03, 13:20
  3. MBanner / MNotification
    By avisheksomani in forum Nokia N9
    Replies: 5
    Last Post: 2011-07-23, 14:13

Posting Permissions

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