Disable localized digits (Bug #644980)
[gcalctool.git] / src / currency.h
blobf5393ae743460d188019525672019b85e0c83d0a
1 #ifndef CURRENCY_H
2 #define CURRENCY_H
4 #include <glib-object.h>
5 #include "mp.h"
7 G_BEGIN_DECLS
9 #define CURRENCY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), currency_get_type(), Currency))
11 typedef struct CurrencyPrivate CurrencyPrivate;
13 typedef struct
15 GObject parent_instance;
16 CurrencyPrivate *priv;
17 } Currency;
19 typedef struct
21 GObjectClass parent_class;
22 } CurrencyClass;
24 GType currency_get_type(void);
26 Currency *currency_new(const gchar *name,
27 const gchar *display_name,
28 const gchar *symbol);
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);
42 G_END_DECLS
44 #endif /* CURRENCY_H */