4 #include <glib-object.h>
9 #define CURRENCY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), currency_get_type(), Currency))
11 typedef struct CurrencyPrivate CurrencyPrivate
;
15 GObject parent_instance
;
16 CurrencyPrivate
*priv
;
21 GObjectClass parent_class
;
24 GType
currency_get_type(void);
26 Currency
*currency_new(const gchar
*name
,
27 const gchar
*display_name
,
30 const gchar
*currency_get_name(Currency
*currency
);
32 const gchar
*currency_get_short_display_name(Currency
*currency
);
34 const gchar
*currency_get_display_name(Currency
*currency
);
36 const gchar
*currency_get_symbol(Currency
*currency
);
38 void currency_set_value(Currency
*currency
, MPNumber
*value
);
40 const MPNumber
*currency_get_value(Currency
*currency
);
44 #endif /* CURRENCY_H */