View Single Post
Posts: 42 | Thanked: 12 times | Joined on Dec 2009 @ Kuopio, Finland
#1
Hello,

I am trying to fetch users SMS from the device but it seems like it doesn't function correctly.

I am using following:

const QDateTime minimumDate(QDate(2009,8,20));

QMessageFilter includeFilter(QMessageFilter::byTimeStamp(minimumD ate, QMessageDataComparator::GreaterThanEqual));

includeFilter &= QMessageFilter::byType(QMessage::Sms);

QtMobility::QMessageIdList ids = QtMobility::QMessageManager().queryMessages(includ eFilter);


And ids list returns empty (It works for Email).

Can anyone else confirm this bug when running application in N900? I am using QtCreator on Windows 7 and USB networking connection to n900. QTCreator Emulator doesn't have any SMS messages in it to test against.

My other - very ugly and n900 only - solution would be to use sql to fetch SMS from the rtcom sqlite database, but I wouldn't like to use that option.