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

_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to