2009/dap/calendar Overview.html,1.17,1.18

Update of /sources/public/2009/dap/calendar
In directory hutz:/tmp/cvs-serv11255

Modified Files:
	Overview.html 
Log Message:
some bugs from Contacts; find -> findEvents

Index: Overview.html
===================================================================
RCS file: /sources/public/2009/dap/calendar/Overview.html,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- Overview.html	16 Mar 2011 05:59:59 -0000	1.17
+++ Overview.html	16 Mar 2011 06:08:54 -0000	1.18
@@ -149,8 +149,7 @@
 
 // Perform an calendar search. Initially filter the list to Calendar records starting 
 // before April 9, 2011 @ 5pm (UTC).
-navigator.service.calendar.find( navigator.service.calendar.EVENT_TYPE, // "event"
-                                 successCalendarFindEventsCallback, 
+navigator.service.calendar.findEvents( successCalendarFindEventsCallback, 
                                  generalErrorCB,
                                  {
                                    filter: { startBefore: '2011-04-10T05:00:00+12:00' }
@@ -192,12 +191,12 @@
               <p>
                 To <dfn>dispatch a <code>success</code> event</dfn> means that an event with the name <code>success</code>, which does
                 not bubble and is not cancelable, and which uses the <code>Event</code> interface, is to be dispatched at the <a
-                 href="#contactfindcb-interface"><code>ContactFindCB</code></a> object.
+                 href="#calendareventsuccesscb-interface"><code>CalendarEventSuccessCB</code></a> object.
               </p>
               <p>
                 To <dfn>dispatch an <code>error</code> event</dfn> means that an event with the name <code>error</code>, which does
                 not bubble and is not cancelable, and which uses the <code>Event</code> interface, is to be dispatched at the <a
-                 href="#contacterrorcb-interface"><code>ContactErrorCB</code></a> object.
+                 href="#calendarerrorcb-interface"><code>CalendarErrorCB</code></a> object.
               </p>
             </section>
 
@@ -424,14 +423,8 @@
 				</p>
 				
                 <dl title='[NoInterfaceObject] interface Calendar' class='idl'>
-                  <dt>
-                     const DOMString EVENT_TYPE = "event"
-                   </dt>
-                   <dd>
-                     A constant representing an input value to the <code>type</code> parameter of the <a href="#widl-Calendar-find">find()</a> operation.
-                   </dd>
                    <dt>
-                        caller PendingOp find ()
+                        caller PendingOp findEvents ()
                     </dt>
                     <dd>
                     	<p>Find calendar event items in the calendar based on an <a href="#calendareventfilter-interface"><code>CalendarEventFilter</code></a> object</p>
@@ -444,7 +437,7 @@
                           <li>
                             If there are any <a>tasks</a> from the <a
                              title="PendingOp task source"><code>PendingOp</code> task source</a> in one of the <a>task queues</a>
-                            (i.e. an existing <code>find()</code> operation is still pending a response), and the current method was invoked with a
+                            (i.e. an existing <code>findEvents()</code> operation is still pending a response), and the current method was invoked with a
                             non-<code>null</code> <code>errorCB</code> argument, <a>dispatch an <code>error</code> event</a> with a <a
                              href='#widl-CalendarError-PENDING_OPERATION_ERROR'><code>PENDING_OPERATION_ERROR</code></a> <code>code</code> value.
                           </li>
@@ -806,7 +799,7 @@
                    <dd>
                      A boolean value to indicate whether multiple Calendar objects are returnable as part of the associated <a
                       href="#calendar-interface"><code>Calendar</code></a> <a
-                      href="#widl-Contacts-find">find()</a> operation.
+                      href="#widl-Calendar-findEvents">findEvents()</a> operation.
                       
                       <p>
                         By default this option is set to <code>true</code>.
@@ -1000,7 +993,7 @@
             const unsigned short PENDING_OPERATION_ERROR = 3
           </dt>
           <dd>
-            If the <a>user agent</a> is currently waiting for a callback on a current find() operation, as defined in this specification.
+            If the <a>user agent</a> is currently waiting for a callback on a current findEvents() operation, as defined in this specification.
           </dd>
           <dt>
             const unsigned short IO_ERROR = 4
@@ -1044,8 +1037,7 @@
 				</p>
 				<p>
 					For example, the following <a href="#calendareventfilter-interface"><code>CalendarEventFilter</code></a> object is supplied for Calendar Event searching: 
-					<pre class="example sh_javascript">navigator.service.calendar.find(
-  'event',
+					<pre class="example sh_javascript">navigator.service.calendar.findEvents(
   function(eventItems) { },
   function(error) { },
   { filter: { 
@@ -1195,7 +1187,7 @@
    <li><code>mouseup</code></li>
 </ul>
 
-<p>The <code>find()</code> method on <a href="#calendar-interface"><code>Calendar</code></a> should, if the method was invoked 
+<p>The <code>findEvents()</code> method on <a href="#calendar-interface"><code>Calendar</code></a> should, if the method was invoked 
 by an <a>interaction of a user</a> (as opposed to having been created and executed in general script), display the 
 <a>Calendar Picker</a> directly.</p>
 
@@ -1313,7 +1305,7 @@
             
             <p>
                To update an existing Calendar Event, the user must have already shared the event information to edit with the current web page via the
-               <a href='#widl-Calendar-find'>find()</a> operation of the <a href="#calendar-interface"><code>Calendar</code></a> interface.
+               <a href='#widl-Calendar-findEvents'>findEvents()</a> operation of the <a href="#calendar-interface"><code>Calendar</code></a> interface.
                This section assumes that the user is already sharing some calendar event information with the current web page via this process.
             </p>
             
@@ -1333,7 +1325,7 @@
                <pre class="sh_javascript">&lt;a id=&quot;vcard&quot;&gt;Update our Event in your Calendar&lt;/a&gt;
 
 &lt;script type=&quot;text/javascript&quot;&gt;
-  // Obtain a single existing Calendar Event object resulting from navigator.service.calendar.find()
+  // Obtain a single existing Calendar Event object resulting from navigator.service.calendar.findEvents()
   var existingCalendarEventObj = ...;
   
   // Modify some parameters as required. e.g. add a new phone number

Received on Wednesday, 16 March 2011 06:08:57 UTC