[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFD] events from libgnokii
From: |
Bastien Nocera |
Subject: |
Re: [RFD] events from libgnokii |
Date: |
Thu, 02 Jun 2005 20:58:11 +0100 |
Hey Pawel,
On Wed, 2005-05-04 at 01:10 +0200, Pawel Kot wrote:
> Hi,
>
> I just spent an hour trying to figure out what's wrong with Nokia 6170
> and file transfer. Beside problem with gnokii.c it appeared that
> nothing's wrong, just the transmission takes that long. so i added
> some kind of the progress status: after every file part taken from the
> phone it is written do the stderr how much is already done. It is
> silly, works for command line tools (also not too nice). But it won't
> work for any GUI. The only sane way (IMHO) to display the progress bar
> in the GUI is to publish (asynchronous) events how much is done (I
> hope that's clear how I'd like it to work). I'm thinking of using DBUS
> for that. Does it sound sane? Is here anybody with some experience in
> this area?
It will definitely work for decent widget sets. For Gtk+, you'll be able
to process a few UI events in the callback, so that the UI will be
updated. For most applications, you would want to create a new thread
and push the event asynchronously to the UI. That's what the gnokii port
of gnome-phone-manager does to poll for new messages without making the
UI slow.
No need for D-BUS in that case.
Cheers
--
Bastien Nocera <address@hidden>