WebAPI/LogAPI: Difference between revisions

Jump to navigation Jump to search
Line 17: Line 17:
interface LogManager : EventTarget  {
interface LogManager : EventTarget  {
     DOMRequest put(LogEntry entry);
     DOMRequest put(LogEntry entry);
     DOMRequest delete(DOMString entryId);
     DOMRequest delete(DOMString entryId); // Delete one entry
     DOMRequest clear(LogClearOptions coptions);
     DOMRequest clear(LogClearOptions coptions); // To clear the log for maintenance purposes
     // Entries are always returned ordered by timestamp (desc)
     // Entries are always returned ordered by timestamp (desc)
     DOMRequest find(optional LogFindOptions options,optional IteratorOptions iopts);
     DOMRequest find(optional LogFindOptions options,optional IteratorOptions iopts);
Line 41: Line 41:
   DOMString? service;
   DOMString? service;
   DOMString? type;
   DOMString? type;
};
dictionary LogClearOptions {
  Date? deadline;  // To clear all the entries older than the date passed as parameter
  DOMString? contactId;  // To clear all the entries corresponding to a contact
  DOMString? tel;
};
};


Line 50: Line 56:
interface LogEntryProperties {
interface LogEntryProperties {
   attribute DOMString type;  // possible values: ['incoming', 'outgoing'']
   attribute DOMString type;  // possible values: ['incoming', 'outgoing'']
   attribute DOMString status;  // [missed, new]         
   attribute DOMString? status;  // [missed, new]         
   attribute DOMString[] contactId;  // ContactId     
   attribute DOMString[]? contactId;  // ContactId     
   attribute DOMString[] tel;  // Tel number if not in contacts
   attribute DOMString[]? tel;  // Tel number if not in contacts
   attribute DOMString objectId;  // Object id (for example SMS message on the SMS database)   
   attribute DOMString? objectId;  // Object id (for example SMS message on the SMS database)   
   attribute DOMString service;  // oneOf ['SMS', 'Telephony', 'Facebook', 'Twitter']  
   attribute DOMString service;  // oneOf ['SMS', 'Telephony', 'Facebook', 'Twitter']  
   attribute DOMString title;             
   attribute DOMString? title;             
   attribute DOMString description;
   attribute DOMString? description;
   attribute any extra;  // Any extra data to be used by applications
   attribute any? extra;  // Any extra data to be used by applications
};
};


172

edits

Navigation menu