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.
This commit is contained in:
Patrick Ohly 2010-01-18 10:07:18 +01:00
parent 531110040f
commit 10011c6f20
2 changed files with 13 additions and 0 deletions

View file

@ -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"

View file

@ -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();
}