Re: Some suggestions

From: Petr Ferschmann <petr_at_ferschmann.cz>
Date: Sun, 17 Nov 2002 16:22:48 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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).

> 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?

- --
                                  Petr "Fers" Ferschmann

 -=[ petr@ferschmann.cz ]==[ http://petr.ferschmann.cz/ ]=-
- -=[ Koukni na http://www.postcard.cz/ ]==[ +420 604/781 009 ]=-

GPG Fingerprint:
[83B0 6378 7A9D D993 035E 60BD FEEC F665 D2C8 1B9A]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE917RI/uz2ZdLIG5oRAge0AJ4mx/Lhy2qMqjBY5HCw64ACBZvRVACfaFxF
wwWPiaSqLWiH4QO+6MSBtxY=
=wFi/
-----END PGP SIGNATURE-----
Received on Sun Nov 17 2002 - 15:22:52 EST

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:19:02 EDT