diff options
author | ache <ache@ache.one> | 2017-11-17 11:21:12 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2017-11-17 11:21:12 +0100 |
commit | 20a87184b1c06f63b2b3d8b9c48a68535b31b4bb (patch) | |
tree | e3ad5a41ac00d71ef95bd58fd1c4d4bf3eaa07a7 /contactList.h | |
parent | Number to contact option (diff) |
New mesms
Diffstat (limited to 'contactList.h')
-rw-r--r-- | contactList.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/contactList.h b/contactList.h index 5857c2f..bb25ef2 100644 --- a/contactList.h +++ b/contactList.h @@ -5,11 +5,14 @@ #include <stdio.h> #include "basic_curses.h" +typedef struct conversation conversation; + typedef struct contact { char name[100]; char display_name[100]; char number[50]; int hasNewMessage; + conversation* conversation; } contact ; #define DEFAULT_CONTACT_FILENAME "/usr/share/sms/contact.csv" @@ -30,6 +33,12 @@ int writeContactList(char* cvs_file_in); // Return: 0 if success, >0 otherwise int findContact(const char*, contact**); +// Find a contact +// Params: A name +// Return: 0 if success, >0 otherwise +int findContactFromName(const char*, contact**); + + // Add a contact @@ -49,18 +58,15 @@ int deleteContactFromNumber(const char*); int deleteContactFromName(const char*); +// Sort the contact list +// Params : Nothing +// Return : Nothing +void sortContacts(void); + + /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // Window contact - -void clearContactListW(void); -void showContactListW(void); -void refreshContactListW(void); - -void selectNextContact(void); -void selectPreviousContact(void); - - #endif |