| 
    Gammu internals
    1.38.0
    
   | 
 
Data Structures | |
| struct | GSM_NoteEntry | 
Functions | |
| GSM_Error | GSM_DecodeVNOTE (char *Buffer, size_t *Pos, GSM_NoteEntry *Note) | 
| GSM_Error | GSM_EncodeVNTFile (char *Buffer, const size_t buff_len, size_t *Length, GSM_NoteEntry *Note) | 
| GSM_Error | GSM_GetNotesStatus (GSM_StateMachine *s, GSM_ToDoStatus *status) | 
| GSM_Error | GSM_GetNote (GSM_StateMachine *s, GSM_NoteEntry *Note) | 
| GSM_Error | GSM_GetNextNote (GSM_StateMachine *s, GSM_NoteEntry *Note, gboolean start) | 
| GSM_Error | GSM_SetNote (GSM_StateMachine *s, GSM_NoteEntry *Note) | 
| GSM_Error | GSM_AddNote (GSM_StateMachine *s, GSM_NoteEntry *Note) | 
| GSM_Error | GSM_DeleteNote (GSM_StateMachine *s, GSM_NoteEntry *Note) | 
| GSM_Error | GSM_DeleteAllNotes (GSM_StateMachine *s) | 
Notes manipulations.
| GSM_Error GSM_AddNote | ( | GSM_StateMachine * | s, | 
| GSM_NoteEntry * | Note | ||
| ) | 
Adds note entry.
| s | State machine pointer. | 
| Note | Note to add. | 
Adds note entry.
Definition at line 1592 of file api.c.
References GSM_Phone_Functions::AddNote, CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and PRINT_NOTE_INFO.
| GSM_Error GSM_DecodeVNOTE | ( | char * | Buffer, | 
| size_t * | Pos, | ||
| GSM_NoteEntry * | Note | ||
| ) | 
Decodes vNote from buffer.
| Buffer | Buffer to decode. | 
| Pos | Current position in buffer (will be updated). | 
| Note | Storage for note entry. | 
Definition at line 2030 of file gsmcal.c.
References CopyUnicodeString(), ERR_EMPTY, ERR_NONE, FALSE, MyGetLine(), ReadVCALText(), GSM_NoteEntry::Text, TRUE, and UnicodeLength().
| GSM_Error GSM_DeleteAllNotes | ( | GSM_StateMachine * | s | ) | 
Deletes all notes entries.
| s | State machine pointer. | 
Deletes all notes entries.
Definition at line 1620 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone_Functions::DeleteAllNotes, GSM_Phone::Functions, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_Error GSM_DeleteNote | ( | GSM_StateMachine * | s, | 
| GSM_NoteEntry * | Note | ||
| ) | 
Deletes note entry.
| s | State machine pointer. | 
| Note | Note to delete, must contain position. | 
Deletes note entry.
Definition at line 1606 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone_Functions::DeleteNote, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and PRINT_NOTE_INFO.
| GSM_Error GSM_EncodeVNTFile | ( | char * | Buffer, | 
| const size_t | buff_len, | ||
| size_t * | Length, | ||
| GSM_NoteEntry * | Note | ||
| ) | 
Encodes vNote to buffer.
| Buffer | Storage for data. | |
| [in] | buff_len | Size of output buffer. | 
| Length | Pointer to current position in data (will be incremented). | |
| Note | Note to encode. | 
Definition at line 2066 of file gsmcal.c.
References ERR_NONE, FALSE, GSM_NoteEntry::Text, VC_StoreLine(), and VC_StoreText().
| GSM_Error GSM_GetNextNote | ( | GSM_StateMachine * | s, | 
| GSM_NoteEntry * | Note, | ||
| gboolean | start | ||
| ) | 
Retrieves note entry. This is useful for continuous reading of all notes entries.
| s | State machine pointer. | 
| Note | Storage for note, if start is FALSE, should contain data from previous read (at least position). | 
| start | Whether we're doing initial read or continue in reading. | 
Retrieves note entry. This is useful for continuous reading of all notes entries.
Definition at line 1563 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetNextNote, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, PRINT_NOTE_INFO, and PRINT_START.
| GSM_Error GSM_GetNote | ( | GSM_StateMachine * | s, | 
| GSM_NoteEntry * | Note | ||
| ) | 
Retrieves notes entry.
| s | State machine pointer. | 
| Note | Storage for note. | 
Retrieves notes entry.
Definition at line 1548 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetNote, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and PRINT_NOTE_INFO.
| GSM_Error GSM_GetNotesStatus | ( | GSM_StateMachine * | s, | 
| GSM_ToDoStatus * | status | ||
| ) | 
Retrieves notes status (number of used entries).
| s | State machine pointer. | 
| status | Storage for status. | 
Retrieves notes status (number of used entries).
Definition at line 1535 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetNotesStatus, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_Error GSM_SetNote | ( | GSM_StateMachine * | s, | 
| GSM_NoteEntry * | Note | ||
| ) | 
Sets note entry
| s | State machine pointer. | 
| Note | New note values, needs to contain valid position. | 
Sets note entry
Definition at line 1578 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, PRINT_NOTE_INFO, and GSM_Phone_Functions::SetNote.