Gammu internals  1.38.0
gammu-bitmap.h
Go to the documentation of this file.
1 
7 #ifndef __gammu_bitmap_h
8 #define __gammu_bitmap_h
9 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 #include <gammu-limits.h>
20 #include <gammu-types.h>
21 #include <gammu-error.h>
22 #include <gammu-statemachine.h>
23 #include <stdio.h>
24 
30 typedef enum {
37 
43 typedef struct {
44  GSM_BinaryPicture_Types Type;
45  unsigned char *Buffer;
46  size_t Length;
48 
54 typedef enum {
55  GSM_None = 1,
97 
103 typedef struct {
107  GSM_Bitmap_Types Type;
112  unsigned char Location;
118  unsigned char Text[2 * (GSM_BITMAP_TEXT_LENGTH + 1)];
138  unsigned char RingtoneID;
148  unsigned char BitmapPoints[GSM_BITMAP_SIZE];
152  size_t BitmapHeight;
156  size_t BitmapWidth;
160  char NetworkCode[10];
164  unsigned char Sender[2 * (GSM_MAX_NUMBER_LENGTH + 1)];
168  unsigned char ID;
176  unsigned char Name[2 * (GSM_BITMAP_TEXT_LENGTH + 1)];
177 } GSM_Bitmap;
178 
184 typedef struct {
188  unsigned char Number;
192  GSM_Bitmap Bitmap[GSM_MAX_MULTI_BITMAP];
194 
200 GSM_Error GSM_GetBitmap(GSM_StateMachine * s, GSM_Bitmap * Bitmap);
201 
207 GSM_Error GSM_SetBitmap(GSM_StateMachine * s, GSM_Bitmap * Bitmap);
208 
217 void GSM_PrintBitmap(FILE * file, GSM_Bitmap * bitmap);
218 
229 GSM_Error GSM_SaveBitmapFile(char *FileName, GSM_MultiBitmap * bitmap);
230 
241 GSM_Error GSM_ReadBitmapFile(char *FileName, GSM_MultiBitmap * bitmap);
242 
253 gboolean GSM_IsPointBitmap(GSM_Bitmap * bmp, int x, int y);
254 
264 void GSM_SetPointBitmap(GSM_Bitmap * bmp, int x, int y);
265 
275 void GSM_ClearPointBitmap(GSM_Bitmap * bmp, int x, int y);
276 
284 void GSM_ClearBitmap(GSM_Bitmap * bmp);
285 
295 
296 #ifdef __cplusplus
297 }
298 #endif
299 #endif
300 
301 /* Editor configuration
302  * vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
303  */
gboolean DefaultRingtone
Definition: gammu-bitmap.h:134
unsigned char ID
Definition: gammu-bitmap.h:168
gboolean FileSystemRingtone
Definition: gammu-bitmap.h:139
GSM_Bitmap_Types Type
Definition: gammu-bitmap.h:107
#define GSM_MAX_NUMBER_LENGTH
Definition: gammu-limits.h:77
#define GSM_MAX_MULTI_BITMAP
Definition: gammu-limits.h:281
GSM_BinaryPicture_Types
Definition: gammu-bitmap.h:30
GSM_Error
Definition: gammu-error.h:23
gboolean FileSystemPicture
Definition: gammu-bitmap.h:144
GSM_Bitmap_Types
Definition: gammu-bitmap.h:54
GSM_BinaryPicture_Types Type
Definition: gammu-bitmap.h:44
#define GSM_BITMAP_SIZE
Definition: gammu-limits.h:267
unsigned char * Buffer
Definition: gammu-bitmap.h:45
unsigned char Location
Definition: gammu-bitmap.h:112
unsigned char RingtoneID
Definition: gammu-bitmap.h:138
int gboolean
Definition: gammu-types.h:23
void GSM_PrintBitmap(FILE *file, GSM_Bitmap *bitmap)
Definition: gsmlogo.c:257
#define GSM_BITMAP_TEXT_LENGTH
Definition: gammu-limits.h:274
gboolean GSM_IsPointBitmap(GSM_Bitmap *bmp, int x, int y)
Definition: gsmlogo.c:238
GSM_Error GSM_GetBitmap(GSM_StateMachine *s, GSM_Bitmap *Bitmap)
Definition: api.c:1288
gboolean BitmapEnabled
Definition: gammu-bitmap.h:122
GSM_Error GSM_SetBitmap(GSM_StateMachine *s, GSM_Bitmap *Bitmap)
Definition: api.c:1301
gboolean DefaultBitmap
Definition: gammu-bitmap.h:130
GSM_Error GSM_SaveBitmapFile(char *FileName, GSM_MultiBitmap *bitmap)
Definition: gsmlogo.c:676
GSM_BinaryPicture BinaryPic
Definition: gammu-bitmap.h:172
unsigned char Number
Definition: gammu-bitmap.h:188
void GSM_ClearBitmap(GSM_Bitmap *bmp)
Definition: gsmlogo.c:247
gboolean DefaultName
Definition: gammu-bitmap.h:126
size_t BitmapHeight
Definition: gammu-bitmap.h:152
void GSM_ClearPointBitmap(GSM_Bitmap *bmp, int x, int y)
Definition: gsmlogo.c:233
size_t BitmapWidth
Definition: gammu-bitmap.h:156
GSM_Error GSM_GetScreenshot(GSM_StateMachine *s, GSM_BinaryPicture *picture)
Definition: api.c:1870
void GSM_SetPointBitmap(GSM_Bitmap *bmp, int x, int y)
Definition: gsmlogo.c:228
GSM_Error GSM_ReadBitmapFile(char *FileName, GSM_MultiBitmap *bitmap)
Definition: gsmlogo.c:1073