[Kde-pim] Re: dbus and pim 4.6 only on second try

Ingo Klöcker kloecker at kde.org
Mon Apr 25 18:53:22 BST 2011


On Monday 25 April 2011, Sérgio Martins wrote:
> On Mon, Apr 25, 2011 at 12:17 PM, Gerd Fleischer 
<gerdfleischer at gmx.de> wrote:
> > Am Montag, 25. April 2011, 10:35:53 schrieb David Jarvie:
> >> There could be a short time lag before the application creates
> >> a particular interface, so always check by calling isValid() on
> >> the interface before trying to use it.
> > 
> > Thanks for your help.
> > 
> > Looks like it may take up to ~2 secs after serviceRegistered is
> > emitted until it is really usable, so I use a QTimer::singleshot
> > or is the a better way?
> 
> I think we have another problem.
> 
> Korganizer now loads events asynchronously ( from akonadi, with an
> ETM ).
> 
> When showEvent() is called the first time, the event isn't there yet,
> so korg thinks it doesn't exist.
> 
> A solution could be to copy the incidence viewer to kdepimlibs, and
> you can use that instead of calling KOrganizer.

True. We should have simple viewers for all PIM data. But until that 
happens ...


> Not sure if these
> dbus interfaces still make sense, seems a bit overkill to open
> kontact/korganizer just to show an event.

Those interfaces are probably used internally by Kontact. At least, most 
of the D-Bus interfaces of the KDE PIM applications have been added for 
inter-component communication in Kontact.


Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20110425/6f87e579/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list