diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-04-22 00:10:59 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-04-24 08:06:01 +0800 |
commit | 822fcbbd0fa5cfb69d03b689571a20a52c97ae12 (patch) | |
tree | b0424803a6162f552cf8332defb884348aceb6fc /modules/contact-photos/evolution-contact-photos.c | |
parent | 5991b04ac5b48980f4d384951d619b3ec696e17f (diff) | |
download | gsoc2013-evolution-822fcbbd0fa5cfb69d03b689571a20a52c97ae12.tar.gz gsoc2013-evolution-822fcbbd0fa5cfb69d03b689571a20a52c97ae12.tar.zst gsoc2013-evolution-822fcbbd0fa5cfb69d03b689571a20a52c97ae12.zip |
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.
Diffstat (limited to 'modules/contact-photos/evolution-contact-photos.c')
-rw-r--r-- | modules/contact-photos/evolution-contact-photos.c | 40 |
1 files changed, 40 insertions, 0 deletions
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 <http://www.gnu.org/licenses/> + * + */ + +#include <gmodule.h> +#include <glib-object.h> + +#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) +{ +} + |