1 /*
2 * Utility functions for reading and setting preferences
3 *
4 * Authors:
5 * bulia byak <bulia@dr.com>
6 *
7 * Copyright (C) 2003 authors
8 *
9 * Released under GNU GPL, read the file 'COPYING' for more information
10 */
12 #ifndef SEEN_PREFS_UTILS_H
13 #define SEEN_PREFS_UTILS_H
15 #include <glib/gtypes.h>
17 void prefs_set_int_attribute(gchar const *path, gchar const *attr, long long int value);
18 long long int prefs_get_int_attribute(gchar const *path, gchar const *attr, long long int def);
19 long long int prefs_get_int_attribute_limited(gchar const *path, gchar const *attr, long long int def, long long int min, long long int max);
21 void prefs_set_double_attribute(gchar const *path, gchar const *attr, double value);
22 double prefs_get_double_attribute(gchar const *path, gchar const *attr, double def);
23 double prefs_get_double_attribute_limited(gchar const *path, gchar const *attr, double def, double min, double max);
25 gchar const *prefs_get_string_attribute(gchar const *path, gchar const *attr);
26 void prefs_set_string_attribute(gchar const *path, gchar const *attr, gchar const *value);
28 void prefs_set_recent_file(const gchar * uri, const gchar * name);
29 const gchar ** prefs_get_recent_files(void);
31 #endif /* !SEEN_PREFS_UTILS_H */
33 /*
34 Local Variables:
35 mode:c++
36 c-file-style:"stroustrup"
37 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
38 indent-tabs-mode:nil
39 fill-column:99
40 End:
41 */
42 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :