Re: Some suggestions

From: Holger Freyther <freyther.a.t.gmx.net>
Date: Sun Nov 17 2002 - 10:35:07 EST

On Sunday 17 November 2002 16:22, Petr Ferschmann wrote:
> Dne ne 17. listopad 2002 13:12 Florian Boor napsal(a):
> > could do so with e.g. notes too. (Create a note with a (new) notepad and
> > relate it to a contact or calendar event).
>
> Good idea. So I could attach file, voice note or written picture to event
> :-) And when I delete this event all attached objects should delete too (or
> I will see warning and objects will be dettached).
deleting seeams to be problematic
>
> > I'd suggest to create a data managemant framework proposal using the gpe
> > wiki pages. As more people see and work on it as better it will be.
>
> Where can I find something about that?
>
> > Btw. To get more flexibilty, the "contacts library" should be able to
> > select a contact from every field because the contacts database has a
> > very flexible layout.
>
> Yes but I mean that when one contact have two email address I should be
> able to choose both or when somebody calls me to my GSM jacket the system
> could find in all phone numbers and show the right one.
>
>
> So we need some in-process communication (what about XPCOM) and Inter
> process communication (what about orbit?). And we need some component
> registrar (oaf like and bonobo like). May be the IPC is not needed now. But
> the in-process communication is really needed.
>
> So we will have some interface for attachments and some configuration that
> says:
> name -> "Note"
> iconv -> "/usr/share/..."
> obj -> "/usr/lib/plugins/libnotes.so"
>
> and we open this shared object and call some global function:
> gobject* queryInterface( char* interfaceType );
>
> and it returns something what we re-cast to "Attachment" and call it's
> methods. InterfaceType means interface we want - attachment, today, ...
>
> And it can have this methods:
> /* returns widget with list of attachments - we can add it to our window */
> GtkWidget showListWithAttachments( uniqueObjectId* id );
> /* returns list with attachments */
> glist* getListOfAttachments( uniqueObjectId* id );
> /* destroys all attachments */
> void destroyAttachments( uniqueObjectId* id );
> /* have this object any attachment? */
> bool haveAttachments( uniqueObjectId* id );
>
> uniqueObjectId is globaly unique ID identifying my object
>
> So there list of candidates for interface:
> - Attachment interface - for attaching files
> - Contact list interface - for choosing users
> - Category interface - for specifying categories
> - Today interface - for showing today.
> - Find interface - every application should provide interface for
> searching.
>
>
> So have to choose between XPCOM and own system using gobject.
> BTW: what is using OPIE?
On Opie we simply call that X-Ref ( Cross Reference ). You can identify any
record on a Opie System with a uid and an appname additional you can also
link a TableField with a record or another records table field.
For example the birthday of your spouse could be linked to the vCard of your
spouse.
We've a libopie which takes care of the basic X-Ref and PIM Stuff. It's
designed to have possible multiple backends (XML, sqlite, oracle,
vCal/iCal... ) and to give common access to our applications like todolist,
contatcs and datebook.
It can be found at libopie/pim.
We try to delay the loading of records as much as possible. this is magically
done through c++ templates. To not need to reload every time we do caching
and read ahead too ;)

regards Holger

PS For more informations I'm glad to help.

-- 
_____________________________________________
Holger 'zecke' Freyther
developer
Project OPIE- the Open Palmtop Integrated Environment
http://opie.handhelds.org | http://www.opie.info (german)
IRC: irc.freenode.net #opie #opie.de
Received on Sun Nov 17 15:35:21 2002

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:41:30 EDT