1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>Database: LibGlabels 3.0 Reference Manual</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="index.html" title="LibGlabels 3.0 Reference Manual">
8 <link rel="up" href="ch01.html" title="Basic LibGlabels Usage">
9 <link rel="prev" href="ch01.html" title="Basic LibGlabels Usage">
10 <link rel="next" href="libglabels-3.0-template.html" title="The lglTemplate Structure">
11 <meta name="generator" content="GTK-Doc V1.24 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16 <td width="100%" align="left" class="shortcuts">
17 <a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
18 <a href="#libglabels-3.0-db.description" class="shortcut">Description</a></span>
20 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
21 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
22 <td><a accesskey="p" href="ch01.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23 <td><a accesskey="n" href="libglabels-3.0-template.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
25 <div class="refentry">
26 <a name="libglabels-3.0-db"></a><div class="titlepage"></div>
27 <div class="refnamediv"><table width="100%"><tr>
29 <h2><span class="refentrytitle"><a name="libglabels-3.0-db.top_of_page"></a>Database</span></h2>
30 <p>Database — Database of pre-defined templates</p>
32 <td class="gallery_image" valign="top" align="right"></td>
34 <div class="refsect1">
35 <a name="libglabels-3.0-db.functions"></a><h2>Functions</h2>
36 <div class="informaltable"><table width="100%" border="0">
38 <col width="150px" class="functions_return">
39 <col class="functions_name">
43 <td class="function_type">
44 <span class="returnvalue">void</span>
46 <td class="function_name">
47 <a class="link" href="libglabels-3.0-db.html#lgl-db-init" title="lgl_db_init ()">lgl_db_init</a> <span class="c_punctuation">()</span>
51 <td class="function_type">
52 <span class="returnvalue">void</span>
54 <td class="function_name">
55 <span class="c_punctuation">(</span><a class="link" href="libglabels-3.0-db.html#lglDbNotifyFunc" title="lglDbNotifyFunc ()">*lglDbNotifyFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
59 <td class="function_type">
60 <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gulong"><span class="returnvalue">gulong</span></a>
62 <td class="function_name">
63 <a class="link" href="libglabels-3.0-db.html#lgl-db-notify-add" title="lgl_db_notify_add ()">lgl_db_notify_add</a> <span class="c_punctuation">()</span>
67 <td class="function_type">
68 <span class="returnvalue">void</span>
70 <td class="function_name">
71 <a class="link" href="libglabels-3.0-db.html#lgl-db-notify-remove" title="lgl_db_notify_remove ()">lgl_db_notify_remove</a> <span class="c_punctuation">()</span>
75 <td class="function_type">
76 <a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
78 <td class="function_name">
79 <a class="link" href="libglabels-3.0-db.html#lgl-db-get-paper-id-list" title="lgl_db_get_paper_id_list ()">lgl_db_get_paper_id_list</a> <span class="c_punctuation">()</span>
83 <td class="function_type">
84 <span class="returnvalue">void</span>
86 <td class="function_name">
87 <a class="link" href="libglabels-3.0-db.html#lgl-db-free-paper-id-list" title="lgl_db_free_paper_id_list ()">lgl_db_free_paper_id_list</a> <span class="c_punctuation">()</span>
91 <td class="function_type">
92 <a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
94 <td class="function_name">
95 <a class="link" href="libglabels-3.0-db.html#lgl-db-get-paper-name-list" title="lgl_db_get_paper_name_list ()">lgl_db_get_paper_name_list</a> <span class="c_punctuation">()</span>
99 <td class="function_type">
100 <span class="returnvalue">void</span>
102 <td class="function_name">
103 <a class="link" href="libglabels-3.0-db.html#lgl-db-free-paper-name-list" title="lgl_db_free_paper_name_list ()">lgl_db_free_paper_name_list</a> <span class="c_punctuation">()</span>
107 <td class="function_type">
108 <a class="link" href="libglabels-3.0-paper.html#lglPaper" title="struct lglPaper"><span class="returnvalue">lglPaper</span></a> *
110 <td class="function_name">
111 <a class="link" href="libglabels-3.0-db.html#lgl-db-lookup-paper-from-id" title="lgl_db_lookup_paper_from_id ()">lgl_db_lookup_paper_from_id</a> <span class="c_punctuation">()</span>
115 <td class="function_type">
116 <a class="link" href="libglabels-3.0-paper.html#lglPaper" title="struct lglPaper"><span class="returnvalue">lglPaper</span></a> *
118 <td class="function_name">
119 <a class="link" href="libglabels-3.0-db.html#lgl-db-lookup-paper-from-name" title="lgl_db_lookup_paper_from_name ()">lgl_db_lookup_paper_from_name</a> <span class="c_punctuation">()</span>
123 <td class="function_type">
124 <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
126 <td class="function_name">
127 <a class="link" href="libglabels-3.0-db.html#lgl-db-lookup-paper-id-from-name" title="lgl_db_lookup_paper_id_from_name ()">lgl_db_lookup_paper_id_from_name</a> <span class="c_punctuation">()</span>
131 <td class="function_type">
132 <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
134 <td class="function_name">
135 <a class="link" href="libglabels-3.0-db.html#lgl-db-lookup-paper-name-from-id" title="lgl_db_lookup_paper_name_from_id ()">lgl_db_lookup_paper_name_from_id</a> <span class="c_punctuation">()</span>
139 <td class="function_type">
140 <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
142 <td class="function_name">
143 <a class="link" href="libglabels-3.0-db.html#lgl-db-is-paper-id-known" title="lgl_db_is_paper_id_known ()">lgl_db_is_paper_id_known</a> <span class="c_punctuation">()</span>
147 <td class="function_type">
148 <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
150 <td class="function_name">
151 <a class="link" href="libglabels-3.0-db.html#lgl-db-is-paper-id-other" title="lgl_db_is_paper_id_other ()">lgl_db_is_paper_id_other</a> <span class="c_punctuation">()</span>
155 <td class="function_type">
156 <a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
158 <td class="function_name">
159 <a class="link" href="libglabels-3.0-db.html#lgl-db-get-category-id-list" title="lgl_db_get_category_id_list ()">lgl_db_get_category_id_list</a> <span class="c_punctuation">()</span>
163 <td class="function_type">
164 <span class="returnvalue">void</span>
166 <td class="function_name">
167 <a class="link" href="libglabels-3.0-db.html#lgl-db-free-category-id-list" title="lgl_db_free_category_id_list ()">lgl_db_free_category_id_list</a> <span class="c_punctuation">()</span>
171 <td class="function_type">
172 <a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
174 <td class="function_name">
175 <a class="link" href="libglabels-3.0-db.html#lgl-db-get-category-name-list" title="lgl_db_get_category_name_list ()">lgl_db_get_category_name_list</a> <span class="c_punctuation">()</span>
179 <td class="function_type">
180 <span class="returnvalue">void</span>
182 <td class="function_name">
183 <a class="link" href="libglabels-3.0-db.html#lgl-db-free-category-name-list" title="lgl_db_free_category_name_list ()">lgl_db_free_category_name_list</a> <span class="c_punctuation">()</span>
187 <td class="function_type">
188 <a class="link" href="libglabels-3.0-category.html#lglCategory" title="struct lglCategory"><span class="returnvalue">lglCategory</span></a> *
190 <td class="function_name">
191 <a class="link" href="libglabels-3.0-db.html#lgl-db-lookup-category-from-id" title="lgl_db_lookup_category_from_id ()">lgl_db_lookup_category_from_id</a> <span class="c_punctuation">()</span>
195 <td class="function_type">
196 <a class="link" href="libglabels-3.0-category.html#lglCategory" title="struct lglCategory"><span class="returnvalue">lglCategory</span></a> *
198 <td class="function_name">
199 <a class="link" href="libglabels-3.0-db.html#lgl-db-lookup-category-from-name" title="lgl_db_lookup_category_from_name ()">lgl_db_lookup_category_from_name</a> <span class="c_punctuation">()</span>
203 <td class="function_type">
204 <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
206 <td class="function_name">
207 <a class="link" href="libglabels-3.0-db.html#lgl-db-lookup-category-id-from-name" title="lgl_db_lookup_category_id_from_name ()">lgl_db_lookup_category_id_from_name</a> <span class="c_punctuation">()</span>
211 <td class="function_type">
212 <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
214 <td class="function_name">
215 <a class="link" href="libglabels-3.0-db.html#lgl-db-lookup-category-name-from-id" title="lgl_db_lookup_category_name_from_id ()">lgl_db_lookup_category_name_from_id</a> <span class="c_punctuation">()</span>
219 <td class="function_type">
220 <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
222 <td class="function_name">
223 <a class="link" href="libglabels-3.0-db.html#lgl-db-is-category-id-known" title="lgl_db_is_category_id_known ()">lgl_db_is_category_id_known</a> <span class="c_punctuation">()</span>
227 <td class="function_type">
228 <a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
230 <td class="function_name">
231 <a class="link" href="libglabels-3.0-db.html#lgl-db-get-brand-list" title="lgl_db_get_brand_list ()">lgl_db_get_brand_list</a> <span class="c_punctuation">()</span>
235 <td class="function_type">
236 <span class="returnvalue">void</span>
238 <td class="function_name">
239 <a class="link" href="libglabels-3.0-db.html#lgl-db-free-brand-list" title="lgl_db_free_brand_list ()">lgl_db_free_brand_list</a> <span class="c_punctuation">()</span>
243 <td class="function_type">
244 <a class="link" href="libglabels-3.0-db.html#lglDbRegStatus" title="enum lglDbRegStatus"><span class="returnvalue">lglDbRegStatus</span></a>
246 <td class="function_name">
247 <a class="link" href="libglabels-3.0-db.html#lgl-db-register-template" title="lgl_db_register_template ()">lgl_db_register_template</a> <span class="c_punctuation">()</span>
251 <td class="function_type">
252 <a class="link" href="libglabels-3.0-db.html#lglDbDeleteStatus" title="enum lglDbDeleteStatus"><span class="returnvalue">lglDbDeleteStatus</span></a>
254 <td class="function_name">
255 <a class="link" href="libglabels-3.0-db.html#lgl-db-delete-template-by-brand-part" title="lgl_db_delete_template_by_brand_part ()">lgl_db_delete_template_by_brand_part</a> <span class="c_punctuation">()</span>
259 <td class="function_type">
260 <a class="link" href="libglabels-3.0-db.html#lglDbDeleteStatus" title="enum lglDbDeleteStatus"><span class="returnvalue">lglDbDeleteStatus</span></a>
262 <td class="function_name">
263 <a class="link" href="libglabels-3.0-db.html#lgl-db-delete-template-by-name" title="lgl_db_delete_template_by_name ()">lgl_db_delete_template_by_name</a> <span class="c_punctuation">()</span>
267 <td class="function_type">
268 <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
270 <td class="function_name">
271 <a class="link" href="libglabels-3.0-db.html#lgl-db-does-template-exist" title="lgl_db_does_template_exist ()">lgl_db_does_template_exist</a> <span class="c_punctuation">()</span>
275 <td class="function_type">
276 <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
278 <td class="function_name">
279 <a class="link" href="libglabels-3.0-db.html#lgl-db-does-template-name-exist" title="lgl_db_does_template_name_exist ()">lgl_db_does_template_name_exist</a> <span class="c_punctuation">()</span>
283 <td class="function_type">
284 <a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
286 <td class="function_name">
287 <a class="link" href="libglabels-3.0-db.html#lgl-db-get-template-name-list-all" title="lgl_db_get_template_name_list_all ()">lgl_db_get_template_name_list_all</a> <span class="c_punctuation">()</span>
291 <td class="function_type">
292 <a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
294 <td class="function_name">
295 <a class="link" href="libglabels-3.0-db.html#lgl-db-get-similar-template-name-list" title="lgl_db_get_similar_template_name_list ()">lgl_db_get_similar_template_name_list</a> <span class="c_punctuation">()</span>
299 <td class="function_type">
300 <span class="returnvalue">void</span>
302 <td class="function_name">
303 <a class="link" href="libglabels-3.0-db.html#lgl-db-free-template-name-list" title="lgl_db_free_template_name_list ()">lgl_db_free_template_name_list</a> <span class="c_punctuation">()</span>
307 <td class="function_type">
308 <a class="link" href="libglabels-3.0-template.html#lglTemplate" title="struct lglTemplate"><span class="returnvalue">lglTemplate</span></a> *
310 <td class="function_name">
311 <a class="link" href="libglabels-3.0-db.html#lgl-db-lookup-template-from-name" title="lgl_db_lookup_template_from_name ()">lgl_db_lookup_template_from_name</a> <span class="c_punctuation">()</span>
315 <td class="function_type">
316 <a class="link" href="libglabels-3.0-template.html#lglTemplate" title="struct lglTemplate"><span class="returnvalue">lglTemplate</span></a> *
318 <td class="function_name">
319 <a class="link" href="libglabels-3.0-db.html#lgl-db-lookup-template-from-brand-part" title="lgl_db_lookup_template_from_brand_part ()">lgl_db_lookup_template_from_brand_part</a> <span class="c_punctuation">()</span>
323 <td class="function_type">
324 <a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
326 <td class="function_name">
327 <a class="link" href="libglabels-3.0-db.html#lgl-db-get-vendor-name-list" title="lgl_db_get_vendor_name_list ()">lgl_db_get_vendor_name_list</a> <span class="c_punctuation">()</span>
331 <td class="function_type">
332 <span class="returnvalue">void</span>
334 <td class="function_name">
335 <a class="link" href="libglabels-3.0-db.html#lgl-db-free-vendor-name-list" title="lgl_db_free_vendor_name_list ()">lgl_db_free_vendor_name_list</a> <span class="c_punctuation">()</span>
339 <td class="function_type">
340 <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
342 <td class="function_name">
343 <a class="link" href="libglabels-3.0-db.html#lgl-db-is-vendor-name-known" title="lgl_db_is_vendor_name_known ()">lgl_db_is_vendor_name_known</a> <span class="c_punctuation">()</span>
347 <td class="function_type">
348 <a class="link" href="libglabels-3.0-vendor.html#lglVendor" title="struct lglVendor"><span class="returnvalue">lglVendor</span></a> *
350 <td class="function_name">
351 <a class="link" href="libglabels-3.0-db.html#lgl-db-lookup-vendor-from-name" title="lgl_db_lookup_vendor_from_name ()">lgl_db_lookup_vendor_from_name</a> <span class="c_punctuation">()</span>
355 <td class="function_type">
356 <span class="returnvalue">void</span>
358 <td class="function_name">
359 <a class="link" href="libglabels-3.0-db.html#lgl-db-print-known-papers" title="lgl_db_print_known_papers ()">lgl_db_print_known_papers</a> <span class="c_punctuation">()</span>
363 <td class="function_type">
364 <span class="returnvalue">void</span>
366 <td class="function_name">
367 <a class="link" href="libglabels-3.0-db.html#lgl-db-print-known-categories" title="lgl_db_print_known_categories ()">lgl_db_print_known_categories</a> <span class="c_punctuation">()</span>
371 <td class="function_type">
372 <span class="returnvalue">void</span>
374 <td class="function_name">
375 <a class="link" href="libglabels-3.0-db.html#lgl-db-print-known-templates" title="lgl_db_print_known_templates ()">lgl_db_print_known_templates</a> <span class="c_punctuation">()</span>
379 <td class="function_type">
380 <span class="returnvalue">void</span>
382 <td class="function_name">
383 <a class="link" href="libglabels-3.0-db.html#lgl-db-print-known-vendors" title="lgl_db_print_known_vendors ()">lgl_db_print_known_vendors</a> <span class="c_punctuation">()</span>
389 <div class="refsect1">
390 <a name="libglabels-3.0-db.other"></a><h2>Types and Values</h2>
391 <div class="informaltable"><table width="100%" border="0">
393 <col width="150px" class="name">
394 <col class="description">
398 <td class="datatype_keyword">enum</td>
399 <td class="function_name"><a class="link" href="libglabels-3.0-db.html#lglDbRegStatus" title="enum lglDbRegStatus">lglDbRegStatus</a></td>
402 <td class="datatype_keyword">enum</td>
403 <td class="function_name"><a class="link" href="libglabels-3.0-db.html#lglDbDeleteStatus" title="enum lglDbDeleteStatus">lglDbDeleteStatus</a></td>
408 <div class="refsect1">
409 <a name="libglabels-3.0-db.includes"></a><h2>Includes</h2>
410 <pre class="synopsis">#include <libglabels/lgl-db.h>
413 <div class="refsect1">
414 <a name="libglabels-3.0-db.description"></a><h2>Description</h2>
416 This section describes a set of functions to locate and add templates and related information in
417 the LibGlabels template database.
420 <div class="refsect1">
421 <a name="libglabels-3.0-db.functions_details"></a><h2>Functions</h2>
422 <div class="refsect2">
423 <a name="lgl-db-init"></a><h3>lgl_db_init ()</h3>
424 <pre class="programlisting"><span class="returnvalue">void</span>
425 lgl_db_init (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
426 <p>Initialize all libglabels subsystems. It is not necessary for an application to call
427 <a class="link" href="libglabels-3.0-db.html#lgl-db-init" title="lgl_db_init ()"><code class="function">lgl_db_init()</code></a>, because libglabels will initialize on demand. An application programmer may
428 choose to call <a class="link" href="libglabels-3.0-db.html#lgl-db-init" title="lgl_db_init ()"><code class="function">lgl_db_init()</code></a> at startup to minimize the impact of the first libglabels call
429 on GUI response time.</p>
430 <p>This function initializes its paper definitions, category definitions, vendor definitions,
431 and its template database. It will search both system and user template directories to locate
435 <div class="refsect2">
436 <a name="lglDbNotifyFunc"></a><h3>lglDbNotifyFunc ()</h3>
437 <pre class="programlisting"><span class="returnvalue">void</span>
438 <span class="c_punctuation">(</span>*lglDbNotifyFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
440 Defines the type of notify callback function to be called when database changes.
442 <div class="refsect3">
443 <a name="id-1.2.2.7.3.5"></a><h4>Parameters</h4>
444 <div class="informaltable"><table width="100%" border="0">
446 <col width="150px" class="parameters_name">
447 <col class="parameters_description">
448 <col width="200px" class="parameters_annotations">
451 <td class="parameter_name"><p>user_data</p></td>
452 <td class="parameter_description"><p>Pointer to user data that is passed to the notify function.</p></td>
453 <td class="parameter_annotations"> </td>
459 <div class="refsect2">
460 <a name="lgl-db-notify-add"></a><h3>lgl_db_notify_add ()</h3>
461 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gulong"><span class="returnvalue">gulong</span></a>
462 lgl_db_notify_add (<em class="parameter"><code><a class="link" href="libglabels-3.0-db.html#lglDbNotifyFunc" title="lglDbNotifyFunc ()"><span class="type">lglDbNotifyFunc</span></a> func</code></em>,
463 <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
464 <p>Register a notification callback function to be called when the database changes.</p>
465 <div class="refsect3">
466 <a name="id-1.2.2.7.4.5"></a><h4>Parameters</h4>
467 <div class="informaltable"><table width="100%" border="0">
469 <col width="150px" class="parameters_name">
470 <col class="parameters_description">
471 <col width="200px" class="parameters_annotations">
475 <td class="parameter_name"><p>func</p></td>
476 <td class="parameter_description"><p>Callback function to be called when database changes.</p></td>
477 <td class="parameter_annotations"> </td>
480 <td class="parameter_name"><p>user_data</p></td>
481 <td class="parameter_description"><p>Passback user data to supply to callback function.</p></td>
482 <td class="parameter_annotations"> </td>
487 <div class="refsect3">
488 <a name="id-1.2.2.7.4.6"></a><h4>Returns</h4>
489 <p> an ID for this notification registration.</p>
493 <div class="refsect2">
494 <a name="lgl-db-notify-remove"></a><h3>lgl_db_notify_remove ()</h3>
495 <pre class="programlisting"><span class="returnvalue">void</span>
496 lgl_db_notify_remove (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> id</code></em>);</pre>
497 <p>Cancel a previous registration a notification callback function.</p>
498 <div class="refsect3">
499 <a name="id-1.2.2.7.5.5"></a><h4>Parameters</h4>
500 <div class="informaltable"><table width="100%" border="0">
502 <col width="150px" class="parameters_name">
503 <col class="parameters_description">
504 <col width="200px" class="parameters_annotations">
507 <td class="parameter_name"><p>id</p></td>
508 <td class="parameter_description"><p>ID of notification registration to cancel (see <a class="link" href="libglabels-3.0-db.html#lgl-db-notify-add" title="lgl_db_notify_add ()"><code class="function">lgl_db_notify_add()</code></a>).</p></td>
509 <td class="parameter_annotations"> </td>
515 <div class="refsect2">
516 <a name="lgl-db-get-paper-id-list"></a><h3>lgl_db_get_paper_id_list ()</h3>
517 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
518 lgl_db_get_paper_id_list (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
519 <p>Get a list of all paper ids known to libglabels.</p>
520 <div class="refsect3">
521 <a name="id-1.2.2.7.6.5"></a><h4>Returns</h4>
522 <p> a list of paper ids.</p>
526 <div class="refsect2">
527 <a name="lgl-db-free-paper-id-list"></a><h3>lgl_db_free_paper_id_list ()</h3>
528 <pre class="programlisting"><span class="returnvalue">void</span>
529 lgl_db_free_paper_id_list (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *ids</code></em>);</pre>
530 <p>Free up all storage associated with an id list obtained with
531 <a class="link" href="libglabels-3.0-db.html#lgl-db-get-paper-id-list" title="lgl_db_get_paper_id_list ()"><code class="function">lgl_db_get_paper_id_list()</code></a>.</p>
532 <div class="refsect3">
533 <a name="id-1.2.2.7.7.5"></a><h4>Parameters</h4>
534 <div class="informaltable"><table width="100%" border="0">
536 <col width="150px" class="parameters_name">
537 <col class="parameters_description">
538 <col width="200px" class="parameters_annotations">
541 <td class="parameter_name"><p>ids</p></td>
542 <td class="parameter_description"><p>List of id strings to be freed.</p></td>
543 <td class="parameter_annotations"> </td>
549 <div class="refsect2">
550 <a name="lgl-db-get-paper-name-list"></a><h3>lgl_db_get_paper_name_list ()</h3>
551 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
552 lgl_db_get_paper_name_list (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
553 <p>Get a list of all localized paper names known to libglabels.</p>
554 <div class="refsect3">
555 <a name="id-1.2.2.7.8.5"></a><h4>Returns</h4>
556 <p> a list of localized paper names.</p>
560 <div class="refsect2">
561 <a name="lgl-db-free-paper-name-list"></a><h3>lgl_db_free_paper_name_list ()</h3>
562 <pre class="programlisting"><span class="returnvalue">void</span>
563 lgl_db_free_paper_name_list (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *names</code></em>);</pre>
564 <p>Free up all storage associated with a name list obtained with
565 <a class="link" href="libglabels-3.0-db.html#lgl-db-get-paper-name-list" title="lgl_db_get_paper_name_list ()"><code class="function">lgl_db_get_paper_name_list()</code></a>.</p>
566 <div class="refsect3">
567 <a name="id-1.2.2.7.9.5"></a><h4>Parameters</h4>
568 <div class="informaltable"><table width="100%" border="0">
570 <col width="150px" class="parameters_name">
571 <col class="parameters_description">
572 <col width="200px" class="parameters_annotations">
575 <td class="parameter_name"><p>names</p></td>
576 <td class="parameter_description"><p>List of localized paper name strings to be freed.</p></td>
577 <td class="parameter_annotations"> </td>
583 <div class="refsect2">
584 <a name="lgl-db-lookup-paper-from-id"></a><h3>lgl_db_lookup_paper_from_id ()</h3>
585 <pre class="programlisting"><a class="link" href="libglabels-3.0-paper.html#lglPaper" title="struct lglPaper"><span class="returnvalue">lglPaper</span></a> *
586 lgl_db_lookup_paper_from_id (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
587 <p>Lookup paper definition from id string.</p>
588 <div class="refsect3">
589 <a name="id-1.2.2.7.10.5"></a><h4>Parameters</h4>
590 <div class="informaltable"><table width="100%" border="0">
592 <col width="150px" class="parameters_name">
593 <col class="parameters_description">
594 <col width="200px" class="parameters_annotations">
597 <td class="parameter_name"><p>id</p></td>
598 <td class="parameter_description"><p>paper id string</p></td>
599 <td class="parameter_annotations"> </td>
603 <div class="refsect3">
604 <a name="id-1.2.2.7.10.6"></a><h4>Returns</h4>
605 <p> pointer to a newly allocated <a class="link" href="libglabels-3.0-paper.html#lglPaper" title="struct lglPaper"><span class="type">lglPaper</span></a> structure.</p>
609 <div class="refsect2">
610 <a name="lgl-db-lookup-paper-from-name"></a><h3>lgl_db_lookup_paper_from_name ()</h3>
611 <pre class="programlisting"><a class="link" href="libglabels-3.0-paper.html#lglPaper" title="struct lglPaper"><span class="returnvalue">lglPaper</span></a> *
612 lgl_db_lookup_paper_from_name (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
613 <p>Lookup paper definition from localized paper name string.</p>
614 <div class="refsect3">
615 <a name="id-1.2.2.7.11.5"></a><h4>Parameters</h4>
616 <div class="informaltable"><table width="100%" border="0">
618 <col width="150px" class="parameters_name">
619 <col class="parameters_description">
620 <col width="200px" class="parameters_annotations">
623 <td class="parameter_name"><p>name</p></td>
624 <td class="parameter_description"><p>localized paper name string</p></td>
625 <td class="parameter_annotations"> </td>
629 <div class="refsect3">
630 <a name="id-1.2.2.7.11.6"></a><h4>Returns</h4>
631 <p> pointer to a newly allocated <a class="link" href="libglabels-3.0-paper.html#lglPaper" title="struct lglPaper"><span class="type">lglPaper</span></a> structure.</p>
635 <div class="refsect2">
636 <a name="lgl-db-lookup-paper-id-from-name"></a><h3>lgl_db_lookup_paper_id_from_name ()</h3>
637 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
638 lgl_db_lookup_paper_id_from_name (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
639 <p>Lookup paper name string from localized paper name string.</p>
640 <div class="refsect3">
641 <a name="id-1.2.2.7.12.5"></a><h4>Parameters</h4>
642 <div class="informaltable"><table width="100%" border="0">
644 <col width="150px" class="parameters_name">
645 <col class="parameters_description">
646 <col width="200px" class="parameters_annotations">
649 <td class="parameter_name"><p>name</p></td>
650 <td class="parameter_description"><p>localized paper name stringp</p></td>
651 <td class="parameter_annotations"> </td>
655 <div class="refsect3">
656 <a name="id-1.2.2.7.12.6"></a><h4>Returns</h4>
657 <p> pointer to a newly allocated id string.</p>
661 <div class="refsect2">
662 <a name="lgl-db-lookup-paper-name-from-id"></a><h3>lgl_db_lookup_paper_name_from_id ()</h3>
663 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
664 lgl_db_lookup_paper_name_from_id (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
665 <p>Lookup localized paper name string from paper id string.</p>
666 <div class="refsect3">
667 <a name="id-1.2.2.7.13.5"></a><h4>Parameters</h4>
668 <div class="informaltable"><table width="100%" border="0">
670 <col width="150px" class="parameters_name">
671 <col class="parameters_description">
672 <col width="200px" class="parameters_annotations">
675 <td class="parameter_name"><p>id</p></td>
676 <td class="parameter_description"><p>paper id string</p></td>
677 <td class="parameter_annotations"> </td>
681 <div class="refsect3">
682 <a name="id-1.2.2.7.13.6"></a><h4>Returns</h4>
683 <p> pointer to a newly allocated localized paper name string.</p>
687 <div class="refsect2">
688 <a name="lgl-db-is-paper-id-known"></a><h3>lgl_db_is_paper_id_known ()</h3>
689 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
690 lgl_db_is_paper_id_known (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
691 <p>Determine if given paper id is known to libglabels.</p>
692 <div class="refsect3">
693 <a name="id-1.2.2.7.14.5"></a><h4>Parameters</h4>
694 <div class="informaltable"><table width="100%" border="0">
696 <col width="150px" class="parameters_name">
697 <col class="parameters_description">
698 <col width="200px" class="parameters_annotations">
701 <td class="parameter_name"><p>id</p></td>
702 <td class="parameter_description"><p>paper id to test</p></td>
703 <td class="parameter_annotations"> </td>
707 <div class="refsect3">
708 <a name="id-1.2.2.7.14.6"></a><h4>Returns</h4>
709 <p> TRUE if id is known, otherwise FALSE.</p>
713 <div class="refsect2">
714 <a name="lgl-db-is-paper-id-other"></a><h3>lgl_db_is_paper_id_other ()</h3>
715 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
716 lgl_db_is_paper_id_other (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
717 <p>Determine if given paper id is the special id "Other."</p>
718 <div class="refsect3">
719 <a name="id-1.2.2.7.15.5"></a><h4>Parameters</h4>
720 <div class="informaltable"><table width="100%" border="0">
722 <col width="150px" class="parameters_name">
723 <col class="parameters_description">
724 <col width="200px" class="parameters_annotations">
727 <td class="parameter_name"><p>id</p></td>
728 <td class="parameter_description"><p>paper id to test</p></td>
729 <td class="parameter_annotations"> </td>
733 <div class="refsect3">
734 <a name="id-1.2.2.7.15.6"></a><h4>Returns</h4>
735 <p> TRUE if id is "Other", otherwise FALSE.</p>
739 <div class="refsect2">
740 <a name="lgl-db-get-category-id-list"></a><h3>lgl_db_get_category_id_list ()</h3>
741 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
742 lgl_db_get_category_id_list (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
743 <p>Get a list of all category ids known to libglabels.</p>
744 <div class="refsect3">
745 <a name="id-1.2.2.7.16.5"></a><h4>Returns</h4>
746 <p> a list of category ids.</p>
750 <div class="refsect2">
751 <a name="lgl-db-free-category-id-list"></a><h3>lgl_db_free_category_id_list ()</h3>
752 <pre class="programlisting"><span class="returnvalue">void</span>
753 lgl_db_free_category_id_list (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *ids</code></em>);</pre>
754 <p>Free up all storage associated with an id list obtained with
755 <a class="link" href="libglabels-3.0-db.html#lgl-db-get-category-id-list" title="lgl_db_get_category_id_list ()"><code class="function">lgl_db_get_category_id_list()</code></a>.</p>
756 <div class="refsect3">
757 <a name="id-1.2.2.7.17.5"></a><h4>Parameters</h4>
758 <div class="informaltable"><table width="100%" border="0">
760 <col width="150px" class="parameters_name">
761 <col class="parameters_description">
762 <col width="200px" class="parameters_annotations">
765 <td class="parameter_name"><p>ids</p></td>
766 <td class="parameter_description"><p>List of id strings to be freed.</p></td>
767 <td class="parameter_annotations"> </td>
773 <div class="refsect2">
774 <a name="lgl-db-get-category-name-list"></a><h3>lgl_db_get_category_name_list ()</h3>
775 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
776 lgl_db_get_category_name_list (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
777 <p>Get a list of all localized category names known to libglabels.</p>
778 <div class="refsect3">
779 <a name="id-1.2.2.7.18.5"></a><h4>Returns</h4>
780 <p> a list of localized category names.</p>
784 <div class="refsect2">
785 <a name="lgl-db-free-category-name-list"></a><h3>lgl_db_free_category_name_list ()</h3>
786 <pre class="programlisting"><span class="returnvalue">void</span>
787 lgl_db_free_category_name_list (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *names</code></em>);</pre>
788 <p>Free up all storage associated with a name list obtained with
789 <a class="link" href="libglabels-3.0-db.html#lgl-db-get-category-name-list" title="lgl_db_get_category_name_list ()"><code class="function">lgl_db_get_category_name_list()</code></a>.</p>
790 <div class="refsect3">
791 <a name="id-1.2.2.7.19.5"></a><h4>Parameters</h4>
792 <div class="informaltable"><table width="100%" border="0">
794 <col width="150px" class="parameters_name">
795 <col class="parameters_description">
796 <col width="200px" class="parameters_annotations">
799 <td class="parameter_name"><p>names</p></td>
800 <td class="parameter_description"><p>List of localized category name strings to be freed.</p></td>
801 <td class="parameter_annotations"> </td>
807 <div class="refsect2">
808 <a name="lgl-db-lookup-category-from-id"></a><h3>lgl_db_lookup_category_from_id ()</h3>
809 <pre class="programlisting"><a class="link" href="libglabels-3.0-category.html#lglCategory" title="struct lglCategory"><span class="returnvalue">lglCategory</span></a> *
810 lgl_db_lookup_category_from_id (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
811 <p>Lookup category definition from id string.</p>
812 <div class="refsect3">
813 <a name="id-1.2.2.7.20.5"></a><h4>Parameters</h4>
814 <div class="informaltable"><table width="100%" border="0">
816 <col width="150px" class="parameters_name">
817 <col class="parameters_description">
818 <col width="200px" class="parameters_annotations">
821 <td class="parameter_name"><p>id</p></td>
822 <td class="parameter_description"><p>category id string</p></td>
823 <td class="parameter_annotations"> </td>
827 <div class="refsect3">
828 <a name="id-1.2.2.7.20.6"></a><h4>Returns</h4>
829 <p> pointer to a newly allocated <a class="link" href="libglabels-3.0-category.html#lglCategory" title="struct lglCategory"><span class="type">lglCategory</span></a> structure.</p>
833 <div class="refsect2">
834 <a name="lgl-db-lookup-category-from-name"></a><h3>lgl_db_lookup_category_from_name ()</h3>
835 <pre class="programlisting"><a class="link" href="libglabels-3.0-category.html#lglCategory" title="struct lglCategory"><span class="returnvalue">lglCategory</span></a> *
836 lgl_db_lookup_category_from_name (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
837 <p>Lookup category definition from localized category name string.</p>
838 <div class="refsect3">
839 <a name="id-1.2.2.7.21.5"></a><h4>Parameters</h4>
840 <div class="informaltable"><table width="100%" border="0">
842 <col width="150px" class="parameters_name">
843 <col class="parameters_description">
844 <col width="200px" class="parameters_annotations">
847 <td class="parameter_name"><p>name</p></td>
848 <td class="parameter_description"><p>localized category name string</p></td>
849 <td class="parameter_annotations"> </td>
853 <div class="refsect3">
854 <a name="id-1.2.2.7.21.6"></a><h4>Returns</h4>
855 <p> pointer to a newly allocated <a class="link" href="libglabels-3.0-category.html#lglCategory" title="struct lglCategory"><span class="type">lglCategory</span></a> structure.</p>
859 <div class="refsect2">
860 <a name="lgl-db-lookup-category-id-from-name"></a><h3>lgl_db_lookup_category_id_from_name ()</h3>
861 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
862 lgl_db_lookup_category_id_from_name (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
863 <p>Lookup category name string from localized category name string.</p>
864 <div class="refsect3">
865 <a name="id-1.2.2.7.22.5"></a><h4>Parameters</h4>
866 <div class="informaltable"><table width="100%" border="0">
868 <col width="150px" class="parameters_name">
869 <col class="parameters_description">
870 <col width="200px" class="parameters_annotations">
873 <td class="parameter_name"><p>name</p></td>
874 <td class="parameter_description"><p>localized category name stringp</p></td>
875 <td class="parameter_annotations"> </td>
879 <div class="refsect3">
880 <a name="id-1.2.2.7.22.6"></a><h4>Returns</h4>
881 <p> pointer to a newly allocated id string.</p>
885 <div class="refsect2">
886 <a name="lgl-db-lookup-category-name-from-id"></a><h3>lgl_db_lookup_category_name_from_id ()</h3>
887 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
888 lgl_db_lookup_category_name_from_id (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
889 <p>Lookup localized category name string from category id string.</p>
890 <div class="refsect3">
891 <a name="id-1.2.2.7.23.5"></a><h4>Parameters</h4>
892 <div class="informaltable"><table width="100%" border="0">
894 <col width="150px" class="parameters_name">
895 <col class="parameters_description">
896 <col width="200px" class="parameters_annotations">
899 <td class="parameter_name"><p>id</p></td>
900 <td class="parameter_description"><p>category id string</p></td>
901 <td class="parameter_annotations"> </td>
905 <div class="refsect3">
906 <a name="id-1.2.2.7.23.6"></a><h4>Returns</h4>
907 <p> pointer to a newly allocated localized category name string.</p>
911 <div class="refsect2">
912 <a name="lgl-db-is-category-id-known"></a><h3>lgl_db_is_category_id_known ()</h3>
913 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
914 lgl_db_is_category_id_known (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
915 <p>Determine if given category id is known to libglabels.</p>
916 <div class="refsect3">
917 <a name="id-1.2.2.7.24.5"></a><h4>Parameters</h4>
918 <div class="informaltable"><table width="100%" border="0">
920 <col width="150px" class="parameters_name">
921 <col class="parameters_description">
922 <col width="200px" class="parameters_annotations">
925 <td class="parameter_name"><p>id</p></td>
926 <td class="parameter_description"><p>category id to test</p></td>
927 <td class="parameter_annotations"> </td>
931 <div class="refsect3">
932 <a name="id-1.2.2.7.24.6"></a><h4>Returns</h4>
933 <p> TRUE if id is known, otherwise FALSE.</p>
937 <div class="refsect2">
938 <a name="lgl-db-get-brand-list"></a><h3>lgl_db_get_brand_list ()</h3>
939 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
940 lgl_db_get_brand_list (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *paper_id</code></em>,
941 <em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *category_id</code></em>);</pre>
942 <p>Get a list of all valid brands of templates in the template database.
943 Results can be filtered by page size and/or template category. A list of valid page
944 sizes can be obtained using <a class="link" href="libglabels-3.0-db.html#lgl-db-get-paper-id-list" title="lgl_db_get_paper_id_list ()"><code class="function">lgl_db_get_paper_id_list()</code></a>. A list of valid template
945 categories can be obtained using <a class="link" href="libglabels-3.0-db.html#lgl-db-get-category-id-list" title="lgl_db_get_category_id_list ()"><code class="function">lgl_db_get_category_id_list()</code></a>.</p>
946 <div class="refsect3">
947 <a name="id-1.2.2.7.25.5"></a><h4>Parameters</h4>
948 <div class="informaltable"><table width="100%" border="0">
950 <col width="150px" class="parameters_name">
951 <col class="parameters_description">
952 <col width="200px" class="parameters_annotations">
956 <td class="parameter_name"><p>paper_id</p></td>
957 <td class="parameter_description"><p>If non NULL, limit results to given page size.</p></td>
958 <td class="parameter_annotations"> </td>
961 <td class="parameter_name"><p>category_id</p></td>
962 <td class="parameter_description"><p>If non NULL, limit results to given template category.</p></td>
963 <td class="parameter_annotations"> </td>
968 <div class="refsect3">
969 <a name="id-1.2.2.7.25.6"></a><h4>Returns</h4>
970 <p> a list of brands</p>
974 <div class="refsect2">
975 <a name="lgl-db-free-brand-list"></a><h3>lgl_db_free_brand_list ()</h3>
976 <pre class="programlisting"><span class="returnvalue">void</span>
977 lgl_db_free_brand_list (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *brands</code></em>);</pre>
978 <p>Free up all storage associated with a list of template names obtained with
979 <a class="link" href="libglabels-3.0-db.html#lgl-db-get-brand-list" title="lgl_db_get_brand_list ()"><code class="function">lgl_db_get_brand_list()</code></a>.</p>
980 <div class="refsect3">
981 <a name="id-1.2.2.7.26.5"></a><h4>Parameters</h4>
982 <div class="informaltable"><table width="100%" border="0">
984 <col width="150px" class="parameters_name">
985 <col class="parameters_description">
986 <col width="200px" class="parameters_annotations">
989 <td class="parameter_name"><p>brands</p></td>
990 <td class="parameter_description"><p>List of template brand strings to be freed.</p></td>
991 <td class="parameter_annotations"> </td>
997 <div class="refsect2">
998 <a name="lgl-db-register-template"></a><h3>lgl_db_register_template ()</h3>
999 <pre class="programlisting"><a class="link" href="libglabels-3.0-db.html#lglDbRegStatus" title="enum lglDbRegStatus"><span class="returnvalue">lglDbRegStatus</span></a>
1000 lgl_db_register_template (<em class="parameter"><code>const <a class="link" href="libglabels-3.0-template.html#lglTemplate" title="struct lglTemplate"><span class="type">lglTemplate</span></a> *template</code></em>);</pre>
1001 <p>Register a template. This function adds a template to the template database.
1002 The template will be stored in an individual XML file in the user template directory.</p>
1003 <div class="refsect3">
1004 <a name="id-1.2.2.7.27.5"></a><h4>Parameters</h4>
1005 <div class="informaltable"><table width="100%" border="0">
1007 <col width="150px" class="parameters_name">
1008 <col class="parameters_description">
1009 <col width="200px" class="parameters_annotations">
1012 <td class="parameter_name"><p>template</p></td>
1013 <td class="parameter_description"><p>Pointer to a template structure to add to database.</p></td>
1014 <td class="parameter_annotations"> </td>
1018 <div class="refsect3">
1019 <a name="id-1.2.2.7.27.6"></a><h4>Returns</h4>
1020 <p> Status of registration attempt (<a class="link" href="libglabels-3.0-db.html#lglDbRegStatus" title="enum lglDbRegStatus"><span class="type">lglDbRegStatus</span></a>)</p>
1024 <div class="refsect2">
1025 <a name="lgl-db-delete-template-by-brand-part"></a><h3>lgl_db_delete_template_by_brand_part ()</h3>
1026 <pre class="programlisting"><a class="link" href="libglabels-3.0-db.html#lglDbDeleteStatus" title="enum lglDbDeleteStatus"><span class="returnvalue">lglDbDeleteStatus</span></a>
1027 lgl_db_delete_template_by_brand_part (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *brand</code></em>,
1028 <em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *part</code></em>);</pre>
1029 <p>Delete a user defined template. This function deletes a template from
1030 the template database. The individual XML file in the user template
1031 directory will also be removed.</p>
1032 <div class="refsect3">
1033 <a name="id-1.2.2.7.28.5"></a><h4>Parameters</h4>
1034 <div class="informaltable"><table width="100%" border="0">
1036 <col width="150px" class="parameters_name">
1037 <col class="parameters_description">
1038 <col width="200px" class="parameters_annotations">
1042 <td class="parameter_name"><p>brand</p></td>
1043 <td class="parameter_description"><p>Brand name or vendor of template to be deleted.</p></td>
1044 <td class="parameter_annotations"> </td>
1047 <td class="parameter_name"><p>part</p></td>
1048 <td class="parameter_description"><p>Part name or number of template to be deleted.</p></td>
1049 <td class="parameter_annotations"> </td>
1054 <div class="refsect3">
1055 <a name="id-1.2.2.7.28.6"></a><h4>Returns</h4>
1056 <p> Status of registration attempt (<a class="link" href="libglabels-3.0-db.html#lglDbDeleteStatus" title="enum lglDbDeleteStatus"><span class="type">lglDbDeleteStatus</span></a>)</p>
1060 <div class="refsect2">
1061 <a name="lgl-db-delete-template-by-name"></a><h3>lgl_db_delete_template_by_name ()</h3>
1062 <pre class="programlisting"><a class="link" href="libglabels-3.0-db.html#lglDbDeleteStatus" title="enum lglDbDeleteStatus"><span class="returnvalue">lglDbDeleteStatus</span></a>
1063 lgl_db_delete_template_by_name (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
1064 <p>Delete a user defined template. This function deletes a template from
1065 the template database. The individual XML file in the user template
1066 directory will also be removed.</p>
1067 <div class="refsect3">
1068 <a name="id-1.2.2.7.29.5"></a><h4>Parameters</h4>
1069 <div class="informaltable"><table width="100%" border="0">
1071 <col width="150px" class="parameters_name">
1072 <col class="parameters_description">
1073 <col width="200px" class="parameters_annotations">
1076 <td class="parameter_name"><p>name</p></td>
1077 <td class="parameter_description"><p>Name of template to be deleted.</p></td>
1078 <td class="parameter_annotations"> </td>
1082 <div class="refsect3">
1083 <a name="id-1.2.2.7.29.6"></a><h4>Returns</h4>
1084 <p> Status of registration attempt (<a class="link" href="libglabels-3.0-db.html#lglDbDeleteStatus" title="enum lglDbDeleteStatus"><span class="type">lglDbDeleteStatus</span></a>)</p>
1088 <div class="refsect2">
1089 <a name="lgl-db-does-template-exist"></a><h3>lgl_db_does_template_exist ()</h3>
1090 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1091 lgl_db_does_template_exist (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *brand</code></em>,
1092 <em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *part</code></em>);</pre>
1093 <p>This function tests whether a template with the given brand and part name/number exists.</p>
1094 <div class="refsect3">
1095 <a name="id-1.2.2.7.30.5"></a><h4>Parameters</h4>
1096 <div class="informaltable"><table width="100%" border="0">
1098 <col width="150px" class="parameters_name">
1099 <col class="parameters_description">
1100 <col width="200px" class="parameters_annotations">
1104 <td class="parameter_name"><p>brand</p></td>
1105 <td class="parameter_description"><p>Brand name.</p></td>
1106 <td class="parameter_annotations"> </td>
1109 <td class="parameter_name"><p>part</p></td>
1110 <td class="parameter_description"><p>Part name/number.</p></td>
1111 <td class="parameter_annotations"> </td>
1116 <div class="refsect3">
1117 <a name="id-1.2.2.7.30.6"></a><h4>Returns</h4>
1118 <p> TRUE if such a template exists in the database.</p>
1122 <div class="refsect2">
1123 <a name="lgl-db-does-template-name-exist"></a><h3>lgl_db_does_template_name_exist ()</h3>
1124 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1125 lgl_db_does_template_name_exist (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
1126 <p>This function test whether a template with the given name exists.</p>
1127 <div class="refsect3">
1128 <a name="id-1.2.2.7.31.5"></a><h4>Parameters</h4>
1129 <div class="informaltable"><table width="100%" border="0">
1131 <col width="150px" class="parameters_name">
1132 <col class="parameters_description">
1133 <col width="200px" class="parameters_annotations">
1136 <td class="parameter_name"><p>name</p></td>
1137 <td class="parameter_description"><p>name string</p></td>
1138 <td class="parameter_annotations"> </td>
1142 <div class="refsect3">
1143 <a name="id-1.2.2.7.31.6"></a><h4>Returns</h4>
1144 <p> TRUE if such a template exists in the database.</p>
1148 <div class="refsect2">
1149 <a name="lgl-db-get-template-name-list-all"></a><h3>lgl_db_get_template_name_list_all ()</h3>
1150 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
1151 lgl_db_get_template_name_list_all (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *brand</code></em>,
1152 <em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *paper_id</code></em>,
1153 <em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *category_id</code></em>);</pre>
1154 <p>Get a list of all valid names of templates in the template database.
1155 Results can be filtered by page size and/or template category. A list of valid page
1156 sizes can be obtained using <a class="link" href="libglabels-3.0-db.html#lgl-db-get-paper-id-list" title="lgl_db_get_paper_id_list ()"><code class="function">lgl_db_get_paper_id_list()</code></a>. A list of valid template
1157 categories can be obtained using <a class="link" href="libglabels-3.0-db.html#lgl-db-get-category-id-list" title="lgl_db_get_category_id_list ()"><code class="function">lgl_db_get_category_id_list()</code></a>.</p>
1158 <div class="refsect3">
1159 <a name="id-1.2.2.7.32.5"></a><h4>Parameters</h4>
1160 <div class="informaltable"><table width="100%" border="0">
1162 <col width="150px" class="parameters_name">
1163 <col class="parameters_description">
1164 <col width="200px" class="parameters_annotations">
1168 <td class="parameter_name"><p>brand</p></td>
1169 <td class="parameter_description"><p>If non NULL, limit results to given brand</p></td>
1170 <td class="parameter_annotations"> </td>
1173 <td class="parameter_name"><p>paper_id</p></td>
1174 <td class="parameter_description"><p>If non NULL, limit results to given page size.</p></td>
1175 <td class="parameter_annotations"> </td>
1178 <td class="parameter_name"><p>category_id</p></td>
1179 <td class="parameter_description"><p>If non NULL, limit results to given template category.</p></td>
1180 <td class="parameter_annotations"> </td>
1185 <div class="refsect3">
1186 <a name="id-1.2.2.7.32.6"></a><h4>Returns</h4>
1187 <p> a list of template names.</p>
1191 <div class="refsect2">
1192 <a name="lgl-db-get-similar-template-name-list"></a><h3>lgl_db_get_similar_template_name_list ()</h3>
1193 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
1194 lgl_db_get_similar_template_name_list (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
1195 <p>Get a list of all valid names of templates in the template database that
1196 have the same size and layout characteristics as the given template.</p>
1197 <div class="refsect3">
1198 <a name="id-1.2.2.7.33.5"></a><h4>Parameters</h4>
1199 <div class="informaltable"><table width="100%" border="0">
1201 <col width="150px" class="parameters_name">
1202 <col class="parameters_description">
1203 <col width="200px" class="parameters_annotations">
1206 <td class="parameter_name"><p>name</p></td>
1207 <td class="parameter_description"><p>Name of template under test.</p></td>
1208 <td class="parameter_annotations"> </td>
1212 <div class="refsect3">
1213 <a name="id-1.2.2.7.33.6"></a><h4>Returns</h4>
1214 <p> a list of template names.</p>
1218 <div class="refsect2">
1219 <a name="lgl-db-free-template-name-list"></a><h3>lgl_db_free_template_name_list ()</h3>
1220 <pre class="programlisting"><span class="returnvalue">void</span>
1221 lgl_db_free_template_name_list (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *names</code></em>);</pre>
1222 <p>Free up all storage associated with a list of template names obtained with
1223 <a class="link" href="libglabels-3.0-db.html#lgl-db-get-template-name-list-all" title="lgl_db_get_template_name_list_all ()"><code class="function">lgl_db_get_template_name_list_all()</code></a>.</p>
1224 <div class="refsect3">
1225 <a name="id-1.2.2.7.34.5"></a><h4>Parameters</h4>
1226 <div class="informaltable"><table width="100%" border="0">
1228 <col width="150px" class="parameters_name">
1229 <col class="parameters_description">
1230 <col width="200px" class="parameters_annotations">
1233 <td class="parameter_name"><p>names</p></td>
1234 <td class="parameter_description"><p>List of template name strings to be freed.</p></td>
1235 <td class="parameter_annotations"> </td>
1241 <div class="refsect2">
1242 <a name="lgl-db-lookup-template-from-name"></a><h3>lgl_db_lookup_template_from_name ()</h3>
1243 <pre class="programlisting"><a class="link" href="libglabels-3.0-template.html#lglTemplate" title="struct lglTemplate"><span class="returnvalue">lglTemplate</span></a> *
1244 lgl_db_lookup_template_from_name (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
1245 <p>Lookup template in template database from name string.</p>
1246 <div class="refsect3">
1247 <a name="id-1.2.2.7.35.5"></a><h4>Parameters</h4>
1248 <div class="informaltable"><table width="100%" border="0">
1250 <col width="150px" class="parameters_name">
1251 <col class="parameters_description">
1252 <col width="200px" class="parameters_annotations">
1255 <td class="parameter_name"><p>name</p></td>
1256 <td class="parameter_description"><p>name string</p></td>
1257 <td class="parameter_annotations"> </td>
1261 <div class="refsect3">
1262 <a name="id-1.2.2.7.35.6"></a><h4>Returns</h4>
1263 <p> pointer to a newly allocated <a class="link" href="libglabels-3.0-template.html#lglTemplate" title="struct lglTemplate"><span class="type">lglTemplate</span></a> structure.</p>
1267 <div class="refsect2">
1268 <a name="lgl-db-lookup-template-from-brand-part"></a><h3>lgl_db_lookup_template_from_brand_part ()</h3>
1269 <pre class="programlisting"><a class="link" href="libglabels-3.0-template.html#lglTemplate" title="struct lglTemplate"><span class="returnvalue">lglTemplate</span></a> *
1270 lgl_db_lookup_template_from_brand_part
1271 (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *brand</code></em>,
1272 <em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *part</code></em>);</pre>
1273 <p>Lookup template in template database from brand and part strings.</p>
1274 <div class="refsect3">
1275 <a name="id-1.2.2.7.36.5"></a><h4>Parameters</h4>
1276 <div class="informaltable"><table width="100%" border="0">
1278 <col width="150px" class="parameters_name">
1279 <col class="parameters_description">
1280 <col width="200px" class="parameters_annotations">
1284 <td class="parameter_name"><p>brand</p></td>
1285 <td class="parameter_description"><p>brand name string</p></td>
1286 <td class="parameter_annotations"> </td>
1289 <td class="parameter_name"><p>part</p></td>
1290 <td class="parameter_description"><p>part name string</p></td>
1291 <td class="parameter_annotations"> </td>
1296 <div class="refsect3">
1297 <a name="id-1.2.2.7.36.6"></a><h4>Returns</h4>
1298 <p> pointer to a newly allocated <a class="link" href="libglabels-3.0-template.html#lglTemplate" title="struct lglTemplate"><span class="type">lglTemplate</span></a> structure.</p>
1302 <div class="refsect2">
1303 <a name="lgl-db-get-vendor-name-list"></a><h3>lgl_db_get_vendor_name_list ()</h3>
1304 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
1305 lgl_db_get_vendor_name_list (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
1306 <p>Get a list of all localized vendor names known to libglabels.</p>
1307 <div class="refsect3">
1308 <a name="id-1.2.2.7.37.5"></a><h4>Returns</h4>
1309 <p> a list of localized vendor names.</p>
1313 <div class="refsect2">
1314 <a name="lgl-db-free-vendor-name-list"></a><h3>lgl_db_free_vendor_name_list ()</h3>
1315 <pre class="programlisting"><span class="returnvalue">void</span>
1316 lgl_db_free_vendor_name_list (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *names</code></em>);</pre>
1317 <p>Free up all storage associated with a name list obtained with
1318 <a class="link" href="libglabels-3.0-db.html#lgl-db-get-vendor-name-list" title="lgl_db_get_vendor_name_list ()"><code class="function">lgl_db_get_vendor_name_list()</code></a>.</p>
1319 <div class="refsect3">
1320 <a name="id-1.2.2.7.38.5"></a><h4>Parameters</h4>
1321 <div class="informaltable"><table width="100%" border="0">
1323 <col width="150px" class="parameters_name">
1324 <col class="parameters_description">
1325 <col width="200px" class="parameters_annotations">
1328 <td class="parameter_name"><p>names</p></td>
1329 <td class="parameter_description"><p>List of localized vendor name strings to be freed.</p></td>
1330 <td class="parameter_annotations"> </td>
1336 <div class="refsect2">
1337 <a name="lgl-db-is-vendor-name-known"></a><h3>lgl_db_is_vendor_name_known ()</h3>
1338 <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1339 lgl_db_is_vendor_name_known (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
1340 <p>Determine if given vendor id is known to libglabels.</p>
1341 <div class="refsect3">
1342 <a name="id-1.2.2.7.39.5"></a><h4>Parameters</h4>
1343 <div class="informaltable"><table width="100%" border="0">
1345 <col width="150px" class="parameters_name">
1346 <col class="parameters_description">
1347 <col width="200px" class="parameters_annotations">
1350 <td class="parameter_name"><p>name</p></td>
1351 <td class="parameter_description"><p>vendor name to test</p></td>
1352 <td class="parameter_annotations"> </td>
1356 <div class="refsect3">
1357 <a name="id-1.2.2.7.39.6"></a><h4>Returns</h4>
1358 <p> TRUE if id is known, otherwise FALSE.</p>
1362 <div class="refsect2">
1363 <a name="lgl-db-lookup-vendor-from-name"></a><h3>lgl_db_lookup_vendor_from_name ()</h3>
1364 <pre class="programlisting"><a class="link" href="libglabels-3.0-vendor.html#lglVendor" title="struct lglVendor"><span class="returnvalue">lglVendor</span></a> *
1365 lgl_db_lookup_vendor_from_name (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
1366 <p>Lookup vendor definition from localized vendor name string.</p>
1367 <div class="refsect3">
1368 <a name="id-1.2.2.7.40.5"></a><h4>Parameters</h4>
1369 <div class="informaltable"><table width="100%" border="0">
1371 <col width="150px" class="parameters_name">
1372 <col class="parameters_description">
1373 <col width="200px" class="parameters_annotations">
1376 <td class="parameter_name"><p>name</p></td>
1377 <td class="parameter_description"><p>localized vendor name string</p></td>
1378 <td class="parameter_annotations"> </td>
1382 <div class="refsect3">
1383 <a name="id-1.2.2.7.40.6"></a><h4>Returns</h4>
1384 <p> pointer to a newly allocated <a class="link" href="libglabels-3.0-vendor.html#lglVendor" title="struct lglVendor"><span class="type">lglVendor</span></a> structure.</p>
1388 <div class="refsect2">
1389 <a name="lgl-db-print-known-papers"></a><h3>lgl_db_print_known_papers ()</h3>
1390 <pre class="programlisting"><span class="returnvalue">void</span>
1391 lgl_db_print_known_papers (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
1392 <p>For debugging purposes: print a list of all paper definitions known to
1396 <div class="refsect2">
1397 <a name="lgl-db-print-known-categories"></a><h3>lgl_db_print_known_categories ()</h3>
1398 <pre class="programlisting"><span class="returnvalue">void</span>
1399 lgl_db_print_known_categories (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
1400 <p>For debugging purposes: print a list of all category definitions known to
1404 <div class="refsect2">
1405 <a name="lgl-db-print-known-templates"></a><h3>lgl_db_print_known_templates ()</h3>
1406 <pre class="programlisting"><span class="returnvalue">void</span>
1407 lgl_db_print_known_templates (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
1408 <p>Print all known templates (for debugging purposes).</p>
1411 <div class="refsect2">
1412 <a name="lgl-db-print-known-vendors"></a><h3>lgl_db_print_known_vendors ()</h3>
1413 <pre class="programlisting"><span class="returnvalue">void</span>
1414 lgl_db_print_known_vendors (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
1415 <p>For debugging purposes: print a list of all vendor definitions known to
1419 <div class="refsect1">
1420 <a name="libglabels-3.0-db.other_details"></a><h2>Types and Values</h2>
1421 <div class="refsect2">
1422 <a name="lglDbRegStatus"></a><h3>enum lglDbRegStatus</h3>
1424 This enumeration defines a set of possible return values for <a class="link" href="libglabels-3.0-db.html#lgl-db-register-template" title="lgl_db_register_template ()"><code class="function">lgl_db_register_template()</code></a>.
1426 <div class="refsect3">
1427 <a name="id-1.2.2.8.2.4"></a><h4>Members</h4>
1428 <div class="informaltable"><table width="100%" border="0">
1430 <col width="300px" class="enum_members_name">
1431 <col class="enum_members_description">
1432 <col width="200px" class="enum_members_annotations">
1436 <td class="enum_member_name"><p><a name="LGL-DB-REG-OK:CAPS"></a>LGL_DB_REG_OK</p></td>
1437 <td class="enum_member_description">
1438 <p>Registration successful.</p>
1440 <td class="enum_member_annotations"> </td>
1443 <td class="enum_member_name"><p><a name="LGL-DB-REG-BAD-PAPER-ID:CAPS"></a>LGL_DB_REG_BAD_PAPER_ID</p></td>
1444 <td class="enum_member_description">
1445 <p> Registration failed because paper id is unknown.</p>
1447 <td class="enum_member_annotations"> </td>
1450 <td class="enum_member_name"><p><a name="LGL-DB-REG-BRAND-PART-EXISTS:CAPS"></a>LGL_DB_REG_BRAND_PART_EXISTS</p></td>
1451 <td class="enum_member_description">
1452 <p>Registration failed because template with same brand and part name/number already exists.</p>
1454 <td class="enum_member_annotations"> </td>
1457 <td class="enum_member_name"><p><a name="LGL-DB-REG-FILE-WRITE-ERROR:CAPS"></a>LGL_DB_REG_FILE_WRITE_ERROR</p></td>
1458 <td class="enum_member_description">
1459 <p>Registration failed because an error while writing to disk.</p>
1461 <td class="enum_member_annotations"> </td>
1468 <div class="refsect2">
1469 <a name="lglDbDeleteStatus"></a><h3>enum lglDbDeleteStatus</h3>
1471 This enumeration defines a set of possible return values for <a class="link" href="libglabels-3.0-db.html#lgl-db-delete-template-by-name" title="lgl_db_delete_template_by_name ()"><code class="function">lgl_db_delete_template_by_name()</code></a> or <a class="link" href="libglabels-3.0-db.html#lgl-db-delete-template-by-brand-part" title="lgl_db_delete_template_by_brand_part ()"><code class="function">lgl_db_delete_template_by_brand_part()</code></a>.
1473 <div class="refsect3">
1474 <a name="id-1.2.2.8.3.4"></a><h4>Members</h4>
1475 <div class="informaltable"><table width="100%" border="0">
1477 <col width="300px" class="enum_members_name">
1478 <col class="enum_members_description">
1479 <col width="200px" class="enum_members_annotations">
1483 <td class="enum_member_name"><p><a name="LGL-DB-DELETE-OK:CAPS"></a>LGL_DB_DELETE_OK</p></td>
1484 <td class="enum_member_description">
1485 <p>Deletion successful.</p>
1487 <td class="enum_member_annotations"> </td>
1490 <td class="enum_member_name"><p><a name="LGL-DB-DELETE-DOES-NOT-EXIST:CAPS"></a>LGL_DB_DELETE_DOES_NOT_EXIST</p></td>
1491 <td class="enum_member_description">
1492 <p>Deletion failed because template with given brand and part name/number does not exist.</p>
1494 <td class="enum_member_annotations"> </td>
1497 <td class="enum_member_name"><p><a name="LGL-DB-DELETE-NOT-USER-DEFINED:CAPS"></a>LGL_DB_DELETE_NOT_USER_DEFINED</p></td>
1498 <td class="enum_member_description">
1499 <p>Deletion failed because given template is not a user defined template.</p>
1501 <td class="enum_member_annotations"> </td>
1504 <td class="enum_member_name"><p><a name="LGL-DB-DELETE-FILE-ERROR:CAPS"></a>LGL_DB_DELETE_FILE_ERROR</p></td>
1505 <td class="enum_member_description">
1506 <p>Deletion failed because of an error while attempting to remove template from disk.</p>
1508 <td class="enum_member_annotations"> </td>
1516 <div class="footer">
1517 <hr>Generated by GTK-Doc V1.24</div>