Gammu internals  1.38.0
Nokia

Functions

void NOKIA_GetDefaultCallerGroupName (GSM_Bitmap *Bitmap)
 
void NOKIA_GetDefaultProfileName (GSM_Profile *Profile)
 

Detailed Description

Nokias manipulations.

Function Documentation

§ NOKIA_GetDefaultCallerGroupName()

void NOKIA_GetDefaultCallerGroupName ( GSM_Bitmap Bitmap)

Gets default caller group name.

Parameters
BitmapStorage for default bitmap.

Definition at line 956 of file nfunc.c.

References _, GSM_Bitmap::DefaultName, EncodeUnicode(), FALSE, GSM_Bitmap::Location, GSM_Bitmap::Text, and TRUE.

957 {
958  Bitmap->DefaultName = FALSE;
959  if (Bitmap->Text[0]==0x00 && Bitmap->Text[1]==0x00) {
960  Bitmap->DefaultName = TRUE;
961  switch(Bitmap->Location) {
962  case 1: EncodeUnicode(Bitmap->Text,_("Family"),strlen(_("Family")));
963  break;
964  case 2: EncodeUnicode(Bitmap->Text,_("VIP"),strlen(_("VIP")));
965  break;
966  case 3: EncodeUnicode(Bitmap->Text,_("Friends"),strlen(_("Friends")));
967  break;
968  case 4: EncodeUnicode(Bitmap->Text,_("Colleagues"),strlen(_("Colleagues")));
969  break;
970  case 5: EncodeUnicode(Bitmap->Text,_("Other"),strlen(_("Other")));
971  break;
972  }
973  }
974 }
unsigned char Location
Definition: gammu-bitmap.h:112
void EncodeUnicode(unsigned char *dest, const char *src, size_t len)
Definition: coding.c:301
#define FALSE
Definition: gammu-types.h:25
gboolean DefaultName
Definition: gammu-bitmap.h:126
#define _(x)
Definition: locales.h:21
unsigned char Text[2 *(GSM_BITMAP_TEXT_LENGTH+1)]
Definition: gammu-bitmap.h:118
#define TRUE
Definition: gammu-types.h:28

§ NOKIA_GetDefaultProfileName()

void NOKIA_GetDefaultProfileName ( GSM_Profile Profile)

Gets default profile name.

Parameters
ProfileStorage for default profile.

Referenced by NOKIA_EncodeDateTime().