Add optimized indexing capabilities for phone number values.
[platform/upstream/evolution-data-server.git] / camel / camel-network-settings.h
1 /*
2  * camel-network-settings.h
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 #if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
20 #error "Only <camel/camel.h> can be included directly."
21 #endif
22
23 #ifndef CAMEL_NETWORK_SETTINGS_H
24 #define CAMEL_NETWORK_SETTINGS_H
25
26 #include <glib-object.h>
27 #include <camel/camel-enums.h>
28
29 /* Standard GObject macros */
30 #define CAMEL_TYPE_NETWORK_SETTINGS \
31         (camel_network_settings_get_type ())
32 #define CAMEL_NETWORK_SETTINGS(obj) \
33         (G_TYPE_CHECK_INSTANCE_CAST \
34         ((obj), CAMEL_TYPE_NETWORK_SETTINGS, CamelNetworkSettings))
35 #define CAMEL_NETWORK_SETTINGS_INTERFACE(cls) \
36         (G_TYPE_CHECK_CLASS_CAST \
37         ((cls), CAMEL_TYPE_NETWORK_SETTINGS, CamelNetworkSettingsInterface))
38 #define CAMEL_IS_NETWORK_SETTINGS(obj) \
39         (G_TYPE_CHECK_INSTANCE_TYPE \
40         ((obj), CAMEL_TYPE_NETWORK_SETTINGS))
41 #define CAMEL_IS_NETWORK_SETTINGS_INTERFACE(cls) \
42         (G_TYPE_CHECK_CLASS_TYPE \
43         ((cls), CAMEL_TYPE_NETWORK_SETTINGS))
44 #define CAMEL_NETWORK_SETTINGS_GET_INTERFACE(obj) \
45         (G_TYPE_INSTANCE_GET_INTERFACE \
46         ((obj), CAMEL_TYPE_NETWORK_SETTINGS, CamelNetworkSettingsInterface))
47
48 G_BEGIN_DECLS
49
50 /**
51  * CamelNetworkSettings:
52  *
53  * Since: 3.2
54  **/
55 typedef struct _CamelNetworkSettings CamelNetworkSettings;
56 typedef struct _CamelNetworkSettingsInterface CamelNetworkSettingsInterface;
57
58 struct _CamelNetworkSettingsInterface {
59         GTypeInterface parent_interface;
60 };
61
62 GType           camel_network_settings_get_type
63                                         (void) G_GNUC_CONST;
64 const gchar *   camel_network_settings_get_auth_mechanism
65                                         (CamelNetworkSettings *settings);
66 gchar *         camel_network_settings_dup_auth_mechanism
67                                         (CamelNetworkSettings *settings);
68 void            camel_network_settings_set_auth_mechanism
69                                         (CamelNetworkSettings *settings,
70                                          const gchar *auth_mechanism);
71 const gchar *   camel_network_settings_get_host
72                                         (CamelNetworkSettings *settings);
73 gchar *         camel_network_settings_dup_host
74                                         (CamelNetworkSettings *settings);
75 void            camel_network_settings_set_host
76                                         (CamelNetworkSettings *settings,
77                                          const gchar *host);
78 guint16         camel_network_settings_get_port
79                                         (CamelNetworkSettings *settings);
80 void            camel_network_settings_set_port
81                                         (CamelNetworkSettings *settings,
82                                          guint16 port);
83 CamelNetworkSecurityMethod
84                 camel_network_settings_get_security_method
85                                         (CamelNetworkSettings *settings);
86 void            camel_network_settings_set_security_method
87                                         (CamelNetworkSettings *settings,
88                                          CamelNetworkSecurityMethod method);
89 const gchar *   camel_network_settings_get_user
90                                         (CamelNetworkSettings *settings);
91 gchar *         camel_network_settings_dup_user
92                                         (CamelNetworkSettings *settings);
93 void            camel_network_settings_set_user
94                                         (CamelNetworkSettings *settings,
95                                          const gchar *user);
96
97 G_END_DECLS
98
99 #endif /* CAMEL_NETWORK_SETTINGS_H */