2 * Copyright (C) 2008-2011 Robert Ancell.
4 * This program is free software: you can redistribute it and/or modify it under
5 * the terms of the GNU General Public License as published by the Free Software
6 * Foundation, either version 2 of the License, or (at your option) any later
7 * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
14 #include <glib-object.h>
19 #define CURRENCY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), currency_get_type(), Currency))
21 typedef struct CurrencyPrivate CurrencyPrivate
;
25 GObject parent_instance
;
26 CurrencyPrivate
*priv
;
31 GObjectClass parent_class
;
34 GType
currency_get_type(void);
36 Currency
*currency_new(const gchar
*name
,
37 const gchar
*display_name
,
40 const gchar
*currency_get_name(Currency
*currency
);
42 const gchar
*currency_get_short_display_name(Currency
*currency
);
44 const gchar
*currency_get_display_name(Currency
*currency
);
46 const gchar
*currency_get_symbol(Currency
*currency
);
48 void currency_set_value(Currency
*currency
, MPNumber
*value
);
50 const MPNumber
*currency_get_value(Currency
*currency
);
54 #endif /* CURRENCY_H */