[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] Proposal: KSharedFile
From:       Adriaan de Groot <adridg () cs ! kun ! nl>
Date:       2001-12-07 14:48:21
[Download RAW message or body]

On Fri, 7 Dec 2001, Cornelius Schumacher wrote:
> > Well, for KPilot the solution is to use libksync and KOrganizer's merge()
> > dcop call instead of just tromping on the file like it does now.
>
> The merge() call is not sufficient. You have to tell KOrganizer before
> syncing starts to prevent that it writes the file during syncing. When the
> sync is finished you have to tell KOrganizer to reload the file. With
> KSharedFile this would be done by connecting slots of KOrganizer to the
> locked() and changed() signals.

Aha. I didn't know that -- I thought just merge() was enough and that
everything worked. I should have written
[unaffected-by-any-working-knowledge-of-the-code] as a disclaimer, then.

> calendar and you have running a (yet to be written) program to sync your
> calendar with your laptop. All of them are accessing the same file. If one of
> them intends to write to the file, all other programs have to know about
> this. How do you handle that?

Excellent point. That requires n^2 arrangements, vs. just one in the
KSharedFile setup.

> > Summing up: it's a neat idea (probably easy to implement with DCOPsignals
> > or KDirWatcher and yet-another-extension-to-kapplication's DCOP interface)
> > but doesn't sound like it's the solution to the KPilot / Korganizer
> > interaction problem.
>
> Why not? And what's the solution then?

Oh, I should have said "not the only solution".

-- 
+------------------------------+
| Adriaan de Groot             | Drinken, in een bepaalde tijd symbolisch,
| http://www.cs.kun.nl/~adridg | is in een andere tijd zuipen - Wittgenstein

_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-pim

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic