23 #ifndef __MRCONTACT_H__ 24 #define __MRCONTACT_H__ 30 typedef struct mrsqlite3_t mrsqlite3_t;
51 #define MR_CONTACT_ID_SELF 1 52 #define MR_CONTACT_ID_LAST_SPECIAL 9 77 #define MR_ORIGIN_UNSET 0 78 #define MR_ORIGIN_INCOMING_UNKNOWN_FROM 0x10 79 #define MR_ORIGIN_INCOMING_UNKNOWN_CC 0x20 80 #define MR_ORIGIN_INCOMING_UNKNOWN_TO 0x40 81 #define MR_ORIGIN_INCOMING_REPLY_TO 0x100 82 #define MR_ORIGIN_INCOMING_CC 0x200 83 #define MR_ORIGIN_INCOMING_TO 0x400 84 #define MR_ORIGIN_CREATE_CHAT 0x800 85 #define MR_ORIGIN_OUTGOING_BCC 0x1000 86 #define MR_ORIGIN_OUTGOING_CC 0x2000 87 #define MR_ORIGIN_OUTGOING_TO 0x4000 88 #define MR_ORIGIN_INTERNAL 0x40000 89 #define MR_ORIGIN_ADRESS_BOOK 0x80000 90 #define MR_ORIGIN_MANUALLY_CREATED 0x100000 92 #define MR_ORIGIN_MIN_CONTACT_LIST (MR_ORIGIN_INCOMING_REPLY_TO) 93 #define MR_ORIGIN_MIN_VERIFIED (MR_ORIGIN_INCOMING_REPLY_TO) 94 #define MR_ORIGIN_MIN_START_NEW_NCHAT (0x7FFFFFFF) 96 int mrcontact_load_from_db__ (
mrcontact_t*, mrsqlite3_t*, uint32_t contact_id);
97 void mr_normalize_name (
char* full_name);
98 char* mr_normalize_addr (
const char* email_addr);
99 char* mr_get_first_name (
const char* full_name);