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
, const gchar
*display_name
, const gchar
*symbol
);
28 const gchar
*currency_get_name(Currency
*currency
);
30 const gchar
*currency_get_display_name(Currency
*currency
);
32 const gchar
*currency_get_symbol(Currency
*currency
);
34 void currency_set_value(Currency
*currency
, MPNumber
*value
);
36 const MPNumber
*currency_get_value(Currency
*currency
);
40 #endif /* CURRENCY_H */