glib-2.0 Reference Manual

Synopsis

public class KeyFile {
    public                              KeyFile                   (  ) ;


    public    void                      set_list_separator        ( char                separator ) ;
    public    bool                      load_from_file            ( string              file,
                                                                    KeyFileFlags        flags ) 
                                                             throws KeyFileError;
    public    bool                      load_from_data            ( string              data,
                                                                    ulong               length,
                                                                    KeyFileFlags        flags ) 
                                                             throws KeyFileError;
    public    bool                      load_from_data_dirs       ( string              file,
                                                                    string              full_path,
                                                                    KeyFileFlags        flags ) 
                                                             throws KeyFileError;
    public    string                    to_data                   ( ulong               length ) 
                                                             throws KeyFileError;
    public    string                    get_start_group           (  ) ;
    public    string[]                  get_groups                (  ) ;
    public    string[]                  get_keys                  ( string              group_name ) 
                                                             throws KeyFileError;
    public    bool                      has_group                 ( string              group_name ) ;
    public    bool                      has_key                   ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;
    public    string                    get_value                 ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;
    public    string                    get_string                ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;
    public    string                    get_locale_string         ( string              group_name,
                                                                    string              key,
                                                                    string              locale ) 
                                                             throws KeyFileError;
    public    bool                      get_boolean               ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;
    public    int                       get_integer               ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;
    public    double                    get_double                ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;
    public    string[]                  get_string_list           ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;
    public    string[]                  get_locale_string_list    ( string              group_name,
                                                                    string              key,
                                                                    string              locale ) 
                                                             throws KeyFileError;
    public    bool[]                    get_boolean_list          ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;
    public    int[]                     get_integer_list          ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;
    public    double[]                  get_double_list           ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;
    public    string                    get_comment               ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;
    public    void                      set_value                 ( string              group_name,
                                                                    string              key,
                                                                    string              value ) ;
    public    void                      set_string                ( string              group_name,
                                                                    string              key,
                                                                    string              str ) ;
    public    void                      set_locale_string         ( string              group_name,
                                                                    string              key,
                                                                    string              locale,
                                                                    string              str ) ;
    public    void                      set_boolean               ( string              group_name,
                                                                    string              key,
                                                                    bool                value ) ;
    public    void                      set_integer               ( string              group_name,
                                                                    string              key,
                                                                    int                 value ) ;
    public    void                      set_double                ( string              group_name,
                                                                    string              key,
                                                                    double              value ) ;
    public    void                      set_string_list           ( string              group_name,
                                                                    string              key,
                                                                    string[]            list ) ;
    public    void                      set_locale_string_list    ( string              group_name,
                                                                    string              key,
                                                                    string              locale,
                                                                    string[]            list ) ;
    public    void                      set_boolean_list          ( string              group_name,
                                                                    string              key,
                                                                    bool[]              list ) ;
    public    void                      set_integer_list          ( string              group_name,
                                                                    string              key,
                                                                    int[]               list ) ;
    public    void                      set_double_list           ( string              group_name,
                                                                    string              key,
                                                                    double[]            list ) ;
    public    void                      set_comment               ( string              group_name,
                                                                    string              key,
                                                                    string              comment ) ;
    public    void                      remove_group              ( string              group_name ) 
                                                             throws KeyFileError;
    public    void                      remove_key                ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;
    public    void                      remove_comment            ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;
}

KeyFile Description

Details

Constructor Details

KeyFile ()
    public                              KeyFile                   (  ) ;		

Field Details

Signal Details

Property Details

Method Details

set_list_separator ()
    public    void                      set_list_separator        ( char                separator ) ;		

load_from_file ()
    public    bool                      load_from_file            ( string              file,
                                                                    KeyFileFlags        flags ) 
                                                             throws KeyFileError;		

load_from_data ()
    public    bool                      load_from_data            ( string              data,
                                                                    ulong               length,
                                                                    KeyFileFlags        flags ) 
                                                             throws KeyFileError;		

load_from_data_dirs ()
    public    bool                      load_from_data_dirs       ( string              file,
                                                                    string              full_path,
                                                                    KeyFileFlags        flags ) 
                                                             throws KeyFileError;		

to_data ()
    public    string                    to_data                   ( ulong               length ) 
                                                             throws KeyFileError;		

get_start_group ()
    public    string                    get_start_group           (  ) ;		

get_groups ()
    public    string[]                  get_groups                (  ) ;		

get_keys ()
    public    string[]                  get_keys                  ( string              group_name ) 
                                                             throws KeyFileError;		

has_group ()
    public    bool                      has_group                 ( string              group_name ) ;		

has_key ()
    public    bool                      has_key                   ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;		

get_value ()
    public    string                    get_value                 ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;		

get_string ()
    public    string                    get_string                ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;		

get_locale_string ()
    public    string                    get_locale_string         ( string              group_name,
                                                                    string              key,
                                                                    string              locale ) 
                                                             throws KeyFileError;		

get_boolean ()
    public    bool                      get_boolean               ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;		

get_integer ()
    public    int                       get_integer               ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;		

get_double ()
    public    double                    get_double                ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;		

get_string_list ()
    public    string[]                  get_string_list           ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;		

get_locale_string_list ()
    public    string[]                  get_locale_string_list    ( string              group_name,
                                                                    string              key,
                                                                    string              locale ) 
                                                             throws KeyFileError;		

get_boolean_list ()
    public    bool[]                    get_boolean_list          ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;		

get_integer_list ()
    public    int[]                     get_integer_list          ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;		

get_double_list ()
    public    double[]                  get_double_list           ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;		

get_comment ()
    public    string                    get_comment               ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;		

set_value ()
    public    void                      set_value                 ( string              group_name,
                                                                    string              key,
                                                                    string              value ) ;		

set_string ()
    public    void                      set_string                ( string              group_name,
                                                                    string              key,
                                                                    string              str ) ;		

set_locale_string ()
    public    void                      set_locale_string         ( string              group_name,
                                                                    string              key,
                                                                    string              locale,
                                                                    string              str ) ;		

set_boolean ()
    public    void                      set_boolean               ( string              group_name,
                                                                    string              key,
                                                                    bool                value ) ;		

set_integer ()
    public    void                      set_integer               ( string              group_name,
                                                                    string              key,
                                                                    int                 value ) ;		

set_double ()
    public    void                      set_double                ( string              group_name,
                                                                    string              key,
                                                                    double              value ) ;		

set_string_list ()
    public    void                      set_string_list           ( string              group_name,
                                                                    string              key,
                                                                    string[]            list ) ;		

set_locale_string_list ()
    public    void                      set_locale_string_list    ( string              group_name,
                                                                    string              key,
                                                                    string              locale,
                                                                    string[]            list ) ;		

set_boolean_list ()
    public    void                      set_boolean_list          ( string              group_name,
                                                                    string              key,
                                                                    bool[]              list ) ;		

set_integer_list ()
    public    void                      set_integer_list          ( string              group_name,
                                                                    string              key,
                                                                    int[]               list ) ;		

set_double_list ()
    public    void                      set_double_list           ( string              group_name,
                                                                    string              key,
                                                                    double[]            list ) ;		

set_comment ()
    public    void                      set_comment               ( string              group_name,
                                                                    string              key,
                                                                    string              comment ) ;		

remove_group ()
    public    void                      remove_group              ( string              group_name ) 
                                                             throws KeyFileError;		

remove_key ()
    public    void                      remove_key                ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;		

remove_comment ()
    public    void                      remove_comment            ( string              group_name,
                                                                    string              key ) 
                                                             throws KeyFileError;		


Created by Valadoc