From 822fcbbd0fa5cfb69d03b689571a20a52c97ae12 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 21 Apr 2013 12:10:59 -0400 Subject: Add contact-photos module. This encapsulates the EContactPhoto look up feature that was previously built into EPhotoCache. It's now implemented as an EPhotoSource -- one per address book. One advantage of this implementation is that address books are now queried concurrently rather than serially. EPhotoCacheContactLoader is an EPhotoCache extension that takes care of adding and removing EPhotoSources for available address books. --- modules/contact-photos/evolution-contact-photos.c | 40 +++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 modules/contact-photos/evolution-contact-photos.c (limited to 'modules/contact-photos/evolution-contact-photos.c') diff --git a/modules/contact-photos/evolution-contact-photos.c b/modules/contact-photos/evolution-contact-photos.c new file mode 100644 index 0000000000..2ab6f04c40 --- /dev/null +++ b/modules/contact-photos/evolution-contact-photos.c @@ -0,0 +1,40 @@ +/* + * evolution-module-contact-photos.c + * + * 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 + * + */ + +#include +#include + +#include "e-contact-photo-source.h" +#include "e-photo-cache-contact-loader.h" + +/* Module Entry Points */ +void e_module_load (GTypeModule *type_module); +void e_module_unload (GTypeModule *type_module); + +G_MODULE_EXPORT void +e_module_load (GTypeModule *type_module) +{ + e_contact_photo_source_type_register (type_module); + e_photo_cache_contact_loader_type_register (type_module); +} + +G_MODULE_EXPORT void +e_module_unload (GTypeModule *type_module) +{ +} + -- cgit v1.2.3