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