3 #include "gmock-gnc-prefs.h" 10 prefsbackend = backend;
18 EXPECT_NE(prefsbackend,
nullptr);
19 return prefsbackend ? prefsbackend->get_bool(group, pref_name) : FALSE;
25 EXPECT_NE(prefsbackend,
nullptr);
26 return prefsbackend ? prefsbackend->get_int(group, pref_name) : 0;
32 EXPECT_NE(prefsbackend,
nullptr);
33 return prefsbackend ? prefsbackend->get_int64(group, pref_name) : 0;
39 EXPECT_NE(prefsbackend,
nullptr);
40 return prefsbackend ? prefsbackend->get_float(group, pref_name) : 0.0;
46 EXPECT_NE(prefsbackend,
nullptr);
47 return prefsbackend ? prefsbackend->get_string(group, pref_name) : NULL;
53 EXPECT_NE(prefsbackend,
nullptr);
54 return prefsbackend ? prefsbackend->get_enum(group, pref_name) : 0;
60 EXPECT_NE(prefsbackend,
nullptr);
65 if (prefsbackend !=
nullptr)
66 prefsbackend->get_coords(group, pref_name, x, y);
gchar * gnc_prefs_get_string(const gchar *group, const gchar *pref_name)
Get a string value from the preferences backend.
gint64 gnc_prefs_get_int64(const gchar *group, const gchar *pref_name)
Get an 64 bit integer value from the preferences backend.
gint gnc_prefs_get_int(const gchar *group, const gchar *pref_name)
Get an integer value from the preferences backend.
gint gnc_prefs_get_enum(const gchar *group, const gchar *pref_name)
Get an enum value from the preferences backend.
void gnc_prefs_get_coords(const gchar *group, const gchar *pref_name, gdouble *x, gdouble *y)
Get a pair of coordinates from the preferences backend.
gboolean gnc_prefs_get_bool(const gchar *group, const gchar *pref_name)
Get a boolean value from the preferences backend.
gdouble gnc_prefs_get_float(const gchar *group, const gchar *pref_name)
Get an float value from the preferences backend.