Package gammu :: Module Data
[hide private]
[frames] | no frames]

Source Code for Module gammu.Data

  1  # -*- coding: UTF-8 -*- 
  2  # vim: expandtab sw=4 ts=4 sts=4: 
  3  ''' 
  4  Some static data. 
  5   
  6  @var Connections: List of connection types. 
  7  @var MemoryValueTypes: Types of memory entry values. 
  8  @var CalendarTypes: Types of calendar entries. 
  9  @var CalendarValueTypes: Types of calendar entry values. 
 10  @var TodoPriorities: Todo priorities. 
 11  @var TodoValueTypes: Types of todo entry values. 
 12  @var InternationalPrefixes: List of known internaltional prefixes. 
 13  ''' 
 14  __author__ = 'Michal Čihař' 
 15  __email__ = 'michal@cihar.com' 
 16  __license__ = ''' 
 17  Copyright (c) 2003 - 2007 Michal Čihař 
 18   
 19  This program is free software; you can redistribute it and/or modify it 
 20  under the terms of the GNU General Public License version 2 as published by 
 21  the Free Software Foundation. 
 22   
 23  This program is distributed in the hope that it will be useful, but WITHOUT 
 24  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
 25  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 
 26  more details. 
 27   
 28  You should have received a copy of the GNU General Public License along with 
 29  this program; if not, write to the Free Software Foundation, Inc., 
 30  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
 31  ''' 
 32   
 33  import sys 
 34   
 35  Connections = [ 
 36      'at19200', 
 37      'at115200', 
 38      'fbus', 
 39      'fbusirda', 
 40      'fbusdlr3', 
 41      'fbusdku5', 
 42      'mbus', 
 43      'irdaphonet', 
 44      'irdaat', 
 45      'irdaobex', 
 46      'dku2phonet', 
 47      'dku5fbus2', 
 48      'bluerffbus', 
 49      'bluerfphonet', 
 50      'bluephonet', 
 51      'bluerfat', 
 52      'blueat', 
 53      'phonetblue', 
 54      'fbusblue', 
 55      'fbuspl2303', 
 56      ] 
 57   
 58  MemoryValueTypes = [ 
 59      'Number_General', 
 60      'Number_Mobile', 
 61      'Number_Work', 
 62      'Number_Fax', 
 63      'Number_Home', 
 64      'Number_Pager', 
 65      'Number_Other', 
 66      'Text_Note', 
 67      'Text_Postal', 
 68      'Text_WorkPostal', 
 69      'Text_Email', 
 70      'Text_Email2', 
 71      'Text_URL', 
 72      'Date', 
 73      'Caller_Group', 
 74      'Text_Name', 
 75      'Text_LastName', 
 76      'Text_FirstName', 
 77      'Text_Company', 
 78      'Text_JobTitle', 
 79      'Category', 
 80      'Private', 
 81      'Text_StreetAddress', 
 82      'Text_City', 
 83      'Text_State', 
 84      'Text_Zip', 
 85      'Text_Country', 
 86      'Text_WorkStreetAddress', 
 87      'Text_WorkCity', 
 88      'Text_WorkState', 
 89      'Text_WorkZip', 
 90      'Text_WorkCountry', 
 91      'Text_Custom1', 
 92      'Text_Custom2', 
 93      'Text_Custom3', 
 94      'Text_Custom4', 
 95      'RingtoneID', 
 96      'PictureID', 
 97      'Text_UserID', 
 98      'CallLength', 
 99      'Text_LUID', 
100      'LastModified', 
101      'Text_NickName', 
102      'Text_FormalName', 
103      'PushToTalkID', 
104      ] 
105   
106  CalendarTypes = [ 
107      'REMINDER', 
108      'CALL', 
109      'MEETING', 
110      'BIRTHDAY', 
111      'MEMO', 
112      'TRAVEL', 
113      'VACATION', 
114      'T_ATHL', 
115      'T_BALL', 
116      'T_CYCL', 
117      'T_BUDO', 
118      'T_DANC', 
119      'T_EXTR', 
120      'T_FOOT', 
121      'T_GOLF', 
122      'T_GYM', 
123      'T_HORS', 
124      'T_HOCK', 
125      'T_RACE', 
126      'T_RUGB', 
127      'T_SAIL', 
128      'T_STRE', 
129      'T_SWIM', 
130      'T_TENN', 
131      'T_TRAV', 
132      'T_WINT', 
133      'ALARM', 
134      'DAILY_ALARM', 
135      ] 
136   
137  CalendarValueTypes = [ 
138      'START_DATETIME', 
139      'END_DATETIME', 
140      'TONE_ALARM_DATETIME', 
141      'SILENT_ALARM_DATETIME', 
142      'RECURRANCE', 
143      'TEXT', 
144      'DESCRIPTION', 
145      'LOCATION', 
146      'PHONE', 
147      'PRIVATE', 
148      'CONTACTID', 
149      'REPEAT_DAYOFWEEK', 
150      'REPEAT_DAY', 
151      'REPEAT_WEEKOFMONTH', 
152      'REPEAT_MONTH', 
153      'REPEAT_FREQUENCY', 
154      'REPEAT_STARTDATE', 
155      'REPEAT_STOPDATE', 
156      'LUID', 
157      'LAST_MODIFIED', 
158      ] 
159   
160  TodoPriorities = [ 
161      'High', 
162      'Medium', 
163      'Low', 
164      'None', 
165      ] 
166   
167  TodoValueTypes = [ 
168      'END_DATETIME', 
169      'COMPLETED', 
170      'ALARM_DATETIME', 
171      'SILENT_ALARM_DATETIME', 
172      'TEXT', 
173      'DESCRIPTION', 
174      'LOCATION', 
175      'LUID', 
176      'PRIVATE', 
177      'CATEGORY', 
178      'CONTACTID', 
179      'PHONE', 
180      'LAST_MODIFIED', 
181      ] 
182   
183  InternationalPrefixes = [ 
184      '+1', 
185      '+20', 
186   
187      '+210', 
188      '+211', 
189      '+212', 
190      '+213', 
191      '+214', 
192      '+215', 
193      '+216', 
194      '+217', 
195      '+218', 
196      '+219', 
197   
198   
199      '+220', 
200      '+221', 
201      '+222', 
202      '+223', 
203      '+224', 
204      '+225', 
205      '+226', 
206      '+227', 
207      '+228', 
208      '+229', 
209   
210   
211      '+230', 
212      '+231', 
213      '+232', 
214      '+233', 
215      '+234', 
216      '+235', 
217      '+236', 
218      '+237', 
219      '+238', 
220      '+239', 
221   
222   
223      '+240', 
224      '+241', 
225      '+242', 
226      '+243', 
227      '+244', 
228      '+245', 
229      '+246', 
230      '+247', 
231      '+248', 
232      '+249', 
233   
234   
235      '+250', 
236      '+251', 
237      '+252', 
238      '+253', 
239      '+254', 
240      '+255', 
241      '+256', 
242      '+257', 
243      '+258', 
244      '+259', 
245   
246   
247      '+260', 
248      '+261', 
249      '+262', 
250      '+263', 
251      '+264', 
252      '+265', 
253      '+266', 
254      '+267', 
255      '+268', 
256      '+269', 
257      '+27', 
258      '+28', 
259   
260      '+290', 
261      '+291', 
262      '+292', 
263      '+293', 
264      '+294', 
265      '+295', 
266      '+296', 
267      '+297', 
268      '+298', 
269      '+299', 
270      '+30', 
271      '+31', 
272      '+32', 
273      '+33', 
274      '+34', 
275   
276      '+350', 
277      '+351', 
278      '+352', 
279      '+353', 
280      '+354', 
281      '+355', 
282      '+356', 
283      '+357', 
284      '+358', 
285      '+359', 
286      '+36', 
287   
288      '+370', 
289      '+371', 
290      '+372', 
291      '+373', 
292      '+374', 
293      '+375', 
294      '+376', 
295      '+377', 
296      '+378', 
297      '+379', 
298   
299   
300      '+380', 
301      '+381', 
302      '+382', 
303      '+383', 
304      '+384', 
305      '+385', 
306      '+386', 
307      '+387', 
308      '+388', 
309      '+389', 
310      '+39', 
311      '+40', 
312      '+41', 
313   
314      '+420', 
315      '+421', 
316      '+422', 
317      '+423', 
318      '+424', 
319      '+425', 
320      '+426', 
321      '+427', 
322      '+428', 
323      '+429', 
324      '+43', 
325      '+44', 
326      '+45', 
327      '+46', 
328      '+47', 
329      '+48', 
330      '+49', 
331   
332      '+500', 
333      '+501', 
334      '+502', 
335      '+503', 
336      '+504', 
337      '+505', 
338      '+506', 
339      '+507', 
340      '+508', 
341      '+509', 
342      '+51', 
343      '+52', 
344      '+53', 
345      '+54', 
346      '+55', 
347      '+56', 
348      '+57', 
349      '+58', 
350   
351      '+590', 
352      '+591', 
353      '+592', 
354      '+593', 
355      '+594', 
356      '+595', 
357      '+596', 
358      '+597', 
359      '+598', 
360      '+599', 
361      '+60', 
362      '+61', 
363      '+62', 
364      '+63', 
365      '+64', 
366      '+65', 
367      '+66', 
368   
369      '+670', 
370      '+671', 
371      '+672', 
372      '+673', 
373      '+674', 
374      '+675', 
375      '+676', 
376      '+677', 
377      '+678', 
378      '+679', 
379   
380   
381      '+680', 
382      '+681', 
383      '+682', 
384      '+683', 
385      '+684', 
386      '+685', 
387      '+686', 
388      '+687', 
389      '+688', 
390      '+689', 
391   
392   
393      '+690', 
394      '+691', 
395      '+692', 
396      '+693', 
397      '+694', 
398      '+695', 
399      '+696', 
400      '+697', 
401      '+698', 
402      '+699', 
403      '+7', 
404   
405      '+800', 
406      '+801', 
407      '+802', 
408      '+803', 
409      '+804', 
410      '+805', 
411      '+806', 
412      '+807', 
413      '+808', 
414      '+809', 
415      '+81', 
416      '+82', 
417      '+83', 
418      '+84', 
419   
420      '+850', 
421      '+851', 
422      '+852', 
423      '+853', 
424      '+854', 
425      '+855', 
426      '+856', 
427      '+857', 
428      '+858', 
429      '+859', 
430      '+86', 
431   
432      '+870', 
433      '+871', 
434      '+872', 
435      '+873', 
436      '+874', 
437      '+875', 
438      '+876', 
439      '+877', 
440      '+878', 
441      '+879', 
442   
443   
444      '+880', 
445      '+881', 
446      '+882', 
447      '+883', 
448      '+884', 
449      '+885', 
450      '+886', 
451      '+887', 
452      '+888', 
453      '+889', 
454      '+89', 
455      '+90', 
456      '+91', 
457      '+92', 
458      '+93', 
459      '+94', 
460      '+95', 
461   
462      '+960', 
463      '+961', 
464      '+962', 
465      '+963', 
466      '+964', 
467      '+965', 
468      '+966', 
469      '+967', 
470      '+968', 
471      '+969', 
472   
473   
474      '+970', 
475      '+971', 
476      '+972', 
477      '+973', 
478      '+974', 
479      '+975', 
480      '+976', 
481      '+977', 
482      '+978', 
483      '+979', 
484      '+98', 
485   
486      '+990', 
487      '+991', 
488      '+992', 
489      '+993', 
490      '+994', 
491      '+995', 
492      '+996', 
493      '+997', 
494      '+998', 
495      '+999', 
496      ] 
497