On Thursday, 20 June 2013 12:18:19 CEST, Pali Rohár wrote:
There could be problem, because Trojita does not know if email address or contact name is already in addressbook or not.

I think that plugin should decide if creating new contact or editing existing.

So then plugin api needs only one function with "hints" for email address and display name.

OK, you're right. Please remove the default values, though.

Kevin suggested that this method can be usefull for plugins. So then it is needed to be stored somewhere from plugins can call it (plugins do not have pointer to some window/util objects). But I think that this method is too small and plugins can copy paste it if they really need it.

Plugin implementations can include any headers and/or link with any library, so 
you can put the code into that header/library.

Cheers,
Jan

--
Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/

Reply via email to