From 1abf498e7fbd914d12843b3426c1f26bde3b2e79 Mon Sep 17 00:00:00 2001 From: Wei Huang Date: Fri, 21 Aug 2009 07:56:36 -0700 Subject: [PATCH] add a "display_sent_time" column to the message table, to provide a hint that the UI should display time stamp for this message always. Add Gservices settings for gtalk stuff. --- core/java/android/provider/Im.java | 6 ++++++ core/java/android/provider/Settings.java | 15 +++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/core/java/android/provider/Im.java b/core/java/android/provider/Im.java index b1cf6485f54c7..d7e8f706e914f 100644 --- a/core/java/android/provider/Im.java +++ b/core/java/android/provider/Im.java @@ -931,6 +931,12 @@ public class Im { *

Type: INTEGER

*/ String IS_GROUP_CHAT = "is_muc"; + + /** + * A hint that the UI should show the sent time of this message + *

Type: INTEGER

+ */ + String DISPLAY_SENT_TIME = "show_ts"; } /** diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 84e07f08aa8b4..588068e5c383f 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -2929,6 +2929,21 @@ public final class Settings { public static final String GTALK_RMQ2_INCLUDE_STREAM_ID = "gtalk_rmq2_include_stream_id"; + /** + * when receiving a chat message from the server, the message could be an older message + * whose "time sent" is x seconds from now. If x is significant enough, we want to flag + * it so the UI can give it some special treatment when displaying the "time sent" for + * it. This setting is to control what x is. + */ + public static final String GTALK_OLD_CHAT_MESSAGE_THREADHOLD_IN_SEC = + "gtalk_old_chat_msg_threadhold_in_sec"; + + /** + * a setting to control the max connection history record GTalkService stores. + */ + public static final String GTALK_MAX_CONNECTION_HISTORY_RECORDS = + "gtalk_max_conn_history_records"; + /** * This is gdata url to lookup album and picture info from picasa web. */