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
11 #ifndef CURRENCY_MANAGER_H
12 #define CURRENCY_MANAGER_H
19 #define CURRENCY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), currency_manager_get_type(), CurrencyManager))
21 typedef struct CurrencyManagerPrivate CurrencyManagerPrivate
;
25 GObject parent_instance
;
26 CurrencyManagerPrivate
*priv
;
31 GObjectClass parent_class
;
32 void (*updated
)(CurrencyManager
*manager
);
33 } CurrencyManagerClass
;
35 GType
currency_manager_get_type(void);
37 CurrencyManager
*currency_manager_get_default(void);
39 GList
*currency_manager_get_currencies(CurrencyManager
*manager
);
41 Currency
*currency_manager_get_currency(CurrencyManager
*manager
, const gchar
*name
);
43 const MPNumber
*currency_manager_get_value(CurrencyManager
*manager
, const gchar
*currency
);
47 #endif /* CURRENCY_MANAGER_H */