Gammu API
1.32.90
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
gammu-bitmap.h
Go to the documentation of this file.
1
7
#ifndef __gammu_bitmap_h
8
#define __gammu_bitmap_h
9
15
#include <
gammu-limits.h
>
16
#include <
gammu-types.h
>
17
#include <
gammu-error.h
>
18
#include <
gammu-statemachine.h
>
19
#include <stdio.h>
20
26
typedef
enum
{
27
PICTURE_BMP
= 1,
28
PICTURE_GIF
,
29
PICTURE_JPG
,
30
PICTURE_ICN
,
31
PICTURE_PNG
32
}
GSM_BinaryPicture_Types
;
33
39
typedef
struct
{
40
GSM_BinaryPicture_Types
Type
;
41
unsigned
char
*
Buffer
;
42
size_t
Length
;
43
}
GSM_BinaryPicture
;
44
50
typedef
enum
{
51
GSM_None
= 1,
55
GSM_ColourStartupLogo_ID
,
59
GSM_StartupLogo
,
63
GSM_ColourOperatorLogo_ID
,
67
GSM_OperatorLogo
,
71
GSM_ColourWallPaper_ID
,
75
GSM_CallerGroupLogo
,
79
GSM_DealerNote_Text
,
83
GSM_WelcomeNote_Text
,
87
GSM_PictureImage
,
91
GSM_PictureBinary
92
}
GSM_Bitmap_Types
;
93
99
typedef
struct
{
103
GSM_Bitmap_Types
Type
;
108
unsigned
char
Location
;
114
unsigned
char
Text[2 * (
GSM_BITMAP_TEXT_LENGTH
+ 1)];
118
gboolean
BitmapEnabled
;
122
gboolean
DefaultName
;
126
gboolean
DefaultBitmap
;
130
gboolean
DefaultRingtone
;
134
unsigned
char
RingtoneID
;
135
gboolean
FileSystemRingtone
;
139
int
PictureID
;
140
gboolean
FileSystemPicture
;
144
unsigned
char
BitmapPoints[
GSM_BITMAP_SIZE
];
148
size_t
BitmapHeight
;
152
size_t
BitmapWidth
;
156
char
NetworkCode[7];
160
unsigned
char
Sender[2 * (
GSM_MAX_NUMBER_LENGTH
+ 1)];
164
unsigned
char
ID
;
168
GSM_BinaryPicture
BinaryPic
;
172
unsigned
char
Name[2 * (
GSM_BITMAP_TEXT_LENGTH
+ 1)];
173
}
GSM_Bitmap
;
174
180
typedef
struct
{
184
unsigned
char
Number
;
188
GSM_Bitmap
Bitmap[
GSM_MAX_MULTI_BITMAP
];
189
}
GSM_MultiBitmap
;
190
196
GSM_Error
GSM_GetBitmap
(
GSM_StateMachine
* s,
GSM_Bitmap
* Bitmap);
197
203
GSM_Error
GSM_SetBitmap
(
GSM_StateMachine
* s,
GSM_Bitmap
* Bitmap);
204
213
void
GSM_PrintBitmap
(FILE * file,
GSM_Bitmap
* bitmap);
214
225
GSM_Error
GSM_SaveBitmapFile
(
char
*FileName,
GSM_MultiBitmap
* bitmap);
226
237
GSM_Error
GSM_ReadBitmapFile
(
char
*FileName,
GSM_MultiBitmap
* bitmap);
238
249
gboolean
GSM_IsPointBitmap
(
GSM_Bitmap
* bmp,
int
x,
int
y);
250
260
void
GSM_SetPointBitmap
(
GSM_Bitmap
* bmp,
int
x,
int
y);
261
271
void
GSM_ClearPointBitmap
(
GSM_Bitmap
* bmp,
int
x,
int
y);
272
280
void
GSM_ClearBitmap
(
GSM_Bitmap
* bmp);
281
290
GSM_Error
GSM_GetScreenshot
(
GSM_StateMachine
*s,
GSM_BinaryPicture
*picture);
291
292
#endif
293
294
/* Editor configuration
295
* vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
296
*/
include
gammu-bitmap.h
Generated by
1.8.1.2