diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2010-01-18 10:07:18 +0100 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2010-01-18 10:13:07 +0100 |
commit | 10011c6f200dd13d4aad985fd67bcd3bd56a1417 (patch) | |
tree | 1bd90abdf17ecaad8129ada817502ad299a35bb3 | |
parent | 531110040f9b1cd69f33bf4f8b180c850c03015b (diff) |
Goosync: added template (MB #9113)
Goosync provides access to Google calendar, tasks and contacts
via SyncML. Google itself only supports contacts. Memos are not
supported by either of them.
This patch only adds the template with the necessary configuration
parameters. We have done no testing with the service, so it is
not marked as "consumer ready" at this time.
-rw-r--r-- | src/syncevo/Cmdline.cpp | 1 | ||||
-rw-r--r-- | src/syncevo/SyncConfig.cpp | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/syncevo/Cmdline.cpp b/src/syncevo/Cmdline.cpp index 66d43685..788f9be9 100644 --- a/src/syncevo/Cmdline.cpp +++ b/src/syncevo/Cmdline.cpp @@ -1250,6 +1250,7 @@ protected: CPPUNIT_ASSERT_EQUAL_DIFF("Available configuration templates:\n" " Funambol = http://my.funambol.com\n" " Google = http://m.google.com/sync\n" + " Goosync = http://www.goosync.com/\n" " Memotoo = http://www.memotoo.com\n" " Mobical = http://www.mobical.net\n" " Oracle = http://www.oracle.com/technology/products/beehive/index.html\n" diff --git a/src/syncevo/SyncConfig.cpp b/src/syncevo/SyncConfig.cpp index 72a4d132..737cbaaa 100644 --- a/src/syncevo/SyncConfig.cpp +++ b/src/syncevo/SyncConfig.cpp @@ -170,6 +170,7 @@ SyncConfig::ServerList SyncConfig::getServerTemplates() result.addDefaultTemplate("ZYB", "http://www.zyb.com"); result.addDefaultTemplate("Mobical", "http://www.mobical.net"); result.addDefaultTemplate("Oracle", "http://www.oracle.com/technology/products/beehive/index.html"); + result.addDefaultTemplate("Goosync", "http://www.goosync.com/"); result.sort(); return result; @@ -372,6 +373,17 @@ boost::shared_ptr<SyncConfig> SyncConfig::createServerTemplate(const string &ser source->setURI("./calendar/tasks"); source = config->getSyncSourceConfig("memo"); source->setURI("./notes"); + } else if (boost::iequals(server, "goosync")) { + config->setSyncURL("http://sync2.goosync.com/"); + config->setWebURL("http://www.goosync.com/"); + source = config->getSyncSourceConfig("addressbook"); + source->setURI("contacts"); + source = config->getSyncSourceConfig("calendar"); + source->setURI("calendar"); + source = config->getSyncSourceConfig("todo"); + source->setURI("tasks"); + source = config->getSyncSourceConfig("memo"); + source->setURI(""); } else { config.reset(); } |