2 * Authors : Peter Colijn <pcolijn@nit.ca>
3 * William Lachance <wlach@nit.ca>
4 * Sharvil Nanavati <s2nanava@uwaterloo.ca>
6 * Copyright 2003-2004, Net Integration Technologies, Inc.
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of version 2 of the GNU General Public
10 * License as published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
30 #include <camel/camel-provider.h>
31 #include <camel/camel-session.h>
32 #include <camel/camel-types.h>
35 #define namespace _namespace
36 #include <camel/camel-store.h>
40 #include "camel-exchangeit-store.h"
42 // The POP3 camel provider was used as a template for this file
43 // (camel/providers/pop3/camel-pop3-provider.c)
45 // This structure describes the camel provider we're supplying. It is defined
46 // in camel/camel-provider.h
47 static CamelProvider exchangeit_provider
=
49 "ExchangeIT", /* protocol name */
52 N_("Provides connectivity to an ExchangeIT server."),
54 /* If this isn't set to "mail", Evolution won't list it in the config
58 CAMEL_PROVIDER_IS_REMOTE
| CAMEL_PROVIDER_IS_SOURCE
,
60 /*CAMEL_URL_NEED_USER | CAMEL_URL_NEED_AUTH |*/ CAMEL_URL_NEED_HOST
,
65 // The only authentication method we support is a password authentication...
66 // See camel/camel-service.h for details.
67 CamelServiceAuthType camel_exchangeit_password_authtype
=
70 N_("Connect to the ExchangeIT server using a password."),
71 "", /* Auth proto (?) */
72 TRUE
/* Needs a password to authenticate? */
75 // This is the only symbol being exported from our shared object.
76 // It is the entry point into the shared object.
77 extern "C" void camel_provider_module_init (CamelSession
*session
)
79 exchangeit_provider
.url_hash
= camel_url_hash
;
80 exchangeit_provider
.url_equal
= camel_url_equal
;
81 exchangeit_provider
.authtypes
=
82 g_list_prepend(exchangeit_provider
.authtypes
,
83 &camel_exchangeit_password_authtype
);
85 // We don't ACTUALLY provide a store.. we just do this
86 // so that we can hook into Evolution.
87 exchangeit_provider
.object_types
[CAMEL_PROVIDER_STORE
] =
88 camel_exchangeit_store_get_type();
89 camel_session_register_provider(session
, &exchangeit_provider
);