Re: [Evolution-hackers] [Camel] How can I get a reference to the store class from another class?
- From: Jules Colding <colding omesc com>
- To: Evolution Hackers <evolution-hackers gnome org>
- Cc:
- Subject: Re: [Evolution-hackers] [Camel] How can I get a reference to the store class from another class?
- Date: Mon, 10 Oct 2005 12:18:19 +0200
On Mon, 2005-10-10 at 12:05 +0200, Jules Colding wrote:
> > Transport doesn't derive from Store, they both derive from Service.
> >
> > So if you want to share the connect() implementation from both classes,
> > then it must be implemented in a sharable manner, and not separately.
Another confusing item is that groupwise_send_to() is acquiring a
reference to the groupwise store (~line 164 in
camel-groupwise-transport.c):
######## snip #######
CamelStore *store = NULL;
CamelGroupwiseStorePrivate *priv = NULL;
CamelService *service = CAMEL_SERVICE(transport);
< snip >
store = camel_session_get_store (service->session, url, ex );
groupwise_store = CAMEL_GROUPWISE_STORE (store);
priv = groupwise_store->priv;
######## snip #######
The transport should be able to invoke overloaded store methods, such as
connect(), on this reference, right?
Thanks,
jules
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]