epoc32/include/stdapis/glib-2.0/glib/gkeyfile.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/stdapis/glib-2.0/glib/gkeyfile.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/stdapis/glib-2.0/glib/gkeyfile.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,197 @@
     1.4 -gkeyfile.h
     1.5 +/* gkeyfile.h - desktop entry file parser
     1.6 + *
     1.7 + *  Copyright 2004 Red Hat, Inc.
     1.8 + *
     1.9 + *  Ray Strode <halfline@hawaii.rr.com>
    1.10 + * Portions copyright (c) 2006 Nokia Corporation.  All rights reserved.
    1.11 + *
    1.12 + * GLib is free software; you can redistribute it and/or modify it
    1.13 + * under the terms of the GNU Lesser General Public License as
    1.14 + * published by the Free Software Foundation; either version 2 of the
    1.15 + * License, or (at your option) any later version.
    1.16 + *
    1.17 + * GLib is distributed in the hope that it will be useful,
    1.18 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.20 + * Lesser General Public License for more details.
    1.21 + *
    1.22 + * You should have received a copy of the GNU Lesser General Public
    1.23 + * License along with GLib; see the file COPYING.LIB.  If not,
    1.24 + * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    1.25 + *   Boston, MA 02111-1307, USA.
    1.26 + */
    1.27 +
    1.28 +#ifndef __G_KEY_FILE_H__
    1.29 +#define __G_KEY_FILE_H__
    1.30 +
    1.31 +#include <_ansi.h>
    1.32 +#include <glib/gerror.h>
    1.33 +
    1.34 +G_BEGIN_DECLS
    1.35 +
    1.36 +typedef enum
    1.37 +{
    1.38 +  G_KEY_FILE_ERROR_UNKNOWN_ENCODING,
    1.39 +  G_KEY_FILE_ERROR_PARSE,
    1.40 +  G_KEY_FILE_ERROR_NOT_FOUND,
    1.41 +  G_KEY_FILE_ERROR_KEY_NOT_FOUND,
    1.42 +  G_KEY_FILE_ERROR_GROUP_NOT_FOUND,
    1.43 +  G_KEY_FILE_ERROR_INVALID_VALUE
    1.44 +} GKeyFileError;
    1.45 +
    1.46 +#define G_KEY_FILE_ERROR g_key_file_error_quark()
    1.47 +
    1.48 +IMPORT_C GQuark g_key_file_error_quark (void);
    1.49 +
    1.50 +typedef struct _GKeyFile GKeyFile;
    1.51 +
    1.52 +typedef enum
    1.53 +{
    1.54 +  G_KEY_FILE_NONE              = 0,
    1.55 +  G_KEY_FILE_KEEP_COMMENTS     = 1 << 0,
    1.56 +  G_KEY_FILE_KEEP_TRANSLATIONS = 1 << 1
    1.57 +} GKeyFileFlags;
    1.58 +
    1.59 +IMPORT_C GKeyFile *g_key_file_new                    (void);
    1.60 +IMPORT_C void      g_key_file_free                   (GKeyFile             *key_file);
    1.61 +IMPORT_C void      g_key_file_set_list_separator     (GKeyFile             *key_file,
    1.62 +					     gchar                 separator);
    1.63 +IMPORT_C gboolean  g_key_file_load_from_file         (GKeyFile             *key_file,
    1.64 +					     const gchar          *file,
    1.65 +					     GKeyFileFlags         flags,
    1.66 +					     GError              **error);
    1.67 +IMPORT_C gboolean  g_key_file_load_from_data         (GKeyFile             *key_file,
    1.68 +					     const gchar          *data,
    1.69 +					     gsize                 length,
    1.70 +					     GKeyFileFlags         flags,
    1.71 +					     GError              **error);
    1.72 +IMPORT_C gboolean g_key_file_load_from_data_dirs    (GKeyFile             *key_file,
    1.73 +					     const gchar          *file,
    1.74 +					     gchar               **full_path,
    1.75 +					     GKeyFileFlags         flags,
    1.76 +					     GError              **error);
    1.77 +IMPORT_C gchar    *g_key_file_to_data                (GKeyFile             *key_file,
    1.78 +					     gsize                *length,
    1.79 +					     GError              **error) G_GNUC_MALLOC;
    1.80 +IMPORT_C gchar    *g_key_file_get_start_group        (GKeyFile             *key_file) G_GNUC_MALLOC;
    1.81 +IMPORT_C gchar   **g_key_file_get_groups             (GKeyFile             *key_file,
    1.82 +					     gsize                *length) G_GNUC_MALLOC;
    1.83 +IMPORT_C gchar   **g_key_file_get_keys               (GKeyFile             *key_file,
    1.84 +					     const gchar          *group_name,
    1.85 +					     gsize                *length,
    1.86 +					     GError              **error) G_GNUC_MALLOC;
    1.87 +IMPORT_C gboolean  g_key_file_has_group              (GKeyFile             *key_file,
    1.88 +					     const gchar          *group_name);
    1.89 +IMPORT_C gboolean  g_key_file_has_key                (GKeyFile             *key_file,
    1.90 +					     const gchar          *group_name,
    1.91 +					     const gchar          *key,
    1.92 +					     GError              **error);
    1.93 +IMPORT_C gchar    *g_key_file_get_value              (GKeyFile             *key_file,
    1.94 +					     const gchar          *group_name,
    1.95 +					     const gchar          *key,
    1.96 +					     GError              **error) G_GNUC_MALLOC;
    1.97 +IMPORT_C void      g_key_file_set_value              (GKeyFile             *key_file,
    1.98 +					     const gchar          *group_name,
    1.99 +					     const gchar          *key,
   1.100 +					     const gchar          *value);
   1.101 +IMPORT_C gchar    *g_key_file_get_string             (GKeyFile             *key_file,
   1.102 +					     const gchar          *group_name,
   1.103 +					     const gchar          *key,
   1.104 +					     GError              **error) G_GNUC_MALLOC;
   1.105 +IMPORT_C void      g_key_file_set_string             (GKeyFile             *key_file,
   1.106 +					     const gchar          *group_name,
   1.107 +					     const gchar          *key,
   1.108 +					     const gchar          *string);
   1.109 +IMPORT_C gchar    *g_key_file_get_locale_string      (GKeyFile             *key_file,
   1.110 +					     const gchar          *group_name,
   1.111 +					     const gchar          *key,
   1.112 +					     const gchar          *locale,
   1.113 +					     GError              **error) G_GNUC_MALLOC;
   1.114 +IMPORT_C void      g_key_file_set_locale_string      (GKeyFile             *key_file,
   1.115 +					     const gchar          *group_name,
   1.116 +					     const gchar          *key,
   1.117 +					     const gchar          *locale,
   1.118 +					     const gchar          *string);
   1.119 +IMPORT_C gboolean  g_key_file_get_boolean            (GKeyFile             *key_file,
   1.120 +					     const gchar          *group_name,
   1.121 +					     const gchar          *key,
   1.122 +					     GError              **error);
   1.123 +IMPORT_C void      g_key_file_set_boolean            (GKeyFile             *key_file,
   1.124 +					     const gchar          *group_name,
   1.125 +					     const gchar          *key,
   1.126 +					     gboolean              value);
   1.127 +IMPORT_C gint      g_key_file_get_integer            (GKeyFile             *key_file,
   1.128 +					     const gchar          *group_name,
   1.129 +					     const gchar          *key,
   1.130 +					     GError              **error);
   1.131 +IMPORT_C void      g_key_file_set_integer            (GKeyFile             *key_file,
   1.132 +					     const gchar          *group_name,
   1.133 +					     const gchar          *key,
   1.134 +					     gint                  value);
   1.135 +IMPORT_C gchar   **g_key_file_get_string_list        (GKeyFile             *key_file,
   1.136 +					     const gchar          *group_name,
   1.137 +					     const gchar          *key,
   1.138 +					     gsize                *length,
   1.139 +					     GError              **error) G_GNUC_MALLOC;
   1.140 +IMPORT_C void      g_key_file_set_string_list        (GKeyFile             *key_file,
   1.141 +					     const gchar          *group_name,
   1.142 +					     const gchar          *key,
   1.143 +					     const gchar * const   list[],
   1.144 +					     gsize                 length);
   1.145 +IMPORT_C gchar   **g_key_file_get_locale_string_list (GKeyFile             *key_file,
   1.146 +					     const gchar          *group_name,
   1.147 +					     const gchar          *key,
   1.148 +					     const gchar          *locale,
   1.149 +					     gsize                *length,
   1.150 +					     GError              **error) G_GNUC_MALLOC;
   1.151 +IMPORT_C void      g_key_file_set_locale_string_list (GKeyFile             *key_file,
   1.152 +					     const gchar          *group_name,
   1.153 +					     const gchar          *key,
   1.154 +					     const gchar          *locale,
   1.155 +					     const gchar * const   list[],
   1.156 +					     gsize                 length);
   1.157 +IMPORT_C gboolean *g_key_file_get_boolean_list       (GKeyFile             *key_file,
   1.158 +					     const gchar          *group_name,
   1.159 +					     const gchar          *key,
   1.160 +					     gsize                *length,
   1.161 +					     GError              **error) G_GNUC_MALLOC;
   1.162 +IMPORT_C void      g_key_file_set_boolean_list       (GKeyFile             *key_file,
   1.163 +					     const gchar          *group_name,
   1.164 +					     const gchar          *key,
   1.165 +					     gboolean              list[],
   1.166 +					     gsize                 length);
   1.167 +IMPORT_C gint     *g_key_file_get_integer_list       (GKeyFile             *key_file,
   1.168 +					     const gchar          *group_name,
   1.169 +					     const gchar          *key,
   1.170 +					     gsize                *length,
   1.171 +					     GError              **error) G_GNUC_MALLOC;
   1.172 +IMPORT_C void      g_key_file_set_integer_list       (GKeyFile             *key_file,
   1.173 +					     const gchar          *group_name,
   1.174 +					     const gchar          *key,
   1.175 +					     gint                  list[],
   1.176 +					     gsize                 length);
   1.177 +IMPORT_C void      g_key_file_set_comment            (GKeyFile             *key_file,
   1.178 +                                             const gchar          *group_name,
   1.179 +                                             const gchar          *key,
   1.180 +                                             const gchar          *comment,
   1.181 +                                             GError              **error);
   1.182 +IMPORT_C gchar    *g_key_file_get_comment            (GKeyFile             *key_file,
   1.183 +                                             const gchar          *group_name,
   1.184 +                                             const gchar          *key,
   1.185 +                                             GError              **error) G_GNUC_MALLOC;
   1.186 +
   1.187 +IMPORT_C void      g_key_file_remove_comment         (GKeyFile             *key_file,
   1.188 +                                             const gchar          *group_name,
   1.189 +                                             const gchar          *key,
   1.190 +					     GError              **error);
   1.191 +IMPORT_C void      g_key_file_remove_key             (GKeyFile             *key_file,
   1.192 +					     const gchar          *group_name,
   1.193 +					     const gchar          *key,
   1.194 +					     GError              **error);
   1.195 +IMPORT_C void      g_key_file_remove_group           (GKeyFile             *key_file,
   1.196 +					     const gchar          *group_name,
   1.197 +					     GError              **error);
   1.198 +
   1.199 +G_END_DECLS
   1.200 +
   1.201 +#endif /* __G_KEY_FILE_H__ */