Changes

Jump to: navigation, search

CloudServices/Sync/FxSync/Developer/ClientAPI

111 bytes added, 02:03, 30 January 2009
Writing a Tracker class
== Writing a Tracker class ==
Your tracker class must inherit from <tt>Tracker</tt>, which is defined in <tt>weave/engines/trackers.js</tt>. Its purpose in life is to track changes to whatever data type you are syncing. It must maintain a list of GUIDs for objects that have been changed and therefore require syncing. It also has to maintain a "score", which is a number from 0 to 100 which represents "how badly does this data type need to be synced right now".
Your Getting your tracker has to maintain two critical pieces of information. One track changes in the underlying data is a list of GUIDs for objects that have been changed and therefore require syncing. The other is a "score", which is a number from 0 to 100 which represents "how badly does this data type need to be synced right now". You will probably want easiest to do if you register your tracker as an observer, to get notified by so that it can receive notifications from one or more Mozilla when it does something you care aboutcomponents. What events you listen for is entirely up to you. You can find out more about registering as an observer here: [link].
=== The Score ===
1,007
edits

Navigation menu