Advertisement
Guest User

Untitled

a guest
Mar 13th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. # caldav.provider - install to /usr/share/accounts/providers
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <!DOCTYPE provider>
  4. <provider version="1.0" id="caldav">
  5. <name>CalDAV</name>
  6. <description>CalDAV Sync Provider</description>
  7. <icon>image://theme/icon-m-sync</icon>
  8. </provider>
  9.  
  10. # caldav-yahoo.service - install to /usr/share/accounts/services
  11. <?xml version="1.0" encoding="UTF-8" ?>
  12. <service id="caldav-yahoo">
  13. <type>sync</type>
  14. <name>Yahoo! Calendar</name>
  15. <icon>image://theme/icon-m-sync</icon>
  16. <provider>caldav</provider>
  17.  
  18. <template>
  19. <setting name="sync_profile">caldav-sync</setting>
  20. <group name="auth">
  21. <setting name="method">password</setting>
  22. <setting name="mechanism">password</setting>
  23. </group>
  24. </template>
  25. </service>
  26.  
  27. # create an account (first zypper in libaccounts-glib-tools)
  28. # $ ag-tool list-services # force reloading provider/service files
  29. # $ ag-tool create-account caldav testcaldav disable
  30. # find out what the ACCOUNT_ID of the account is
  31. # $ ag-tool list-accounts
  32. # manually create a per-account sync profile for that account:
  33.  
  34. # caldav-sync-ACCOUNT_ID.xml - install to /home/nemo/.cache/msyncd/sync/
  35. <?xml version="1.0" encoding="UTF-8"?>
  36. <profile name="caldav-sync" type="sync" >
  37. <key name="destinationtype" value="online"/>
  38. <key name="enabled" value="true"/>
  39. <key name="hidden" value="true"/>
  40. <key name="use_accounts" value="true"/>
  41. <key name="displayname" value="testcaldav"/>
  42. <key name="accountid" value="ACCOUNT_ID"/>
  43. <key name="remote_server_address" value="https://caldav.calendar.yahoo.com"/>
  44. <key name="account_service_name" value="caldav-yahoo"/>
  45.  
  46. <!--
  47. Hack the caldav plugin code to read these keys and use them.
  48. On device, we store these credentials into an Identity associated
  49. with the Account, but ag-tool doesn't allow creating credentials,
  50. so for testing purposes, you can just hack the caldav plugin code
  51. to get it from here, instead of doing signon with the account.
  52. -->
  53. <key name="user_name" value="YOUR_USER_NAME"/>
  54. <key name="password" value="YOUR_PASSWORD"/>
  55.  
  56. <profile type="client" name="caldav">
  57. <key value="two-way" name="Sync Direction"/>
  58. <key value="caldav" name="Sync Protocol"/>
  59. <key value="HTTP" name="Sync Transport"/>
  60. <key value="prefer remote" name="conflictpolicy" />
  61. </profile>
  62. </profile>
  63.  
  64. # trigger a sync with that profile
  65. # $ dbus-send --session --type=method_call --print-reply --dest=com.meego.msyncd /synchronizer com.meego.msyncd.startSync string:'caldav-sync-ACCOUNT_ID'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement