diff -r 4d198a32ac7d -r d4809db37847 plugins/org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-D19BB894-371A-4D55-A047-3B2F97673F5F.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugins/org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-D19BB894-371A-4D55-A047-3B2F97673F5F.html Thu Aug 19 17:48:04 2010 -0700 @@ -0,0 +1,161 @@ + + +
Description:
+The Import
method imports entries into a calendar.
+The information must be imported from an iCal or vCal file. For more information
+about these two formats, see the Calendar
+Service overview page.
This method can be called both synchronously and asynchronously.
+Syntax:
+For synchronous calls:
+result = so.IDataSource.Import(criteria);+ +
For asynchronous calls:
+result = so.IDataSource.Import(criteria, callback);+ +
Arguments:
+criteria
:
This is an object that specifies the calendar entries to import and +optionally the target calendar. For more information about the object properties +and how to define them, see section Criteria for importing calendar entries.
+ +callback
:
The callback
argument is the name of the method
+that is executed when an asynchronous Import
call has
+results or status information to return. You must define this method separately.
+Follow the instructions in section Defining the callback handler for an asynchronous method to
+define the callback
method.
This argument is used only with an asynchronous Import
call.
Return value:
+If synchronous, the Import
method returns an object
+that contains a list of the imported calendar entries, an error code, and
+an error message.
+ Property + |
+ Description + |
+ Value + |
---|---|---|
+
|
+
+ This is an iterator that contains an ordered list of objects. The objects
+contain the |
++ |
+
|
+
+ This is a number that specifies a predefined error code. + |
++ + | +
+
|
+
+ This is a text string that describes the error. + |
++ + | +
If asynchronous, the Import
method returns an object
+that contains a transaction ID for the callback
instance,
+an error code, and an error message (see the following table). When the asynchronous
+call has completed, callback
returns an object that contains
+a list of the imported calendar entries, an error code, and an error message
+(see the preceding table).
+ Property + |
+ Description + |
+ Value + |
---|---|---|
+
|
+
+ This is a number used as an identification to match transactions started
+with an asynchronous |
++ |
+
|
+
+ This is a number that specifies a predefined error code. + |
++ + | +
+
|
+
+ This is a text string that describes the error. + |
++ + | +
Remarks:
+If entries are imported to a calendar other than the default +one, the corresponding calendar file must exist on the device.
For detailed information about calendar entries, see section Calendar entries.
Example code:
+ +For the complete source of a sample widget +that demonstrates how to use this Service API, see the full example.
+ + + + +