summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/IContentService.aidl
diff options
context:
space:
mode:
authorFred Quintana <fredq@google.com>2009-08-16 23:13:53 -0700
committerFred Quintana <fredq@google.com>2009-08-17 13:02:42 -0700
commit5e787c42f2a6b3afc8ec8320a08d51b2d44b8614 (patch)
treef9aeb3e37f12d679a8f48a05c8c8be1328c46f35 /core/java/android/content/IContentService.aidl
parent76c830b229fc21d5ea0ea28955084cc187e25fc6 (diff)
downloadframeworks_base-5e787c42f2a6b3afc8ec8320a08d51b2d44b8614.zip
frameworks_base-5e787c42f2a6b3afc8ec8320a08d51b2d44b8614.tar.gz
frameworks_base-5e787c42f2a6b3afc8ec8320a08d51b2d44b8614.tar.bz2
- add a "isSyncable" flag to a given account/authority pair that
indicates whether or not syncs should be attempted for it. - add public methods to get and set this parameter
Diffstat (limited to 'core/java/android/content/IContentService.aidl')
-rw-r--r--core/java/android/content/IContentService.aidl12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/content/IContentService.aidl b/core/java/android/content/IContentService.aidl
index 658a5bc..b0f14c1 100644
--- a/core/java/android/content/IContentService.aidl
+++ b/core/java/android/content/IContentService.aidl
@@ -54,6 +54,18 @@ interface IContentService {
*/
void setSyncAutomatically(in Account account, String providerName, boolean sync);
+ /**
+ * Check if this account/provider is syncable.
+ * @return >0 if it is syncable, 0 if not, and <0 if the state isn't known yet.
+ */
+ int getIsSyncable(in Account account, String providerName);
+
+ /**
+ * Set whether this account/provider is syncable.
+ * @param syncable, >0 denotes syncable, 0 means not syncable, <0 means unknown
+ */
+ void setIsSyncable(in Account account, String providerName, int syncable);
+
void setMasterSyncAutomatically(boolean flag);
boolean getMasterSyncAutomatically();