Translated using Weblate.
[gammu.git] / include / gammu-limits.h
blobe174fe172bbe4176e32935f086c22e7a47c54450
1 /**
2 * \file gammu-limits.h
3 * \author Michal Čihař
5 * Limits definitions.
6 */
7 #ifndef __gammu_limits_h
8 #define __gammu_limits_h
10 /**
11 * \defgroup Limits Limits
12 * Limits definitions.
15 /**
16 * Maximal length of manufacturer name.
18 * \ingroup Limits
20 #define GSM_MAX_MANUFACTURER_LENGTH 50
22 /**
23 * Maximal length of model name.
25 * \ingroup Limits
27 #define GSM_MAX_MODEL_LENGTH 50
29 /**
30 * Maximal length of version text. This needs to hold all information we
31 * receive, so buffer has to be big enough.
33 * \ingroup Limits
35 #define GSM_MAX_VERSION_LENGTH 200
37 /**
38 * Maximal length of version date.
40 * \ingroup Limits
42 #define GSM_MAX_VERSION_DATE_LENGTH 50
44 /**
45 * Maximal length of IMEI.
47 * \ingroup Limits
49 #define GSM_MAX_IMEI_LENGTH 35
51 /**
52 * Maximal length of various phone information. Just a shorcut for
53 * functions doing whole identification and use one buffer.
55 * \ingroup Limits
57 #define GSM_MAX_INFO_LENGTH MAX(MAX(MAX(GSM_MAX_VERSION_LENGTH, \
58 GSM_MAX_IMEI_LENGTH), GSM_MAX_MODEL_LENGTH), \
59 GSM_MAX_MANUFACTURER_LENGTH)
61 /**
62 * Maximal count of SMS messages in folder.
64 * \ingroup Limits
66 #define GSM_PHONE_MAXSMSINFOLDER 100000
68 /**
69 * Maximal length of phone number.
71 * \ingroup Limits
73 #define GSM_MAX_NUMBER_LENGTH 200
75 /**
76 * Maximal count of todo and calendar notes.
78 * \ingroup Limits
80 #define GSM_MAXCALENDARTODONOTES 1000
82 /**
83 * Maximal length of text in phonebook.
85 * \ingroup Limits
87 #define GSM_PHONEBOOK_TEXT_LENGTH 200
89 /**
90 * Maximal count of phonebook notes.
92 * \ingroup Limits
94 #define GSM_PHONEBOOK_ENTRIES 40
96 /**
97 * Maximal number of calendar entries.
99 * \ingroup Limits
101 #define GSM_CALENDAR_ENTRIES 16
104 * Maximal length of text in calendar.
106 * \ingroup Limits
108 #define GSM_MAX_CALENDAR_TEXT_LENGTH 4096
111 * Maximal length of text in calendar.
113 * \ingroup Limits
115 #define GSM_MAX_NOTE_TEXT_LENGTH 4096
118 * Maximal number of todo entries.
120 * \ingroup Limits
122 #define GSM_TODO_ENTRIES 16
125 * Maximal length of text in todo.
127 * \ingroup Limits
129 #define GSM_MAX_TODO_TEXT_LENGTH 160
132 * Maximal length of SMS name.
134 #define GSM_MAX_SMS_NAME_LENGTH 200
137 * Maximal count of other numbes in SMS.
139 * \ingroup Limits
141 #define GSM_SMS_OTHER_NUMBERS 5
144 * Number of possible SMS folders.
146 #define GSM_MAX_SMS_FOLDERS 50
149 * Maximal length of SMS folder name.
151 #define GSM_MAX_SMS_FOLDER_NAME_LEN 100
154 * Maximal count of SMSes in multi SMS.
156 * \ingroup Limits
158 #define GSM_MAX_MULTI_SMS 50
161 * Maximal length of UDH in SMS.
163 * \ingroup Limits
165 #define GSM_MAX_UDH_LENGTH 140
168 * Maximal length of text in SMS.
170 * \ingroup Limits
172 #define GSM_MAX_SMS_LENGTH 650
175 * Maximal length of text in standard 7-bit SMS.
177 * \ingroup Limits
179 #define GSM_MAX_SMS_CHARS_LENGTH 160
182 * Maximal length of 8-bit text in SMS.
184 * \ingroup Limits
186 #define GSM_MAX_8BIT_SMS_LENGTH 140
189 * Number of possible MMS folders.
191 * \ingroup Limits
193 #define GSM_MAX_MMS_FOLDERS 10
196 * Maximal length of MMS folder name.
198 * \ingroup Limits
200 #define GSM_MAX_MMS_FOLDER_NAME_LEN 20
203 * Maximal count of MMSes in multi MMS.
205 * \ingroup Limits
207 #define GSM_MAX_MULTI_MMS 20
210 * Maximal length of SMSC name.
212 * \ingroup Limits
214 #define GSM_MAX_SMSC_NAME_LENGTH 50
217 * Maximal count of notes in ringtone.
219 * \ingroup Limits
221 #define GSM_MAX_RINGTONE_NOTES 255
224 * Maximal length of ringtone name.
226 * \ingroup Limits
228 #define GSM_MAX_RINGTONE_NAME_LENGTH 30
231 * Maximal length of FM station name.
233 * \ingroup Limits
235 #define GSM_MAX_FMSTATION_LENGTH 30
238 * Maximal count of FM stations.
240 * \ingroup Limits
242 #define GSM_MAX_FM_STATION 30
245 * Maximal length of security code.
247 * \ingroup Limits
249 #define GSM_SECURITY_CODE_LEN 15
252 * Maximal length of category name.
254 * \ingroup Limits
256 #define GSM_MAX_CATEGORY_NAME_LENGTH 60
259 * Maximal size of bitmap.
261 * \ingroup Limits
263 #define GSM_BITMAP_SIZE (65+7)/8*96
266 * Maximal length of bitmap text.
268 * \ingroup Limits
270 #define GSM_BITMAP_TEXT_LENGTH 128
273 * Maximal count of bitmaps in multi bitmap.
275 * \ingroup Limits
277 #define GSM_MAX_MULTI_BITMAP 6
280 * Maximal length of file name.
282 * \ingroup Limits
284 #define GSM_MAX_FILENAME_LENGTH 256
287 * Maximal length of full file name (including path).
289 * \ingroup Limits
291 #define GSM_MAX_FILENAME_ID_LENGTH 4096
294 * Maximal number of features per phone.
296 * \ingroup Limits
298 #define GSM_MAX_PHONE_FEATURES 20
301 * Maximal length of USSD text.
303 * \ingroup Limits
305 #define GSM_MAX_USSD_LENGTH 999
308 * Maximal length of GPRS access point URL.
310 * \ingroup Limits
312 #define GSM_MAX_GPRS_AP_NAME_LENGTH 149
315 * Maximal length of GPRS access point URL.
317 * \ingroup Limits
319 #define GSM_MAX_GPRS_AP_URL_LENGTH 249
322 * Maximal number of call diverts.
324 * \ingroup Limits
326 #define GSM_MAX_CALL_DIVERTS 20
329 #endif
331 /* Editor configuration
332 * vim: noexpandtab sw=8 ts=8 sts=8 tw=72: