4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>e-categories</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.1">
7
7
<link rel="start" href="index.html" title="Evolution API Reference: libedataserver, utility library">
8
8
<link rel="up" href="ch01.html" title="Evolution API Reference: libedataserver, utility library">
9
9
<link rel="prev" href="EAccountList.html" title="EAccountList">
10
10
<link rel="next" href="EComponentListener.html" title="EComponentListener">
11
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="chapter" href="ch01.html" title="Evolution API Reference: libedataserver, utility library">
14
14
<link rel="index" href="ix01.html" title="Index">
22
22
<th width="100%" align="center">Evolution API Reference: libedataserver, utility library</th>
23
23
<td><a accesskey="n" href="EComponentListener.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
25
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2560803" class="shortcut">Top</a>
25
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2606803" class="shortcut">Top</a>
27
<a href="#id2575656" class="shortcut">Description</a></nobr></td></tr>
27
<a href="#id2577699" class="shortcut">Description</a></nobr></td></tr>
29
29
<div class="refentry" lang="en">
30
30
<a name="libedataserver-e-categories"></a><div class="titlepage"></div>
31
31
<div class="refnamediv"><table width="100%"><tr>
34
<a name="id2560803"></a><span class="refentrytitle">e-categories</span>
34
<a name="id2606803"></a><span class="refentrytitle">e-categories</span>
36
36
<p>e-categories</p>
47
href="/opt/gnome/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
48
>GList</a>* <a href="libedataserver-e-categories.html#e-categories-get-list">e_categories_get_list</a> (void);
49
void <a href="libedataserver-e-categories.html#e-categories-add">e_categories_add</a> (const char *category,
46
GList* <a class="link" href="libedataserver-e-categories.html#e-categories-get-list">e_categories_get_list</a> (void);
47
void <a class="link" href="libedataserver-e-categories.html#e-categories-add">e_categories_add</a> (const char *category,
51
49
const char *icon_file,
53
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
54
>gboolean</a> searchable);
55
void <a href="libedataserver-e-categories.html#e-categories-remove">e_categories_remove</a> (const char *category);
57
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
58
>gboolean</a> <a href="libedataserver-e-categories.html#e-categories-exist">e_categories_exist</a> (const char *category);
59
const char* <a href="libedataserver-e-categories.html#e-categories-get-color-for">e_categories_get_color_for</a> (const char *category);
60
void <a href="libedataserver-e-categories.html#e-categories-set-color-for">e_categories_set_color_for</a> (const char *category,
51
void <a class="link" href="libedataserver-e-categories.html#e-categories-remove">e_categories_remove</a> (const char *category);
52
gboolean <a class="link" href="libedataserver-e-categories.html#e-categories-exist">e_categories_exist</a> (const char *category);
53
const char* <a class="link" href="libedataserver-e-categories.html#e-categories-get-color-for">e_categories_get_color_for</a> (const char *category);
54
void <a class="link" href="libedataserver-e-categories.html#e-categories-set-color-for">e_categories_set_color_for</a> (const char *category,
61
55
const char *color);
62
const char* <a href="libedataserver-e-categories.html#e-categories-get-icon-file-for">e_categories_get_icon_file_for</a> (const char *category);
63
void <a href="libedataserver-e-categories.html#e-categories-set-icon-file-for">e_categories_set_icon_file_for</a> (const char *category,
56
const char* <a class="link" href="libedataserver-e-categories.html#e-categories-get-icon-file-for">e_categories_get_icon_file_for</a> (const char *category);
57
void <a class="link" href="libedataserver-e-categories.html#e-categories-set-icon-file-for">e_categories_set_icon_file_for</a> (const char *category,
64
58
const char *icon_file);
66
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
67
>gboolean</a> <a href="libedataserver-e-categories.html#e-categories-is-searchable">e_categories_is_searchable</a> (const char *category);
59
gboolean <a class="link" href="libedataserver-e-categories.html#e-categories-is-searchable">e_categories_is_searchable</a> (const char *category);
70
62
<div class="refsect1" lang="en">
71
<a name="id2575656"></a><h2>Description</h2>
63
<a name="id2577699"></a><h2>Description</h2>
76
68
<div class="refsect1" lang="en">
77
<a name="id2575672"></a><h2>Details</h2>
69
<a name="id2577714"></a><h2>Details</h2>
78
70
<div class="refsect2" lang="en">
79
<a name="id2575683"></a><h3>
71
<a name="id2577725"></a><h3>
80
72
<a name="e-categories-get-list"></a>e_categories_get_list ()</h3>
81
<a class="indexterm" name="id2575694"></a><pre class="programlisting"><a
82
href="/opt/gnome/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
83
>GList</a>* e_categories_get_list (void);</pre>
73
<a class="indexterm" name="id2577736"></a><pre class="programlisting">GList* e_categories_get_list (void);</pre>
85
75
Returns a sorted list of all the category names currently configured.</p>
89
79
<div class="variablelist"><table border="0">
90
80
<col align="left" valign="top">
92
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
82
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
93
83
<td> a sorted GList containing the names of the categories. The
94
84
list should be freed using g_list_free, but the names of the categories
95
85
should not be touched at all, they are internal strings.
101
91
<div class="refsect2" lang="en">
102
<a name="id2575738"></a><h3>
92
<a name="id2577780"></a><h3>
103
93
<a name="e-categories-add"></a>e_categories_add ()</h3>
104
<a class="indexterm" name="id2575750"></a><pre class="programlisting">void e_categories_add (const char *category,
94
<a class="indexterm" name="id2577793"></a><pre class="programlisting">void e_categories_add (const char *category,
105
95
const char *color,
106
96
const char *icon_file,
108
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
109
>gboolean</a> searchable);</pre>
97
gboolean searchable);</pre>
111
99
Adds a new category, with its corresponding color and icon, to the
112
100
configuration database.</p>
117
105
<col align="left" valign="top">
120
<td><span class="term"><em class="parameter"><code>category</code></em> :</span></td>
108
<td><p><span class="term"><em class="parameter"><code>category</code></em> :</span></p></td>
121
109
<td> name of category to add.
125
<td><span class="term"><em class="parameter"><code>color</code></em> :</span></td>
113
<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td>
126
114
<td> associated color.
130
<td><span class="term"><em class="parameter"><code>icon_file</code></em> :</span></td>
118
<td><p><span class="term"><em class="parameter"><code>icon_file</code></em> :</span></p></td>
131
119
<td> full path of the icon associated to the category.
135
<td><span class="term"><em class="parameter"><code>searchable</code></em> :</span></td>
123
<td><p><span class="term"><em class="parameter"><code>searchable</code></em> :</span></p></td>
136
124
<td> whether the category can be used for searching in the GUI.
143
131
<div class="refsect2" lang="en">
144
<a name="id2579163"></a><h3>
132
<a name="id2582040"></a><h3>
145
133
<a name="e-categories-remove"></a>e_categories_remove ()</h3>
146
<a class="indexterm" name="id2579175"></a><pre class="programlisting">void e_categories_remove (const char *category);</pre>
134
<a class="indexterm" name="id2582052"></a><pre class="programlisting">void e_categories_remove (const char *category);</pre>
148
136
Removes the given category from the configuration.</p>
162
150
<div class="refsect2" lang="en">
163
<a name="id2579225"></a><h3>
151
<a name="id2582102"></a><h3>
164
152
<a name="e-categories-exist"></a>e_categories_exist ()</h3>
165
<a class="indexterm" name="id2579238"></a><pre class="programlisting"><a
166
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
167
>gboolean</a> e_categories_exist (const char *category);</pre>
153
<a class="indexterm" name="id2582115"></a><pre class="programlisting">gboolean e_categories_exist (const char *category);</pre>
169
155
Checks whether the given category is available in the configuration.</p>
174
160
<col align="left" valign="top">
177
<td><span class="term"><em class="parameter"><code>category</code></em> :</span></td>
163
<td><p><span class="term"><em class="parameter"><code>category</code></em> :</span></p></td>
178
164
<td> category to be searched.
182
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
184
href="/opt/gnome/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
185
><code class="literal">TRUE</code></a> if the category is available, <a
186
href="/opt/gnome/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
187
><code class="literal">FALSE</code></a> otherwise.
168
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
169
<td> <code class="literal">TRUE</code> if the category is available, <code class="literal">FALSE</code> otherwise.
194
176
<div class="refsect2" lang="en">
195
<a name="id2579317"></a><h3>
177
<a name="id2582194"></a><h3>
196
178
<a name="e-categories-get-color-for"></a>e_categories_get_color_for ()</h3>
197
<a class="indexterm" name="id2579328"></a><pre class="programlisting">const char* e_categories_get_color_for (const char *category);</pre>
179
<a class="indexterm" name="id2582205"></a><pre class="programlisting">const char* e_categories_get_color_for (const char *category);</pre>
199
181
Gets the color associated with the given category.</p>
204
186
<col align="left" valign="top">
207
<td><span class="term"><em class="parameter"><code>category</code></em> :</span></td>
189
<td><p><span class="term"><em class="parameter"><code>category</code></em> :</span></p></td>
208
190
<td> category to retrieve the color for.
212
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
194
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
213
195
<td> a string representation of the color.
220
202
<div class="refsect2" lang="en">
221
<a name="id2568550"></a><h3>
203
<a name="id2583737"></a><h3>
222
204
<a name="e-categories-set-color-for"></a>e_categories_set_color_for ()</h3>
223
<a class="indexterm" name="id2568561"></a><pre class="programlisting">void e_categories_set_color_for (const char *category,
205
<a class="indexterm" name="id2583749"></a><pre class="programlisting">void e_categories_set_color_for (const char *category,
224
206
const char *color);</pre>
226
208
Sets the color associated with the given category.</p>
231
213
<col align="left" valign="top">
234
<td><span class="term"><em class="parameter"><code>category</code></em> :</span></td>
216
<td><p><span class="term"><em class="parameter"><code>category</code></em> :</span></p></td>
235
217
<td> category to set the color for.
239
<td><span class="term"><em class="parameter"><code>color</code></em> :</span></td>
221
<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td>
247
229
<div class="refsect2" lang="en">
248
<a name="id2568632"></a><h3>
230
<a name="id2583820"></a><h3>
249
231
<a name="e-categories-get-icon-file-for"></a>e_categories_get_icon_file_for ()</h3>
250
<a class="indexterm" name="id2568643"></a><pre class="programlisting">const char* e_categories_get_icon_file_for (const char *category);</pre>
232
<a class="indexterm" name="id2583831"></a><pre class="programlisting">const char* e_categories_get_icon_file_for (const char *category);</pre>
252
234
Gets the icon file associated with the given category.</p>
257
239
<col align="left" valign="top">
260
<td><span class="term"><em class="parameter"><code>category</code></em> :</span></td>
242
<td><p><span class="term"><em class="parameter"><code>category</code></em> :</span></p></td>
261
243
<td> category to retrieve the icon file for.
265
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
247
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
266
248
<td> a string representation of the color.
273
255
<div class="refsect2" lang="en">
274
<a name="id2568706"></a><h3>
256
<a name="id2583893"></a><h3>
275
257
<a name="e-categories-set-icon-file-for"></a>e_categories_set_icon_file_for ()</h3>
276
<a class="indexterm" name="id2568718"></a><pre class="programlisting">void e_categories_set_icon_file_for (const char *category,
258
<a class="indexterm" name="id2583906"></a><pre class="programlisting">void e_categories_set_icon_file_for (const char *category,
277
259
const char *icon_file);</pre>
279
261
Sets the icon file associated with the given category.</p>
284
266
<col align="left" valign="top">
287
<td><span class="term"><em class="parameter"><code>category</code></em> :</span></td>
269
<td><p><span class="term"><em class="parameter"><code>category</code></em> :</span></p></td>
288
270
<td> category to set the icon file for.
292
<td><span class="term"><em class="parameter"><code>icon_file</code></em> :</span></td>
274
<td><p><span class="term"><em class="parameter"><code>icon_file</code></em> :</span></p></td>
302
284
<div class="refsect2" lang="en">
303
<a name="id2592913"></a><h3>
285
<a name="id2619251"></a><h3>
304
286
<a name="e-categories-is-searchable"></a>e_categories_is_searchable ()</h3>
305
<a class="indexterm" name="id2592924"></a><pre class="programlisting"><a
306
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
307
>gboolean</a> e_categories_is_searchable (const char *category);</pre>
287
<a class="indexterm" name="id2619262"></a><pre class="programlisting">gboolean e_categories_is_searchable (const char *category);</pre>
309
289
Gets whether the given calendar is to be used for searches in the GUI.
313
href="/opt/gnome/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
314
><code class="literal">TRUE</code></a>% if the category is searchable, <a
315
href="/opt/gnome/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
316
><code class="literal">FALSE</code></a>% if not.</p>
292
Return value; <code class="literal">TRUE</code>% if the category is searchable, <code class="literal">FALSE</code>% if not.</p>