Gammu API  1.32.90
gammu-memory.h
Go to the documentation of this file.
1 
7 #ifndef __gammu_memory_h
8 #define __gammu_memory_h
9 
15 #include <gammu-datetime.h>
16 #include <gammu-limits.h>
17 #include <gammu-bitmap.h>
18 #include <gammu-debug.h>
19 
27 typedef enum {
31  MEM_ME = 1,
60 
65 
70 
76 
86 #define GSM_MemoryTypeToString(x) \
87  ((x) == MEM_ME ? "ME" : \
88  ((x) == MEM_SM ? "SM" : \
89  ((x) == MEM_ON ? "ON" : \
90  ((x) == MEM_DC ? "DC" : \
91  ((x) == MEM_RC ? "RC" : \
92  ((x) == MEM_MC ? "MC" : \
93  ((x) == MEM_MT ? "MT" : \
94  ((x) == MEM_FD ? "FD" : \
95  ((x) == MEM_VM ? "VM" : \
96  ((x) == MEM_QD ? "QD" : \
97  ((x) == MEM_SL ? "SL" : "XX")))))))))))
98 
107 
114 typedef struct {
128 
135 typedef enum {
168  /*
169  * Second email. (Text)
170  */
332 } GSM_EntryType;
333 
339 typedef enum {
353 
359 typedef struct {
375  int Number;
379  int VoiceTag;
380  int SMSList[20];
382 
390  unsigned char Text[(GSM_PHONEBOOK_TEXT_LENGTH + 1) * 2];
396 
402 typedef struct {
410  int Location;
420 
426 typedef struct {
430  int Location;
443 } GSM_SpeedDial;
444 
458 
472 
488  gboolean start);
489 
501 
514 
526 
538 
550 
562 
573 unsigned char *GSM_PhonebookGetEntryName(const GSM_MemoryEntry * entry);
574 
586  int *Name, int *Number,
587  int *Group);
593 typedef enum {
618 
635 GSM_Error GSM_EncodeVCARD(GSM_Debug_Info * di, char *Buffer,
636  const size_t buff_len, size_t * Pos,
637  GSM_MemoryEntry * pbk, const gboolean header,
638  const GSM_VCardVersion Version);
639 
653 GSM_Error GSM_DecodeVCARD(GSM_Debug_Info * di, char *Buffer, size_t * Pos,
654  GSM_MemoryEntry * Pbk,
655  const GSM_VCardVersion Version);
656 
664 #endif
665 
666 /* Editor configuration
667  * vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
668  */