|
From: deloptes <del...@ya...> - 2012-02-12 16:52:46
|
deloptes wrote: > > So modified version of the previous plan: > > 1. initialize the plugin in the osync engine > 2. start the synthesis engine (UI) > 3. connect the phone or act as whatever SyncML client/server (DB? or UI?) > 4. sync (get changes etc) - provide a syncml plugin (DB) > 5. disconnect (DB? or UI?) > 6. stop the engine (UI) > 7. finalize the plugin in the osync engine > Hi, again, FYI: I am pretty occupied lately, but I am still working on this, so I was dealing with #1 and could initialize and open session on the engine. Now I am working on the discover part of the opensync plugin. I'm planning to do http-client/server first, so this is related to the client part. Here is some output from my code EKO: -------------------------------- EKO: bool OSynthML::SynthmlHttpClient::initialize(OSyncPlugin*, OSyncPluginInfo*, OSyncError**) EKO: >> m_canConnect:1 EKO: >> m_canDisconnect:1 EKO: >> m_canCommit:0 EKO: >> m_canGetChanges:0 EKO: >> m_canWrite:0 EKO: >> m_canCommitAll:0 EKO: >> m_canRead:0 EKO: >> m_canSyncDone:0 EKO: >> m_canBatchCommit:0 EKO: virtual void OSynthML::SynthmlHttpClient::connect()connect to Synthesis name='synthml-sync' err=0 modu='synthml-sync' err=404 modu='synthml-sync.so' err=0 func err=0 'SySync_ConnectEngine' 00007F813C68F6C0 call err=0 EKO: (SyncMLCfgPath) bool OSynthML::SynthmlHttpClient::initialize(OSyncPlugin*, OSyncPluginInfo*, OSyncError**)...../syncml-new/src/synthesis-client-conf.xml EKO: (InitEngineFile) bool OSynthML::SynthmlHttpClient::initialize(OSyncPlugin*, OSyncPluginInfo*, OSyncError**) OK EKO: (OpenKeyByPath:profiles) bool OSynthML::SynthmlHttpClient::initialize(OSyncPlugin*, OSyncPluginInfo*, OSyncError**) OK EKO: (OpenSession) bool OSynthML::SynthmlHttpClient::initialize(OSyncPlugin*, OSyncPluginInfo*, OSyncError**) OK EKO: (CloseSession) bool OSynthML::SynthmlHttpClient::initialize(OSyncPlugin*, OSyncPluginInfo*, OSyncError**) OK EKO: bool OSynthML::SynthmlHttpClient::initialize(OSyncPlugin*, OSyncPluginInfo*, OSyncError**) DONE EKO: void* synthml_http_client_initialize(OSyncPlugin*, OSyncPluginInfo*, OSyncError**) OK EKO: void* synthml_http_client_initialize(OSyncPlugin*, OSyncPluginInfo*, OSyncError**) OSyncObjTypeSink#contact EKO: bool OSynthML::DataSink::initialize(OSyncPlugin*, OSyncPluginInfo*, OSyncObjTypeSink*, OSyncError**) initializing: contact EKO: virtual sysync::CVersion OSynthML_Adapter_Module::Version() EKO mVersion: 17301505 EKO: virtual sysync::TSyError OSynthML_Adapter_Module::Capabilities(char*&) EKO cCaps: PLATFORM:Linux DLL:true MANUFACTURER:OpenSync.org DESCRIPTION:OSynthML_AdapterOpenSync Plugin MINVERSION:V1.5.1.0 ADMIN_Info:yes ITEM_AS_KEY:yes EKO mPlugParams: test EKO: virtual sysync::sInt32 OSynthML_Adapter_Session::PasswordMode() EKO pw mode: 2 EKO: >> m_canConnect:0 EKO: >> m_canDisconnect:0 EKO: >> m_canCommit:1 EKO: >> m_canGetChanges:1 EKO: >> m_canWrite:0 EKO: >> m_canCommitAll:0 EKO: >> m_canRead:0 EKO: >> m_canSyncDone:1 EKO: >> m_canBatchCommit:0 EKO: bool OSynthML::DataSink::initialize(OSyncPlugin*, OSyncPluginInfo*, OSyncObjTypeSink*, OSyncError**) DONE EKO: void* synthml_http_client_initialize(OSyncPlugin*, OSyncPluginInfo*, OSyncError**) DONE EKO: osync_bool synthml_discover(OSynthML::SYNTHML_PLUGIN_TYPE, OSyncPluginInfo*, void*, OSyncError**)Plugtype OBEX, CLIENT, SERVER: 1 EKO: osync_bool OSynthML::SynthmlHttpClient::testSupport(OSyncObjTypeSink*, OSyncPluginConfig*, std::string, OSyncError**) EKO: osync_bool OSynthML::SynthmlHttpClient::testSupport(OSyncObjTypeSink*, OSyncPluginConfig*, std::string, OSyncError**) DevInf or similar asking the engine to provide information EKO: osync_bool OSynthML::SynthmlHttpClient::testSupport(OSyncObjTypeSink*, OSyncPluginConfig*, std::string, OSyncError**) foreach collection EKO: osync_bool OSynthML::SynthmlHttpClient::testSupport(OSyncObjTypeSink*, OSyncPluginConfig*, std::string, OSyncError**)> configure ressource EKO: osync_bool OSynthML::SynthmlHttpClient::testSupport(OSyncObjTypeSink*, OSyncPluginConfig*, std::string, OSyncError**)1 DONE EKO: void synthml_http_client_finalize(void*) START EKO: virtual void OSynthML::SynthmlHttpClient::disconnect() disconnect from Synthesis EKO: virtual void OSynthML::SynthmlHttpClient::disconnect() OK EKO: virtual void OSynthML::SynthmlHttpClient::disconnect()0 EKO: void synthml_http_client_finalize(void*) DONE Discovered Objtypes: contact Format: vcard21 Format: vcard30 Here is some log from the initialization. more /home/yoki/kde-testdir/osynctrace/sysynclib_uni_linux* *** Start of log ==== Client Session started with SyncML (Server+Client) Engine Version 3.4.0.27 ---- Hardcoded Product name: SySync SyncML Library OpenSource Linux ---- Configured Model/Manufacturer: SySync SyncML Library OpenSource Linux / Synthesis AG ---- Running on Linux, URI/deviceID='linux:lisa.s-und-s.home' ---- Platform Hardware Name/Version = 'Linux PC', Firmware/OS Version = 'unknown' ---- Configured Hardware Version = 'Linux PC', Firmware Version = 'unknown' ---- System local time : 2012-02-12 17:39:19.358 (time zone 'CET/CEST', offset 1:00 hours east of UTC) ---- System time in UTC : 2012-02-12 16:39:19.358 ==== Config file='/home/yoki/opensync/svn-source/libopensync-plugin-akonadi/syncml-new/src/synthesis-client-conf.xml', Last Change=2012-02-12 16:13:01.000 ==== Config ID string='OpenSync.org SyncML Client Engine >=3.4 config' ##### DBApi (LNK): Session_CreateContext: desc='Text database module. Writes data directly to TDB_*.txt file', vers=V1.8.0.0 ##### TextDB (LNK): Session_CreateContext: 18291952 '212195867959357' [2012-02-12 17:39:19.358] SessionAbort - Aborting Session, Status=20017, ProblemSource=LOCAL WARNING: Aborting Session with Reason Status 20017 (LOCAL problem) *** --------------- Ignoring all commands in this message (after 0 sec. request processing, 0 sec. total) with Status 20017 (0=none) from here on [2012-02-12 17:39:19.358] End of 'SessionAbort' ##### TextDB (LNK): Session_Logout: 18291952 ##### TextDB (LNK): Session_DeleteContext: 18291952 *** End of log |