![]() |
problem with deletion call logs with Qt
I want to use Qt to write an app on my N900, which delete the latest call log. I do it by following code:
QSqlDatabase m_db = QSqlDatabase::addDatabase( "QSQLITE" ); QSqlQuery * m_dbq = new QSqlQuery( m_db ); QString s = QString("delete from Events where start_time in (select start_time from Events order by start_time desc limit 1)"); if (m_dbq->exec( s )) ...; and I am sure the latest call log has been deleted in the eventlogger database. but then , I find a problem that the latest call log still display at the rtcom-call-ui though I aleady has deleted it. how can i update the recom-call-ui view when eventlogger database has been changed? this app develop by Nokia Qt SDK, with Qt Creator on windows xp, so i cann't use recom-eventlogger api. Any idea is welcome, thank you in advance. |
All times are GMT. The time now is 15:31. |
vBulletin® Version 3.8.8