Module call_history
[show private | hide private]
[frames | no frames]

Module call_history

Code to handle Call History data storage and display.

The format of the Call History is standardized.  It is an object with the
following attributes:

folder: string (where this item belongs)
datetime: string 'YYYYMMDDThhmmss' or (y,m,d,h,m,s)
number: string (the phone number of this call)
name: string (optional name associated with this number)
duration: int (optional duration of the call in minutes)

To implement Call History feature for a phone module:

  Add an entry into Profile._supportedsyncs:
  ('call_history', 'read', None),

  Implement the following method in your Phone class:
  def getcallhistory(self, result, merge):
     ...
     return result

The result dict key is 'call_history'.

Classes
CallHistoryDataobject  
CallHistoryEntry  
CallHistoryList  
CallHistoryWidget  

Function Summary
  GetDurationStr(duration)
convert duration int into an h:mm:ss formatted string

Function Details

GetDurationStr(duration)

convert duration int into an h:mm:ss formatted string

Generated by Epydoc 2.1 on Fri Aug 15 18:58:28 2008 http://epydoc.sf.net