[maemo-developers] osso, muali , dbus and Qt closeEvent()s

From: Antonio Aloisio antonio.aloisio at gmail.com
Date: Wed Mar 25 22:39:22 EET 2009
Hi,
IMHO using the Qt D-Bus API to rewrite some parts of libosso is more
easy that resolve the symobls, load and use libosso in Qt.
Kimmo said adding D-Bus dependencies in the widget is ugly, I agree
with him.. but... is this also true for the QStatusBar?

In Qt we have a statusBar that manages and displays messages.
Currently this status bar is hidden just because we don't have it in
Hildon. I don't compiled out in order to preserve
the compatibility with the Qt Desktop application.

Adding D-Bus into the status bar, we can display messages using hildon
passive notification dialogs just calling

void QStatusBar::showMessage ( const QString & message, int timeout = 0 ).

Is it cool? Any comment is welcome.

Cheers,
Antonio

On Wed, Mar 25, 2009 at 9:12 PM, Santtu Lakkala <inz at inz.fi> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> David Greaves wrote:
> > I meant gtk apps need to use osso-initialize() or they just don't work.
> > Since libosso uses glib, I expect that's not really right for Qt apps.
> >
> > In particular I think osso-init.c calls glib setups that seem to hook into the
> > glib context and I think the glib main loop - not used in Qt apps.
> >
> > eg line 503 in osso-init.c calls dbus_connection_setup_with_g_main()
> > which:
> > "Sets the watch and timeout functions of a DBusConnection to integrate the
> > connection with the GLib main loop. "
> > see:
> > http://dbus.freedesktop.org/doc/api/html/group__DBusGLib.html#ga754eed235cc2b8153bd8f824b687d9e
> >
> >
> > so libosso, as it stands, isn't suitable for Qt apps .... unless I'm confused :)
>
>
> Actually Qt has supported GLib context stuff since 4.2 (IIRC), so
> libosso is suitable. That doesn't say that it's practical or nice, but
> it should work.
>
> - --
> Santtu
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAknKghEACgkQX9Rc0+po4p3zUQCgmZLaGy3jTDm3YuCbkuh7OZE4
> 2J4An3avfLa5Elu8eo94IbW1srViA8aw
> =ozXP
> -----END PGP SIGNATURE-----
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers



--

Isaac Asimov  - "I do not fear computers. I fear the lack of them."

More information about the maemo-developers mailing list