1 /**
2  * \file gammu-limits.h
3  * \author Michal Čihař
4  *
5  * Limits definitions.
6  */
7 #ifndef __gammu_limits_h
8 #define __gammu_limits_h
9 
10 #ifdef	__cplusplus
11 extern "C" {
12 #endif
13 
14 /**
15  * \defgroup Limits Limits
16  * Limits definitions.
17  */
18 
19 
20 /**
21  * Maximum number of deferred events in queue.
22  *
23  * \ingroup Limits
24  */
25 #define MAX_DEFERRED_EVENTS 5
26 
27 /**
28  * Maximal length of manufacturer name.
29  *
30  * \ingroup Limits
31  */
32 #define GSM_MAX_MANUFACTURER_LENGTH 50
33 
34 /**
35  * Maximal length of model name.
36  *
37  * \ingroup Limits
38  */
39 #define GSM_MAX_MODEL_LENGTH 50
40 
41 /**
42  * Maximal length of version text. This needs to hold all information we
43  * receive, so buffer has to be big enough.
44  *
45  * \ingroup Limits
46  */
47 #define GSM_MAX_VERSION_LENGTH 200
48 
49 /**
50  * Maximal length of version date.
51  *
52  * \ingroup Limits
53  */
54 #define GSM_MAX_VERSION_DATE_LENGTH 50
55 
56 /**
57  * Maximal length of IMEI.
58  *
59  * \ingroup Limits
60  */
61 #define GSM_MAX_IMEI_LENGTH 35
62 
63 /**
64  * Maximal length of various phone information. Just a shorcut for
65  * functions doing whole identification and use one buffer.
66  *
67  * \ingroup Limits
68  */
69 #define GSM_MAX_INFO_LENGTH MAX(MAX(MAX(GSM_MAX_VERSION_LENGTH, \
70 	GSM_MAX_IMEI_LENGTH), GSM_MAX_MODEL_LENGTH), \
71 	GSM_MAX_MANUFACTURER_LENGTH)
72 
73 /**
74  * Maximal count of SMS messages in folder.
75  *
76  * \ingroup Limits
77  */
78 #define GSM_PHONE_MAXSMSINFOLDER 100000
79 
80 /**
81  * Maximal length of phone number.
82  *
83  * \ingroup Limits
84  */
85 #define GSM_MAX_NUMBER_LENGTH 200
86 
87 /**
88  * Maximal count of todo and calendar notes.
89  *
90  * \ingroup Limits
91  */
92 #define GSM_MAXCALENDARTODONOTES 1000
93 
94 /**
95  * Maximal length of text in phonebook.
96  *
97  * \ingroup Limits
98  */
99 #define GSM_PHONEBOOK_TEXT_LENGTH 200
100 
101 /**
102  * Maximal count of phonebook notes.
103  *
104  * \ingroup Limits
105  */
106 #define GSM_PHONEBOOK_ENTRIES 40
107 
108 /**
109  * Maximal number of calendar entries.
110  *
111  * \ingroup Limits
112  */
113 #define GSM_CALENDAR_ENTRIES 16
114 
115 /**
116  * Maximal length of text in calendar.
117  *
118  * \ingroup Limits
119  */
120 #define GSM_MAX_CALENDAR_TEXT_LENGTH 4096
121 
122 /**
123  * Maximal length of text in calendar.
124  *
125  * \ingroup Limits
126  */
127 #define GSM_MAX_NOTE_TEXT_LENGTH 4096
128 
129 /**
130  * Maximal number of todo entries.
131  *
132  * \ingroup Limits
133  */
134 #define GSM_TODO_ENTRIES 16
135 
136 /**
137  * Maximal length of text in todo.
138  *
139  * \ingroup Limits
140  */
141 #define GSM_MAX_TODO_TEXT_LENGTH 160
142 
143 /**
144  * Maximal length of SMS name.
145  */
146 #define GSM_MAX_SMS_NAME_LENGTH 200
147 
148 /**
149  * Maximal count of other numbes in SMS.
150  *
151  * \ingroup Limits
152  */
153 #define GSM_SMS_OTHER_NUMBERS 5
154 
155 /**
156  * Number of possible SMS folders.
157  */
158 #define GSM_MAX_SMS_FOLDERS 50
159 
160 /**
161  * Maximal length of SMS folder name.
162  */
163 #define GSM_MAX_SMS_FOLDER_NAME_LEN 100
164 
165 /**
166  * Maximal count of SMSes in multi SMS.
167  *
168  * \ingroup Limits
169  */
170 #define GSM_MAX_MULTI_SMS 50
171 
172 /**
173  * Maximal length of UDH in SMS.
174  *
175  * \ingroup Limits
176  */
177 #define GSM_MAX_UDH_LENGTH 140
178 
179 /**
180  * Maximal length of text in SMS.
181  *
182  * \ingroup Limits
183  */
184 #define GSM_MAX_SMS_LENGTH 650
185 
186 /**
187  * Maximal length of text in standard 7-bit SMS.
188  *
189  * \ingroup Limits
190  */
191 #define GSM_MAX_SMS_CHARS_LENGTH 160
192 
193 /**
194  * Maximal length of 8-bit text in SMS.
195  *
196  * \ingroup Limits
197  */
198 #define GSM_MAX_8BIT_SMS_LENGTH 140
199 
200 /**
201  * Number of possible MMS folders.
202  *
203  * \ingroup Limits
204  */
205 #define GSM_MAX_MMS_FOLDERS 10
206 
207 /**
208  * Maximal length of MMS folder name.
209  *
210  * \ingroup Limits
211  */
212 #define GSM_MAX_MMS_FOLDER_NAME_LEN 20
213 
214 /**
215  * Maximal count of MMSes in multi MMS.
216  *
217  * \ingroup Limits
218  */
219 #define GSM_MAX_MULTI_MMS 20
220 
221 /**
222  * Maximal length of SMSC name.
223  *
224  * \ingroup Limits
225  */
226 #define GSM_MAX_SMSC_NAME_LENGTH 50
227 
228 /**
229  * Maximal count of notes in ringtone.
230  *
231  * \ingroup Limits
232  */
233 #define GSM_MAX_RINGTONE_NOTES 255
234 
235 /**
236  * Maximal length of ringtone name.
237  *
238  * \ingroup Limits
239  */
240 #define GSM_MAX_RINGTONE_NAME_LENGTH 30
241 
242 /**
243  * Maximal length of FM station name.
244  *
245  * \ingroup Limits
246  */
247 #define GSM_MAX_FMSTATION_LENGTH 30
248 
249 /**
250  * Maximal count of FM stations.
251  *
252  * \ingroup Limits
253  */
254 #define GSM_MAX_FM_STATION 30
255 
256 /**
257  * Maximal length of security code.
258  *
259  * \ingroup Limits
260  */
261 #define GSM_SECURITY_CODE_LEN 15
262 
263 /**
264  * Maximal length of category name.
265  *
266  * \ingroup Limits
267  */
268 #define GSM_MAX_CATEGORY_NAME_LENGTH 60
269 
270 /**
271  * Maximal size of bitmap.
272  *
273  * \ingroup Limits
274  */
275 #define GSM_BITMAP_SIZE (65+7)/8*96
276 
277 /**
278  * Maximal length of bitmap text.
279  *
280  * \ingroup Limits
281  */
282 #define GSM_BITMAP_TEXT_LENGTH 128
283 
284 /**
285  * Maximal count of bitmaps in multi bitmap.
286  *
287  * \ingroup Limits
288  */
289 #define GSM_MAX_MULTI_BITMAP 6
290 
291 /**
292  * Maximal length of file name.
293  *
294  * \ingroup Limits
295  */
296 #define GSM_MAX_FILENAME_LENGTH 256
297 
298 /**
299  * Maximal length of full file name (including path).
300  *
301  * \ingroup Limits
302  */
303 #define GSM_MAX_FILENAME_ID_LENGTH 4096
304 
305 /**
306  * Maximal number of features per phone.
307  *
308  * \ingroup Limits
309  */
310 #define GSM_MAX_PHONE_FEATURES 20
311 
312 /**
313  * Maximal length of USSD text.
314  *
315  * \ingroup Limits
316  */
317 #define GSM_MAX_USSD_LENGTH 999
318 
319 /**
320  * Maximal length of GPRS access point URL.
321  *
322  * \ingroup Limits
323  */
324 #define GSM_MAX_GPRS_AP_NAME_LENGTH 149
325 
326 /**
327  * Maximal length of GPRS access point URL.
328  *
329  * \ingroup Limits
330  */
331 #define GSM_MAX_GPRS_AP_URL_LENGTH 249
332 
333 /**
334  * Maximal number of call diverts.
335  *
336  * \ingroup Limits
337  */
338 #define GSM_MAX_CALL_DIVERTS 20
339 
340 
341 #ifdef	__cplusplus
342 }
343 #endif
344 #endif
345 
346 /* Editor configuration
347  * vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
348  */
349