Gammu internals  1.38.0
gammu-info.h
Go to the documentation of this file.
1 
7 #ifndef __gammu_info_h
8 #define __gammu_info_h
9 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 #include <gammu-types.h>
20 #include <gammu-error.h>
21 #include <gammu-limits.h>
22 
28 const unsigned char *GSM_GetNetworkName(const char *NetworkCode);
29 
35 const unsigned char *GSM_GetCountryName(const char *CountryCode);
36 
42 typedef struct {
43  const char Code[8];
44  const char Name[64];
45 } GSM_CodeName;
46 
52 extern const GSM_CodeName GSM_Networks[];
53 
59 extern const GSM_CodeName GSM_Countries[];
60 
66 typedef enum {
92 
98 typedef enum {
108 
114 typedef struct {
118  char CID[10];
122  char NetworkCode[10];
127  GSM_NetworkInfo_State State;
131  char LAC[10];
135  unsigned char NetworkName[15 * 2];
139  GSM_GPRS_State GPRS;
143  char PacketCID[10];
148  GSM_NetworkInfo_State PacketState;
152  char PacketLAC[10];
154 
160 typedef struct {
161  /*
162  * Signal strength in dBm
163  */
174 
180 typedef enum {
206 
212 typedef enum {
230 
236 typedef struct {
244  GSM_ChargeState ChargeState;
276  GSM_BatteryType BatteryType;
278 
284 typedef enum {
296 
302 typedef struct {
303  int Number;
304  GSM_DisplayFeature Feature[7];
306 
313 typedef enum {
314  /* n6110.c */
318  F_CAL33 = 1,
395 
396  /* n3320.c */
401 
402  /* n6510.c */
507 
508  /* n6510.c && n7110.c */
521 
522  /* AT modules */
725 
730 } GSM_Feature;
731 
742 const char *GSM_FeatureToString(GSM_Feature feature);
743 
753 GSM_Feature GSM_FeatureFromString(const char *feature);
754 
760 typedef struct {
764  const char *model;
768  const char *number;
772  const char *irdamodel;
778 
789 gboolean GSM_IsPhoneFeatureAvailable(GSM_PhoneModel * model, GSM_Feature feature);
790 
801 gboolean GSM_AddPhoneFeature(GSM_PhoneModel * model, GSM_Feature feature);
802 
803 #include <gammu-statemachine.h>
804 
816 
827 GSM_Error GSM_GetModel(GSM_StateMachine * s, char *value);
828 
839 
852 GSM_Error GSM_GetFirmware(GSM_StateMachine * s, char *value, char *date,
853  double *num);
854 
865 GSM_Error GSM_GetIMEI(GSM_StateMachine * s, char *value);
866 
873 
880 
887 
893 GSM_Error GSM_GetHardware(GSM_StateMachine * s, char *value);
894 
901 GSM_Error GSM_GetPPM(GSM_StateMachine * s, char *value);
902 
908 GSM_Error GSM_GetSIMIMSI(GSM_StateMachine * s, char *IMSI);
909 
916 
923 
930 
938 #ifdef __cplusplus
939 }
940 #endif
941 #endif
942 
943 /* Editor configuration
944  * vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
945  */
GSM_ChargeState ChargeState
Definition: gammu-info.h:244
const unsigned char * GSM_GetNetworkName(const char *NetworkCode)
Definition: gsmnet.c:2420
const char * GSM_FeatureToString(GSM_Feature feature)
Definition: gsmphones.c:135
GSM_BatteryType
Definition: gammu-info.h:212
GSM_Error GSM_GetBatteryCharge(GSM_StateMachine *s, GSM_BatteryCharge *bat)
Definition: api.c:411
const GSM_CodeName GSM_Networks[]
Definition: gsmnet.c:258
GSM_GPRS_State
Definition: gammu-info.h:98
GSM_Error GSM_GetPPM(GSM_StateMachine *s, char *value)
Definition: api.c:203
GSM_Error
Definition: gammu-error.h:23
const char * model
Definition: gammu-info.h:764
GSM_Error GSM_GetIMEI(GSM_StateMachine *s, char *value)
Definition: api.c:132
const GSM_CodeName GSM_Countries[]
Definition: gsmnet.c:10
const char features[]
Definition: feature_tests.c:2
GSM_Error GSM_GetSIMIMSI(GSM_StateMachine *s, char *IMSI)
Definition: api.c:216
int gboolean
Definition: gammu-types.h:23
GSM_Feature GSM_FeatureFromString(const char *feature)
Definition: gsmphones.c:145
GSM_Error GSM_GetModel(GSM_StateMachine *s, char *value)
Definition: api.c:90
gboolean GSM_AddPhoneFeature(GSM_PhoneModel *model, GSM_Feature feature)
Definition: gsmphones.c:1039
GSM_PhoneModel * GSM_GetModelInfo(GSM_StateMachine *s)
Definition: gsmstate.c:1714
#define GSM_MAX_PHONE_FEATURES
Definition: gammu-limits.h:302
GSM_GPRS_State GPRS
Definition: gammu-info.h:139
GSM_Error GSM_GetNetworkInfo(GSM_StateMachine *s, GSM_NetworkInfo *netinfo)
Definition: api.c:439
GSM_NetworkInfo_State
Definition: gammu-info.h:66
GSM_ChargeState
Definition: gammu-info.h:180
GSM_Error GSM_GetDisplayStatus(GSM_StateMachine *s, GSM_DisplayFeatures *features)
Definition: api.c:385
GSM_NetworkInfo_State State
Definition: gammu-info.h:127
GSM_Error GSM_GetOriginalIMEI(GSM_StateMachine *s, char *value)
Definition: api.c:150
gboolean GSM_IsPhoneFeatureAvailable(GSM_PhoneModel *model, GSM_Feature feature)
Definition: gsmphones.c:1026
const char * number
Definition: gammu-info.h:768
GSM_NetworkInfo_State PacketState
Definition: gammu-info.h:148
GSM_Error GSM_GetSignalQuality(GSM_StateMachine *s, GSM_SignalQuality *sig)
Definition: api.c:426
GSM_Feature
Definition: gammu-info.h:313
GSM_Error GSM_GetHardware(GSM_StateMachine *s, char *value)
Definition: api.c:189
GSM_Error GSM_GetManufacturer(GSM_StateMachine *s, char *value)
Definition: api.c:72
const char * irdamodel
Definition: gammu-info.h:772
GSM_DisplayFeature
Definition: gammu-info.h:284
GSM_Error GSM_GetManufactureMonth(GSM_StateMachine *s, char *value)
Definition: api.c:163
const unsigned char * GSM_GetCountryName(const char *CountryCode)
Definition: gsmnet.c:2452
GSM_Error GSM_GetProductCode(GSM_StateMachine *s, char *value)
Definition: api.c:176
GSM_BatteryType BatteryType
Definition: gammu-info.h:276
GSM_Error GSM_GetFirmware(GSM_StateMachine *s, char *value, char *date, double *num)
Definition: api.c:108