Results 1 to 2 of 2

Thread: Problem in changing status of new message(SMS) to "Read"

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Location
    New Delhi, India
    Posts
    31
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60

    Post Problem in changing status of new message(SMS) to "Read"

    The desktop notification of "New Message/SMS" is removed in nokia symbian phones when the message is marked as "Read". What i am trying to achieve is mark the sms as read and want to reflect the same in default messaging application too.

    I tried with setStatus(QMessage::Read) but it is changing the status only for my application. ( why i said so: because message.status() returns "Read" ). I want the status to be changed in the default messaging store.

    Qt Code:
    1. QMessage message = m_manager.message(m_messageId);
    2.  
    3. message.setStatus(QMessage::Read);
    To copy to clipboard, switch view to plain text mode 

    Any help will be appreciated.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Problem in changing status of new message(SMS) to "Read"

    but it is changing the status only for my application.
    ...I want the status to be changed in the default messaging store.
    For effecting anything outside your application, you will have to call native system API.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. "Unable to read symbols" Problem
    By weaver4 in forum Newbie
    Replies: 10
    Last Post: 20th December 2012, 22:36
  2. "Normal" Status Bar Message doesn't look right...
    By codeslicer in forum Qt Programming
    Replies: 4
    Last Post: 19th January 2009, 23:50
  3. Replies: 4
    Last Post: 12th October 2008, 13:47
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 15:58

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.