1 /* 2 * Copyright (C) 2015 SUSE (www.suse.com) 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2 of the License, or (at your option) version 3. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with the program; if not, see <http://www.gnu.org/licenses/> 16 * 17 * Authors: 18 * David Liang <dliang@suse.com> 19 * 20 */ 21 #ifndef __KMAIL_LIBS_H__ 22 #define __KMAIL_LIBS_H__ 23 24 #include <sys/types.h> 25 #include <sys/stat.h> 26 #include <unistd.h> 27 #include <string.h> 28 #include <stdio.h> 29 #include <glib/gstdio.h> 30 31 #include <glib.h> 32 #include <gio/gio.h> 33 #include <stdlib.h> 34 #include <camel/camel.h> 35 36 #include "libemail-engine/libemail-engine.h" 37 38 #define EVOLUTION_LOCAL_BASE "folder://local" 39 #define EVOLUTION_DIR ".local/share/evolution/mail/local/" 40 #define KMAIL_4_10_DIR ".local/share/local-mail" 41 #define KMAIL_4_3_DIR ".kde4/share/apps/kmail/mail" 42 #define KCONTACT_4_3_DIR ".kde4/share/apps/kabc" 43 44 const CamelStore * evolution_get_local_store (void); 45 gboolean kmail_is_supported (void); 46 gchar * kmail_get_base_dir (void); 47 GSList * kmail_get_folders (gchar *path); 48 gchar * kuri_to_euri (const gchar *k_uri); 49 GSList * kcontact_get_list (void); 50 void kcontact_load (GSList *files); 51 52 #endif 53