Add new ESource classes.
[platform/upstream/evolution-data-server.git] / libedataserver / e-source-mail-transport.c
1 /*
2  * e-source-mail-transport.c
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) version 3.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with the program; if not, see <http://www.gnu.org/licenses/>
16  *
17  */
18
19 /**
20  * SECTION: e-source-mail-transport
21  * @include: libedataserver/e-source-mail-transport.h
22  * @short_description: #ESource extension for an email transport
23  *
24  * The #ESourceMailTransport extension identifies the #ESource as a
25  * mail transport which describes where to send outgoing messages.
26  *
27  * Access the extension as follows:
28  *
29  * |[
30  *   #include <libedataserver/e-source-mail-transport.h>
31  *
32  *   ESourceMailTransport *extension;
33  *
34  *   extension = e_source_get_extension (source, E_SOURCE_EXTENSION_MAIL_TRANSPORT);
35  * ]|
36  **/
37
38 #include "e-source-mail-transport.h"
39
40 #define E_SOURCE_MAIL_TRANSPORT_GET_PRIVATE(obj) \
41         (G_TYPE_INSTANCE_GET_PRIVATE \
42         ((obj), E_TYPE_SOURCE_MAIL_TRANSPORT, ESourceMailTransportPrivate))
43
44 G_DEFINE_TYPE (
45         ESourceMailTransport,
46         e_source_mail_transport,
47         E_TYPE_SOURCE_BACKEND)
48
49 static void
50 e_source_mail_transport_class_init (ESourceMailTransportClass *class)
51 {
52         ESourceExtensionClass *extension_class;
53
54         extension_class = E_SOURCE_EXTENSION_CLASS (class);
55         extension_class->name = E_SOURCE_EXTENSION_MAIL_TRANSPORT;
56 }
57
58 static void
59 e_source_mail_transport_init (ESourceMailTransport *extension)
60 {
61 }
62