Re: [HC Evolution] Transport or provider?



hector huron scouts-es org wrote:

Hi

I have been reading some code and a question has arised.

SMTP should be a transport or a provider?
I guess that  as sson as I get to read the pop3 support code I´ll get a better idea, but rigth now I don´t 
know the difference

Hector

A provider is simply the implementation (generally located in a
shared library) of a CamelStore/CamelFolder or a CamelTransport.

In the case of an SMTP, you need to write a provider which is an
implementation of a CamelTransport.

Concretely, you have to write a subclass of CamelTransport.
Then you have to create a Provider that registers as a transport
and indicate to camel the GtkType of your subclasse.

Look in camel/providers/mbox for an exemple of the provider
registration code.

(look in camel/camel-providers.c for a simple explanation).

Hope this helps.

    Bertrand.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]