diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-04-26 00:30:11 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-04-26 08:17:20 +0800 |
commit | 91aee2a805d70c9f7a5f0d089139fbfc710939c1 (patch) | |
tree | bec4108805f99ca0f244a26180b0c487b9f4eaca /modules/gravatar/e-photo-cache-gravatar-loader.h | |
parent | 009ac971e069ced92547800a78ab3119f733c333 (diff) | |
download | gsoc2013-evolution-91aee2a805d70c9f7a5f0d089139fbfc710939c1.tar gsoc2013-evolution-91aee2a805d70c9f7a5f0d089139fbfc710939c1.tar.gz gsoc2013-evolution-91aee2a805d70c9f7a5f0d089139fbfc710939c1.tar.bz2 gsoc2013-evolution-91aee2a805d70c9f7a5f0d089139fbfc710939c1.tar.lz gsoc2013-evolution-91aee2a805d70c9f7a5f0d089139fbfc710939c1.tar.xz gsoc2013-evolution-91aee2a805d70c9f7a5f0d089139fbfc710939c1.tar.zst gsoc2013-evolution-91aee2a805d70c9f7a5f0d089139fbfc710939c1.zip |
Add a gravatar module.
This is a new EPhotoSource that obtains images from gravatar.com.
Diffstat (limited to 'modules/gravatar/e-photo-cache-gravatar-loader.h')
-rw-r--r-- | modules/gravatar/e-photo-cache-gravatar-loader.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/modules/gravatar/e-photo-cache-gravatar-loader.h b/modules/gravatar/e-photo-cache-gravatar-loader.h new file mode 100644 index 0000000000..13b0d1d0dd --- /dev/null +++ b/modules/gravatar/e-photo-cache-gravatar-loader.h @@ -0,0 +1,66 @@ +/* + * e-photo-cache-gravatar-loader.h + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with the program; if not, see <http://www.gnu.org/licenses/> + * + */ + +#ifndef E_PHOTO_CACHE_GRAVATAR_LOADER_H +#define E_PHOTO_CACHE_GRAVATAR_LOADER_H + +#include <e-util/e-util.h> + +/* Standard GObject macros */ +#define E_TYPE_PHOTO_CACHE_GRAVATAR_LOADER \ + (e_photo_cache_gravatar_loader_get_type ()) +#define E_PHOTO_CACHE_GRAVATAR_LOADER(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), E_TYPE_PHOTO_CACHE_GRAVATAR_LOADER, EPhotoCacheGravatarLoader)) +#define E_PHOTO_CACHE_GRAVATAR_LOADER_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_CAST \ + ((cls), E_TYPE_PHOTO_CACHE_GRAVATAR_LOADER, EPhotoCacheGravatarLoaderClass)) +#define E_IS_PHOTO_CACHE_GRAVATAR_LOADER(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), E_TYPE_PHOTO_CACHE_GRAVATAR_LOADER)) +#define E_IS_PHOTO_CACHE_GRAVATAR_LOADER_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_TYPE \ + ((cls), E_TYPE_PHOTO_CACHE_GRAVATAR_LOADER)) +#define E_PHOTO_CACHE_GRAVATAR_LOADER_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), E_TYPE_PHOTO_CACHE_GRAVATAR_LOADER, EPhotoCacheGravatarLoaderClass)) + +G_BEGIN_DECLS + +typedef struct _EPhotoCacheGravatarLoader EPhotoCacheGravatarLoader; +typedef struct _EPhotoCacheGravatarLoaderClass EPhotoCacheGravatarLoaderClass; +typedef struct _EPhotoCacheGravatarLoaderPrivate EPhotoCacheGravatarLoaderPrivate; + +struct _EPhotoCacheGravatarLoader { + EExtension parent; + EPhotoCacheGravatarLoaderPrivate *priv; +}; + +struct _EPhotoCacheGravatarLoaderClass { + EExtensionClass parent_class; +}; + +GType e_photo_cache_gravatar_loader_get_type + (void) G_GNUC_CONST; +void e_photo_cache_gravatar_loader_type_register + (GTypeModule *type_module); + +G_END_DECLS + +#endif /* E_PHOTO_CACHE_GRAVATAR_LOADER_H */ + |