WebAPI/LogAPI: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 5: Line 5:
interface LogManager : EventTarget {
interface LogManager : EventTarget {
     DOMRequest add(LogEntry entry);
     DOMRequest add(LogEntry entry);
     DOMRequest remove(DOMString entryId);
     DOMRequest delete(DOMString entryId);
     DOMRequest removeOld(DOMTimestamp to,optional DOMString contactId)
     DOMRequest clear(LogClearOptions coptions);
     DOMRequest getLast(LogOptions options);
     DOMRequest getLast(LogOptions options);
     DOMRequest find(LogFindOptions options);
     DOMRequest find(LogFindOptions options);


   attribute Function onentryadded;
   attribute Function onentryadded;
};
interface LogIterator {
  DOMRequest next(optional number n);
  readonly attribute boolean has_next;
  DOMRequest advance(count);
};
};


Line 28: Line 34:
   attribute DOMString[] contactId;            // ContactId
   attribute DOMString[] contactId;            // ContactId
   attribute DOMString[] tel;                      // Tel number if not already in contacts
   attribute DOMString[] tel;                      // Tel number if not already in contacts
   attribute DOMString objectId;                // Object id (for example SMS message)
   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;
   attribute any extra;                               // Any extra data to be interpreted
};
};


172

edits

Navigation menu