Change 'undo' and 'clear' buttons to use symbolic icons
[gcalctool.git] / src / currency-manager.h
blobc5e8e9146ecb07629285d5976854f0b4af0f5120
1 /*
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
8 * license.
9 */
11 #ifndef CURRENCY_MANAGER_H
12 #define CURRENCY_MANAGER_H
14 #include "currency.h"
15 #include "mp.h"
17 G_BEGIN_DECLS
19 #define CURRENCY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), currency_manager_get_type(), CurrencyManager))
21 typedef struct CurrencyManagerPrivate CurrencyManagerPrivate;
23 typedef struct
25 GObject parent_instance;
26 CurrencyManagerPrivate *priv;
27 } CurrencyManager;
29 typedef struct
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);
45 G_END_DECLS
47 #endif /* CURRENCY_MANAGER_H */