From 20a87184b1c06f63b2b3d8b9c48a68535b31b4bb Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 17 Nov 2017 11:21:12 +0100 Subject: New mesms --- sms.h | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 sms.h (limited to 'sms.h') diff --git a/sms.h b/sms.h new file mode 100644 index 0000000..7d8a493 --- /dev/null +++ b/sms.h @@ -0,0 +1,53 @@ + +#ifndef SMS_H +#define SMS_H + +//#include + +#include +#include +#include +#include + + + +#include "contactList.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 listSMS(char*,int); +int loadConv(void); + +#endif + + + -- cgit v1.2.3