~ubuntu-branches/ubuntu/oneiric/gconf/oneiric-proposed

« back to all changes in this revision

Viewing changes to backends/xml-entry.h

  • Committer: Bazaar Package Importer
  • Author(s): Takuo KITAME
  • Date: 2002-03-17 01:51:39 UTC
  • Revision ID: james.westby@ubuntu.com-20020317015139-z4f8fdg1hoe049g0
Tags: upstream-1.0.9
ImportĀ upstreamĀ versionĀ 1.0.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* GConf
 
2
 * Copyright (C) 1999, 2000 Red Hat Inc.
 
3
 *
 
4
 * This library is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU Library General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2 of the License, or (at your option) any later version.
 
8
 *
 
9
 * This library 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
 * Library General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Library General Public
 
15
 * License along with this library; if not, write to the
 
16
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
17
 * Boston, MA 02111-1307, USA.
 
18
 */
 
19
 
 
20
#ifndef GCONF_XML_ENTRY_H
 
21
#define GCONF_XML_ENTRY_H
 
22
 
 
23
#include <gconf/gconf.h>
 
24
#include <gnome-xml/tree.h>
 
25
 
 
26
/* Entry stores all the information about a given key */
 
27
 
 
28
typedef struct _Entry Entry;
 
29
Entry*         entry_new             (const gchar  *relative_name);
 
30
void           entry_destroy         (Entry        *entry);
 
31
const gchar*   entry_get_name        (Entry        *entry);
 
32
 
 
33
 
 
34
 
 
35
/* no set_name, you can't change an entry's name */
 
36
void           entry_set_node        (Entry        *entry,
 
37
                                      xmlNodePtr    node);
 
38
xmlNodePtr     entry_get_node        (Entry        *entry);
 
39
void           entry_fill_from_node  (Entry        *entry);
 
40
void           entry_sync_to_node    (Entry        *entry);
 
41
GConfValue*    entry_get_value       (Entry        *entry,
 
42
                                      const gchar **locales,
 
43
                                      GError  **err);
 
44
void           entry_set_value       (Entry        *entry,
 
45
                                      GConfValue   *value);
 
46
gboolean       entry_unset_value     (Entry        *entry,
 
47
                                      const gchar  *locale);
 
48
GConfMetaInfo* entry_get_metainfo    (Entry        *entry);
 
49
void           entry_set_mod_time    (Entry        *entry,
 
50
                                      GTime         mod_time);
 
51
void           entry_set_mod_user    (Entry        *e,
 
52
                                      const gchar  *user);
 
53
const gchar*   entry_get_schema_name (Entry        *e);
 
54
void           entry_set_schema_name (Entry        *e,
 
55
                                      const gchar  *name);
 
56
 
 
57
 
 
58
void my_xmlSetProp(xmlNodePtr node,
 
59
                   const gchar* name,
 
60
                   const gchar* str);
 
61
 
 
62
char* my_xmlGetProp(xmlNodePtr node,
 
63
                    const gchar* name);
 
64
 
 
65
#endif