summaryrefslogtreecommitdiff
path: root/src/camel/camel-local-settings.h
blob: 04c705e41a35014f9ba1bd3038b046b9e00bd09d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
 * camel-local-settings.h
 *
 * This library is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
 * for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library. If not, see <http://www.gnu.org/licenses/>.
 *
 */

#if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
#error "Only <camel/camel.h> can be included directly."
#endif

#ifndef CAMEL_LOCAL_SETTINGS_H
#define CAMEL_LOCAL_SETTINGS_H

#include <camel/camel-store-settings.h>

/* Standard GObject macros */
#define CAMEL_TYPE_LOCAL_SETTINGS \
	(camel_local_settings_get_type ())
#define CAMEL_LOCAL_SETTINGS(obj) \
	(G_TYPE_CHECK_INSTANCE_CAST \
	((obj), CAMEL_TYPE_LOCAL_SETTINGS, CamelLocalSettings))
#define CAMEL_LOCAL_SETTINGS_CLASS(cls) \
	(G_TYPE_CHECK_CLASS_CAST \
	((cls), CAMEL_TYPE_LOCAL_SETTINGS, CamelLocalSettingsClass))
#define CAMEL_IS_LOCAL_SETTINGS(obj) \
	(G_TYPE_CHECK_INSTANCE_TYPE \
	((obj), CAMEL_TYPE_LOCAL_SETTINGS))
#define CAMEL_IS_LOCAL_SETTINGS_CLASS(cls) \
	(G_TYPE_CHECK_CLASS_TYPE \
	((cls), CAMEL_TYPE_LOCAL_SETTINGS))
#define CAMEL_LOCAL_SETTINGS_GET_CLASS(obj) \
	(G_TYPE_INSTANCE_GET_CLASS \
	((obj), CAMEL_TYPE_LOCAL_SETTINGS, CamelLocalSettingsClass))

G_BEGIN_DECLS

/**
 * CamelLocalSettings:
 *
 * Contains only private data that should be read and manipulated using the
 * functions below.
 *
 * Since: 3.4
 **/
typedef struct _CamelLocalSettings CamelLocalSettings;
typedef struct _CamelLocalSettingsClass CamelLocalSettingsClass;
typedef struct _CamelLocalSettingsPrivate CamelLocalSettingsPrivate;

struct _CamelLocalSettings {
	/*< private >*/
	CamelStoreSettings parent;
	CamelLocalSettingsPrivate *priv;
};

struct _CamelLocalSettingsClass {
	/*< private >*/
	CamelStoreSettingsClass parent_class;

	/* Padding for future expansion */
	gpointer reserved[20];
};

GType		camel_local_settings_get_type	(void) G_GNUC_CONST;
const gchar *	camel_local_settings_get_path	(CamelLocalSettings *settings);
gchar *		camel_local_settings_dup_path	(CamelLocalSettings *settings);
void		camel_local_settings_set_path	(CamelLocalSettings *settings,
						 const gchar *path);
gboolean	camel_local_settings_get_filter_all
						(CamelLocalSettings *settings);
void		camel_local_settings_set_filter_all
						(CamelLocalSettings *settings,
						 gboolean filter_all);
gboolean	camel_local_settings_get_filter_junk
						(CamelLocalSettings *settings);
void		camel_local_settings_set_filter_junk
						(CamelLocalSettings *settings,
						 gboolean filter_junk);

G_END_DECLS

#endif /* CAMEL_LOCAL_SETTINGS_H */