Changed EphyHistoryWindow to use the new backend, some things still remain (selected_...
[ephy-soc.git] / embed / ephy-favicon-cache.h
blob631b0d4e2e40cff32c3ddc40523cd814037dd950
1 /*
2 * Copyright © 2002 Jorn Baayen
3 * Copyright © 2003-2004 Marco Pesenti Gritti
4 * Copyright © 2004, 2005 Christian Persch
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 * $Id: ephy-favicon-cache.h 6952 2007-03-11 19:42:02Z chpe $
23 #ifndef EPHY_FAVICON_CACHE_H
24 #define EPHY_FAVICON_CACHE_H
26 #include <glib-object.h>
27 #include <gdk-pixbuf/gdk-pixbuf.h>
29 G_BEGIN_DECLS
31 #define EPHY_TYPE_FAVICON_CACHE (ephy_favicon_cache_get_type ())
32 #define EPHY_FAVICON_CACHE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_FAVICON_CACHE, EphyFaviconCache))
33 #define EPHY_FAVICON_CACHE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), EPHY_TYPE_FAVICON_CACHE, EphyFaviconCacheClass))
34 #define EPHY_IS_FAVICON_CACHE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_FAVICON_CACHE))
35 #define EPHY_IS_FAVICON_CACHE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_FAVICON_CACHE))
36 #define EPHY_FAVICON_CACHE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_FAVICON_CACHE, EphyFaviconCacheClass))
38 typedef struct _EphyFaviconCacheClass EphyFaviconCacheClass;
39 typedef struct _EphyFaviconCache EphyFaviconCache;
40 typedef struct _EphyFaviconCachePrivate EphyFaviconCachePrivate;
42 struct _EphyFaviconCache
44 GObject parent;
46 /*< private >*/
47 EphyFaviconCachePrivate *priv;
50 struct _EphyFaviconCacheClass
52 GObjectClass parent_class;
54 /* Signals */
55 void (*changed) (EphyFaviconCache *cache,
56 const char *url);
59 GType ephy_favicon_cache_get_type (void);
61 EphyFaviconCache *ephy_favicon_cache_new (void);
63 GdkPixbuf *ephy_favicon_cache_get (EphyFaviconCache *cache,
64 const char *url);
66 void ephy_favicon_cache_clear (EphyFaviconCache *cache);
68 G_END_DECLS
70 #endif /* EPHY_FAVICON_CACHE_H */