#ifndef SMS_H #define SMS_H //#include #include #include #include #include #include "contactList.h" #include "config.h" #define SMS_IN 0 #define SMS_OUT 1 #define FLASH_SMS 0 #define REGUL_SMS 1 #define SMS_READ 0 #define SMS_UNREAD 1 typedef struct sms { char number[20]; // Sender or Dest char* text; int len; time_t outDate; // Sent date time_t intDate; // Receive date char type; // Class 0 = Flash SMS | Other = Normal char state; // Read or Unread char in_out; // Sent or Received ? } sms; typedef struct conversation { char number[20]; sms* listSMS; size_t nbSMS; } conversation; int readSMS(char*, int, char); int listSMS(char*,int); int loadConv(void); #endif