Hi, Experts,

   I am new to QtDBus, so tried simple way to use 
QDBusConnection::ExportAllSlots:

   MyDaemon mydaemon;
   QDBusConnection::sessionBus().registerObject("/", &mydaemon, 
QDBusConnection::ExportAllSlots);

   Then in client side

   QDBusInterface iface(MSIP_CHANNEL_NAME, "/", "", 
QDBusConnection::sessionBus());
   QDBusReply<QString> reply = iface.call("add", 2, 3);


   Finally it reports:
        Didn't receive a reply. Possibly causes include: the remote application 
did not send a reply ....


   After checking log, the method is never called:
        int MyDaemon::add(int a, int b)
        {
                syslog(LOG_INFO, "handling add\n");
                return a + b;
        }

   So I wonder whether ExportAllSlots is supported, or is there anything wrong 
in my code.

B.R.
He Yunlong
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to