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