[maemo-developers] System time change detection
From: ext-vladimir.2.plotean at nokia.com ext-vladimir.2.plotean at nokia.comDate: Fri Feb 12 15:19:58 EET 2010
- Previous message: Fwd: Developing virtual keyboard plugin for Maemo 5
- Next message: System time change detection
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello all, I have a question related to system time detection on Harmattan. I saw that there is a new package timehd . How should it be used for getting system time changes. I tried with the following code : #define TIME_DBUS_INTERFACE "com.nokia.clockd" #define TIME_DBUS_PATH "/com/nokia/clockd" #define TIME_CHANGED "changed_time" Here I make the connection to service QDBusConnection conn = QDBusConnection::systemBus(); bool ret = conn.connect( TIME_DBUS_INTERFACE , TIME_DBUS_PATH, TIME_DBUS_INTERFACE, TIME_CHANGED, this, SLOT(handleTimeChanged(qint32)) ); if ( ret ) qDebug( "::initialize - connect for time info successful" ); else qDebug( "::initialize - connect for time info failed" ); *********************************************** This is the slot for notification void TimeStatus::handleTimeChanged(qint32 a_value) { qDebug("time changed %d",a_value); } Thanks in advance, Vladimir -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100212/62d51961/attachment.htm>
- Previous message: Fwd: Developing virtual keyboard plugin for Maemo 5
- Next message: System time change detection
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]