Build 1.0_r1(from source)

android.provider
Class Sync.Settings.QueryMap

java.lang.Object
  extended by java.util.Observable
      extended by android.content.ContentQueryMap
          extended by android.provider.Sync.Settings.QueryMap
Enclosing class:
Sync.Settings

public static class Sync.Settings.QueryMap
extends ContentQueryMap


Constructor Summary
Sync.Settings.QueryMap(ContentResolver contentResolver, boolean keepUpdated, Handler handlerForUpdateNotifications)
           
 
Method Summary
 boolean getListenForNetworkTickles()
          Check if the tickle xmpp connection should be established
 boolean getSyncProviderAutomatically(String providerName)
          Check if the provider should be synced when a network tickle is received
 void setListenForNetworkTickles(boolean flag)
          Set whether or not the tickle xmpp connection should be established.
 void setSyncProviderAutomatically(String providerName, boolean sync)
          Set whether or not the provider is synced when it receives a network tickle.
 
Methods inherited from class android.content.ContentQueryMap
close, finalize, getRows, getValues, requery, setKeepUpdated
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sync.Settings.QueryMap

public Sync.Settings.QueryMap(ContentResolver contentResolver,
                              boolean keepUpdated,
                              Handler handlerForUpdateNotifications)
Method Detail

getSyncProviderAutomatically

public boolean getSyncProviderAutomatically(String providerName)
Check if the provider should be synced when a network tickle is received

Parameters:
providerName - the provider whose setting we are querying
Returns:
true of the provider should be synced when a network tickle is received

setSyncProviderAutomatically

public void setSyncProviderAutomatically(String providerName,
                                         boolean sync)
Set whether or not the provider is synced when it receives a network tickle.

Parameters:
providerName - the provider whose behavior is being controlled
sync - true if the provider should be synced when tickles are received for it

setListenForNetworkTickles

public void setListenForNetworkTickles(boolean flag)
Set whether or not the tickle xmpp connection should be established.

Parameters:
flag - true if the tickle xmpp connection should be established

getListenForNetworkTickles

public boolean getListenForNetworkTickles()
Check if the tickle xmpp connection should be established

Returns:
true if it should be stablished

Build 1.0_r1(from source)

Please submit a feedback, bug or feature