From 48f886e661275a6b649699d556c8f01f384d88d8 Mon Sep 17 00:00:00 2001 From: Ye Wen Date: Wed, 26 Aug 2009 12:21:08 -0700 Subject: [PATCH] The Gservices settings for pruning messages/chats. --- core/java/android/provider/Settings.java | 26 ++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 9e3008b0dfdc9..77d1740dfcadb 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -2967,16 +2967,34 @@ public final class Settings { public static final String GTALK_YOUTUBE_VIDEO_URL = "gtalk_youtube_video_url"; + /** + * Chat message lifetime (for pruning old chat messages). + */ + public static final String GTALK_CHAT_MESSAGE_LIFETIME = + "gtalk_chat_message_lifetime"; + + /** + * OTR message lifetime (for pruning old otr messages). + */ + public static final String GTALK_OTR_MESSAGE_LIFETIME = + "gtalk_otr_message_lifetime"; + + /** + * Chat expiration time, i.e., time since last message in the chat (for pruning old chats). + */ + public static final String GTALK_CHAT_EXPIRATION_TIME = + "gtalk_chat_expiration_time"; + /** * This is the url for getting the app token for server-to-device push messaging. */ public static final String PUSH_MESSAGING_REGISTRATION_URL = "push_messaging_registration_url"; - /** - * Use android://<it> routing infos for Google Sync Server subcriptions. - */ - public static final String GSYNC_USE_RMQ2_ROUTING_INFO = "gsync_use_rmq2_routing_info"; + /** + * Use android://<it> routing infos for Google Sync Server subcriptions. + */ + public static final String GSYNC_USE_RMQ2_ROUTING_INFO = "gsync_use_rmq2_routing_info"; /** * Enable use of ssl session caching.