use sc-pim- prefix for device ID

The prefix is important: without it, myFUNAMBOL 6.x and 7.0 map
all SyncEvolution instances to the single phone that they support,
which leads to unwanted slow syncs when switching between multiple
instances.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@666 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
Patrick Ohly 2008-07-11 20:28:00 +00:00
parent f32501af5f
commit bd92e16cdc

View file

@ -130,7 +130,11 @@ boost::shared_ptr<EvolutionSyncConfig> EvolutionSyncConfig::createServerTemplate
boost::shared_ptr<PersistentEvolutionSyncSourceConfig> source;
config->setDefaults();
config->setDevID(string("uuid-") + UUID());
// The prefix is important: without it, myFUNAMBOL 6.x and 7.0 map
// all SyncEvolution instances to the single phone that they support,
// which leads to unwanted slow syncs when switching between multiple
// instances.
config->setDevID(string("sc-pim-") + UUID());
config->setSourceDefaults("addressbook");
config->setSourceDefaults("calendar");
config->setSourceDefaults("todo");