Lukas Zeller | 29 Mar 2012 11:32
Picon
Gravatar

Re: os-libsynthesis Digest, Vol 33, Issue 9

Hi Zhoulei,

On Mar 29, 2012, at 5:45 , zhou lei wrote:

> In the configure XML file, I set the datastore name to "contacts" which is named "test_contacts" before.
And in it, change the displayname to "contacts", set the plugin_module to "iPhone_dbplugin1" which is
named "SDK_textdb". Is that correct?

That's correct. However, I tried it myself and as you found, there's still that Error 20010, which means
that something is wrong in the XML config.
Unfortunately, the sample app did not output the config error messages to the console as it should have. I
fixed this, please see the lastest commit in the luz branch on gitorious (the config variable
"conferrpath" must be set to "console"). With this, the XCode debug console shows what is the problem:

 Fatal: Module does not understand params passed in <plugin_params>

This is because the sample uses the <datafilepath> <plugin_param>, which is specific to the SDK_textdb
plugin, and is not understood by the dummy plugins. So just comment out or remove the entire
<plugin_param>, and the sync engine will initialize correctly.

In the same commit, I also added a line to enable syncml engine logs to tmp/sysynclogs for DEBUG builds, so it
is easier to get started with the sample and see what the SyncML engine is doing.

> When i using the sqlite, i found out that there is no place to set the key "prefs_path",

The prefs_path just returns the default directory for the platform to store preferences, so you can use it
in the XML config or your app to avoid hard-coded paths. 

> and in the sdk document, so should i set it as a defout path to create a SQLite db file?

(Continue reading)


Gmane