blob: b4505c93fa65528cfd7ccb9657ad86a5d731acae [file] [log] [blame]
Mindy Pereira6f92de62011-12-19 11:31:48 -08001/**
2 * Copyright (c) 2011, Google Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Andy Huang30e2c242012-01-06 18:14:30 -080017package com.android.mail.providers;
Mindy Pereira6f92de62011-12-19 11:31:48 -080018
Mindy Pereira6f92de62011-12-19 11:31:48 -080019import android.provider.BaseColumns;
20
Paul Westbrook82ea6da2011-12-15 11:03:51 -080021import java.lang.String;
22
Mindy Pereira6f92de62011-12-19 11:31:48 -080023
24public class UIProvider {
Mindy Pereira326c6602012-01-04 15:32:42 -080025 public static final long INVALID_CONVERSATION_ID = -1;
26 public static final long INVALID_MESSAGE_ID = -1;
27
Paul Westbrook82ea6da2011-12-15 11:03:51 -080028 // The actual content provider should define its own authority
Andy Huang30e2c242012-01-06 18:14:30 -080029 public static final String AUTHORITY = "com.android.mail.providers";
Mindy Pereira6f92de62011-12-19 11:31:48 -080030
31 public static final String ACCOUNT_LIST_TYPE =
Paul Westbrook82ea6da2011-12-15 11:03:51 -080032 "vnd.android.cursor.dir/vnd.com.android.mail.account";
Mindy Pereira6f92de62011-12-19 11:31:48 -080033 public static final String ACCOUNT_TYPE =
Paul Westbrook82ea6da2011-12-15 11:03:51 -080034 "vnd.android.cursor.item/vnd.com.android.mail.account";
Mindy Pereira6f92de62011-12-19 11:31:48 -080035
36 public static final String[] ACCOUNTS_PROJECTION = {
37 BaseColumns._ID,
38 AccountColumns.NAME,
39 AccountColumns.PROVIDER_VERSION,
40 AccountColumns.URI,
41 AccountColumns.CAPABILITIES,
42 AccountColumns.FOLDER_LIST_URI,
43 AccountColumns.SEARCH_URI,
44 AccountColumns.ACCOUNT_FROM_ADDRESSES_URI,
Mindy Pereira33fe9082012-01-09 16:24:30 -080045 AccountColumns.SAVE_DRAFT_URI,
Mindy Pereira3a565bf2011-12-21 11:26:21 -080046 AccountColumns.SEND_MESSAGE_URI
Mindy Pereira6f92de62011-12-19 11:31:48 -080047 };
48
Mindy Pereira33fe9082012-01-09 16:24:30 -080049 public static final int ACCOUNT_ID_COLUMN = 0;
50 public static final int ACCOUNT_NAME_COLUMN = 1;
51 public static final int ACCOUNT_PROVIDER_VERISON_COLUMN = 2;
52 public static final int ACCOUNT_URI_COLUMN = 3;
53 public static final int ACCOUNT_CAPABILITIES_COLUMN = 4;
54 public static final int ACCOUNT_FOLDER_LIST_URI_COLUMN = 5;
55 public static final int ACCOUNT_SEARCH_URI_COLUMN = 6;
56 public static final int ACCOUNT_FROM_ADDRESSES_URI_COLUMN = 7;
57 public static final int ACCOUNT_SAVE_DRAFT_URI_COLUMN = 8;
58 public static final int ACCOUNT_SEND_MESSAGE_URI_COLUMN = 9;
59
Mindy Pereira6f92de62011-12-19 11:31:48 -080060 public static final class AccountCapabilities {
Paul Westbrook82ea6da2011-12-15 11:03:51 -080061 public static final int SYNCABLE_FOLDERS = 0x0001;
62 public static final int REPORT_SPAM = 0x0002;
63 public static final int ARCHIVE = 0x0004;
64 public static final int MUTE = 0x0008;
65 public static final int SERVER_SEARCH = 0x0010;
66 public static final int FOLDER_SERVER_SEARCH = 0x0020;
67 public static final int SANITIZED_HTML = 0x0040;
68 public static final int DRAFT_SYNCHRONIZATION = 0x0080;
69 public static final int MULTIPLE_FROM_ADDRESSES = 0x0100;
70 public static final int SMART_REPLY = 0x0200;
71 public static final int LOCAL_SEARCH = 0x0400;
72 public static final int THREADED_CONVERSATIONS = 0x0800;
Mindy Pereira6f92de62011-12-19 11:31:48 -080073 }
74
75 public static final class AccountColumns {
Paul Westbrook82ea6da2011-12-15 11:03:51 -080076 /**
77 * This string column contains the human visible name for the account.
78 */
Mindy Pereira6f92de62011-12-19 11:31:48 -080079 public static final String NAME = "name";
Paul Westbrook82ea6da2011-12-15 11:03:51 -080080
81 /**
82 * This integer column returns the version of the UI provider schema from which this
83 * account provider will return results.
84 */
Mindy Pereira6f92de62011-12-19 11:31:48 -080085 public static final String PROVIDER_VERSION = "providerVersion";
Paul Westbrook82ea6da2011-12-15 11:03:51 -080086
87 /**
88 * This string column contains the uri to directly access the information for this account.
89 */
Mindy Pereira6349a042012-01-04 11:25:01 -080090 public static final String URI = "accountUri";
Paul Westbrook82ea6da2011-12-15 11:03:51 -080091
92 /**
93 * This integer column contains a bit field of the possible cabibilities that this account
94 * supports.
95 */
Mindy Pereira6f92de62011-12-19 11:31:48 -080096 public static final String CAPABILITIES = "capabilities";
Paul Westbrook82ea6da2011-12-15 11:03:51 -080097
98 /**
Mindy Pereira750cc732011-12-21 13:32:29 -080099 * This string column contains the content provider uri to return the
100 * list of top level folders for this account.
Paul Westbrook82ea6da2011-12-15 11:03:51 -0800101 */
Mindy Pereira6f92de62011-12-19 11:31:48 -0800102 public static final String FOLDER_LIST_URI = "folderListUri";
Paul Westbrook82ea6da2011-12-15 11:03:51 -0800103
104 /**
105 * This string column contains the content provider uri that can be queried for search
106 * results.
107 */
Mindy Pereira6f92de62011-12-19 11:31:48 -0800108 public static final String SEARCH_URI = "searchUri";
Paul Westbrook82ea6da2011-12-15 11:03:51 -0800109
110 /**
111 * This string column contains the content provider uri that can be queried to access the
112 * from addresses for this account.
113 */
Mindy Pereira6f92de62011-12-19 11:31:48 -0800114 public static final String ACCOUNT_FROM_ADDRESSES_URI = "accountFromAddressesUri";
Paul Westbrook82ea6da2011-12-15 11:03:51 -0800115
116 /**
117 * This string column contains the content provider uri that can be used to save (insert)
118 * new draft messages for this account.
119 */
Mindy Pereira33fe9082012-01-09 16:24:30 -0800120 public static final String SAVE_DRAFT_URI = "saveDraftUri";
Mindy Pereira6f92de62011-12-19 11:31:48 -0800121
Paul Westbrook82ea6da2011-12-15 11:03:51 -0800122 /**
123 * This string column contains the content provider uri that can be used to send
124 * a message for this account.
125 * NOTE: This might be better to be an update operation on the messageUri.
126 */
127 public static final String SEND_MESSAGE_URI = "sendMessageUri";
Mindy Pereira3a565bf2011-12-21 11:26:21 -0800128 }
Paul Westbrook82ea6da2011-12-15 11:03:51 -0800129
Mindy Pereira3a565bf2011-12-21 11:26:21 -0800130 // We define a "folder" as anything that contains a list of conversations.
131 public static final String FOLDER_LIST_TYPE =
132 "vnd.android.cursor.dir/vnd.com.android.mail.folder";
133 public static final String FOLDER_TYPE =
Mindy Pereira750cc732011-12-21 13:32:29 -0800134 "vnd.android.cursor.item/vnd.com.android.mail.folder";
Mindy Pereira3a565bf2011-12-21 11:26:21 -0800135
136 public static final String[] FOLDERS_PROJECTION = {
137 BaseColumns._ID,
Mindy Pereira6349a042012-01-04 11:25:01 -0800138 FolderColumns.URI,
Mindy Pereira3a565bf2011-12-21 11:26:21 -0800139 FolderColumns.NAME,
Mindy Pereira750cc732011-12-21 13:32:29 -0800140 FolderColumns.HAS_CHILDREN,
Mindy Pereira0973b202011-12-21 15:48:12 -0800141 FolderColumns.CAPABILITIES,
142 FolderColumns.SYNC_FREQUENCY,
143 FolderColumns.SYNC_WINDOW,
Mindy Pereira750cc732011-12-21 13:32:29 -0800144 FolderColumns.CONVERSATION_LIST_URI,
Mindy Pereirabd8f51c2012-01-06 13:41:48 -0800145 FolderColumns.CHILD_FOLDERS_LIST_URI,
146 FolderColumns.UNREAD_COUNT,
147 FolderColumns.TOTAL_COUNT
Mindy Pereira3a565bf2011-12-21 11:26:21 -0800148 };
149
Mindy Pereira0973b202011-12-21 15:48:12 -0800150 public static final class FolderCapabilities {
151 public static final int SYNCABLE = 0x0001;
152 public static final int PARENT = 0x0002;
153 public static final int CAN_HOLD_MAIL = 0x0004;
154 public static final int CAN_ACCEPT_MOVED_MESSAGES = 0x0008;
155 }
156
Mindy Pereira3a565bf2011-12-21 11:26:21 -0800157 public static final class FolderColumns {
Mindy Pereira6349a042012-01-04 11:25:01 -0800158 public static String URI = "folderUri";
Mindy Pereira3a565bf2011-12-21 11:26:21 -0800159 /**
160 * This string column contains the human visible name for the folder.
161 */
162 public static final String NAME = "name";
163 /**
Mindy Pereira0973b202011-12-21 15:48:12 -0800164 * This int column represents the capabilities of the folder specified by
165 * FolderCapabilities flags.
166 */
167 public static String CAPABILITIES = "capabilities";
168 /**
Mindy Pereira750cc732011-12-21 13:32:29 -0800169 * This boolean column represents whether or not this folder has any
170 * child folders.
171 */
172 public static String HAS_CHILDREN = "hasChildren";
173 /**
Mindy Pereira0973b202011-12-21 15:48:12 -0800174 * This int column represents how often the folder should be synced.
175 */
176 public static String SYNC_FREQUENCY = "syncFrequency";
177 /**
178 * This int column represents how large the sync window is.
179 */
180 public static String SYNC_WINDOW = "syncWindow";
181 /**
Mindy Pereira750cc732011-12-21 13:32:29 -0800182 * This string column contains the content provider uri to return the
183 * list of conversations for this folder.
Mindy Pereira3a565bf2011-12-21 11:26:21 -0800184 */
185 public static final String CONVERSATION_LIST_URI = "conversationListUri";
Mindy Pereira750cc732011-12-21 13:32:29 -0800186 /**
187 * This string column contains the content provider uri to return the
188 * list of child folders of this folder.
189 */
190 public static String CHILD_FOLDERS_LIST_URI = "childFoldersListUri";
Mindy Pereira3a565bf2011-12-21 11:26:21 -0800191
Mindy Pereirabd8f51c2012-01-06 13:41:48 -0800192 public static String UNREAD_COUNT = "unreadCount";
193
194 public static String TOTAL_COUNT = "totalCount";
195
Mindy Pereira3a565bf2011-12-21 11:26:21 -0800196 public FolderColumns() {};
Mindy Pereira6f92de62011-12-19 11:31:48 -0800197 }
198
Mindy Pereiraa1406072011-12-22 10:54:06 -0800199 // We define a "folder" as anything that contains a list of conversations.
200 public static final String CONVERSATION_LIST_TYPE =
201 "vnd.android.cursor.dir/vnd.com.android.mail.conversation";
202 public static final String CONVERSATION_TYPE =
203 "vnd.android.cursor.item/vnd.com.android.mail.conversation";
204
205 public static final String[] CONVERSATION_PROJECTION = {
206 BaseColumns._ID,
Mindy Pereira6349a042012-01-04 11:25:01 -0800207 ConversationColumns.URI,
Mindy Pereiraf9573c52011-12-22 14:02:49 -0800208 ConversationColumns.MESSAGE_LIST_URI,
Mindy Pereiraa1406072011-12-22 10:54:06 -0800209 ConversationColumns.SUBJECT,
Mindy Pereiraf9573c52011-12-22 14:02:49 -0800210 ConversationColumns.SNIPPET,
211 ConversationColumns.SENDER_INFO,
Mindy Pereiraf30cc092011-12-29 14:02:40 -0800212 ConversationColumns.DATE_RECEIVED_MS,
213 ConversationColumns.HAS_ATTACHMENTS
Mindy Pereiraa1406072011-12-22 10:54:06 -0800214 };
215
Mindy Pereirafdd984b2011-12-29 09:43:45 -0800216 // These column indexes only work when the caller uses the
217 // default CONVERSATION_PROJECTION defined above.
Mindy Pereirafa7ef6e2011-12-29 14:18:15 -0800218 public static final int CONVERSATION_ID_COLUMN = 0;
Mindy Pereira3263fa92012-01-04 10:15:32 -0800219 public static final int CONVERSATION_URI_COLUMN = 1;
220 public static final int CONVERSATION_MESSAGE_LIST_URI_COLUMN = 2;
221 public static final int CONVERSATION_SUBJECT_COLUMN = 3;
222 public static final int CONVERSATION_SNIPPET_COLUMN = 4;
223 public static final int CONVERSATION_SENDER_INFO_COLUMN = 5;
224 public static final int CONVERSATION_DATE_RECEIVED_MS_COLUMN = 6;
225 public static final int CONVERSATION_HAS_ATTACHMENTS_COLUMN = 7;
Mindy Pereirafa7ef6e2011-12-29 14:18:15 -0800226
Mindy Pereiraa1406072011-12-22 10:54:06 -0800227 public static final class ConversationColumns {
Mindy Pereira6349a042012-01-04 11:25:01 -0800228 public static final String URI = "conversationUri";
Mindy Pereiraa1406072011-12-22 10:54:06 -0800229 /**
Mindy Pereiraa1406072011-12-22 10:54:06 -0800230 * This string column contains the content provider uri to return the
231 * list of messages for this conversation.
232 */
233 public static final String MESSAGE_LIST_URI = "messageListUri";
Mindy Pereira27a0cf02011-12-22 13:16:32 -0800234 /**
235 * This string column contains the subject string for a conversation.
236 */
237 public static final String SUBJECT = "subject";
238 /**
239 * This string column contains the snippet string for a conversation.
240 */
241 public static final String SNIPPET = "snippet";
242 /**
243 * This string column contains the sender info string for a
244 * conversation.
245 */
246 public static final String SENDER_INFO = "senderInfo";
247 /**
248 * This long column contains the time in ms of the latest update to a
249 * conversation.
250 */
251 public static final String DATE_RECEIVED_MS = "dateReceivedMs";
252
Mindy Pereiraf30cc092011-12-29 14:02:40 -0800253 /**
254 * This boolean column contains whether any messages in this conversation
255 * have attachments.
256 */
257 public static final String HAS_ATTACHMENTS = "hasAttachments";
258
Mindy Pereira27a0cf02011-12-22 13:16:32 -0800259 public ConversationColumns() {
260 };
Mindy Pereiraa1406072011-12-22 10:54:06 -0800261 }
262
Mindy Pereira6f92de62011-12-19 11:31:48 -0800263 /**
264 * Returns a uri that, when queried, will return a cursor with a list of information for the
265 * list of configured accounts.
266 * @return
267 */
Paul Westbrook82ea6da2011-12-15 11:03:51 -0800268 // TODO: create a static registry for the starting point for the UI provider.
269// public static Uri getAccountsUri() {
270// return Uri.parse(BASE_URI_STRING + "/");
271// }
272
273 public static final class DraftType {
274 public static final String COMPOSE = "compose";
275 public static final String REPLY = "reply";
276 public static final String REPLY_ALL = "replyAll";
277 public static final String FORWARD = "forward";
278
279 private DraftType() {}
Mindy Pereira6f92de62011-12-19 11:31:48 -0800280 }
281
Mindy Pereiraa1406072011-12-22 10:54:06 -0800282 public static final String[] MESSAGE_PROJECTION = {
283 BaseColumns._ID,
Mindy Pereira326c6602012-01-04 15:32:42 -0800284 MessageColumns.SERVER_ID,
Mindy Pereiraa1406072011-12-22 10:54:06 -0800285 MessageColumns.URI,
Mindy Pereiraa1406072011-12-22 10:54:06 -0800286 MessageColumns.CONVERSATION_ID,
287 MessageColumns.SUBJECT,
288 MessageColumns.SNIPPET,
289 MessageColumns.FROM,
290 MessageColumns.TO,
291 MessageColumns.CC,
292 MessageColumns.BCC,
293 MessageColumns.REPLY_TO,
294 MessageColumns.DATE_RECEIVED_MS,
295 MessageColumns.BODY_HTML,
296 MessageColumns.BODY_TEXT,
297 MessageColumns.EMBEDS_EXTERNAL_RESOURCES,
298 MessageColumns.REF_MESSAGE_ID,
299 MessageColumns.DRAFT_TYPE,
300 MessageColumns.INCLUDE_QUOTED_TEXT,
301 MessageColumns.QUOTE_START_POS,
302 MessageColumns.CLIENT_CREATED,
Mindy Pereiraf30cc092011-12-29 14:02:40 -0800303 MessageColumns.CUSTOM_FROM_ADDRESS,
304 MessageColumns.HAS_ATTACHMENTS,
Mindy Pereira326c6602012-01-04 15:32:42 -0800305 MessageColumns.ATTACHMENT_LIST_URI,
306 MessageColumns.MESSAGE_FLAGS
Mindy Pereiraa1406072011-12-22 10:54:06 -0800307 };
308
Mindy Pereiraa1406072011-12-22 10:54:06 -0800309 public static final String MESSAGE_LIST_TYPE =
310 "vnd.android.cursor.dir/vnd.com.android.mail.message";
311 public static final String MESSAGE_TYPE =
312 "vnd.android.cursor.item/vnd.com.android.mail.message";
Mindy Pereira6f92de62011-12-19 11:31:48 -0800313
Mindy Pereira6349a042012-01-04 11:25:01 -0800314 public static final int MESSAGE_ID_COLUMN = 0;
Mindy Pereira326c6602012-01-04 15:32:42 -0800315 public static final int MESSAGE_SERVER_ID_COLUMN = 1;
316 public static final int MESSAGE_URI_COLUMN = 2;
317 public static final int MESSAGE_CONVERSATION_ID_COLUMN = 3;
318 public static final int MESSAGE_SUBJECT_COLUMN = 4;
319 public static final int MESSAGE_SNIPPET_COLUMN = 5;
320 public static final int MESSAGE_FROM_COLUMN = 6;
321 public static final int MESSAGE_TO_COLUMN = 7;
322 public static final int MESSAGE_CC_COLUMN = 8;
323 public static final int MESSAGE_BCC_COLUMN = 9;
324 public static final int MESSAGE_REPLY_TO_COLUMN = 10;
325 public static final int MESSAGE_DATE_RECEIVED_MS_COLUMN = 11;
326 public static final int MESSAGE_BODY_HTML = 12;
327 public static final int MESSAGE_BODY_TEXT = 13;
328 public static final int MESSAGE_EMBEDS_EXTERNAL_RESOURCES_COLUMN = 14;
329 public static final int MESSAGE_REF_MESSAGE_ID_COLUMN = 15;
330 public static final int MESSAGE_DRAFT_TYPE_COLUMN = 16;
331 public static final int MESSAGE_INCLUDE_QUOTED_TEXT_COLUMN = 17;
332 public static final int MESSAGE_QUOTE_START_POS_COLUMN = 18;
333 public static final int MESSAGE_CLIENT_CREATED_COLUMN = 19;
334 public static final int MESSAGE_CUSTOM_FROM_ADDRESS_COLUMN = 20;
335 public static final int MESSAGE_HAS_ATTACHMENTS_COLUMN = 21;
336 public static final int MESSAGE_ATTACHMENT_LIST_URI_COLUMN = 22;
337 public static final int MESSAGE_FLAGS_COLUMN = 23;
Mindy Pereira6349a042012-01-04 11:25:01 -0800338
Mindy Pereiraf30cc092011-12-29 14:02:40 -0800339 public static final class MessageFlags {
340 public static final int SYNCABLE = 0x0001;
341 public static final int PARENT = 0x0002;
342 public static final int CAN_HOLD_MAIL = 0x0004;
343 public static final int CAN_ACCEPT_MOVED_MESSAGES = 0x0008;
Mindy Pereira326c6602012-01-04 15:32:42 -0800344 public static final int STARRED = 0x0012;
Mindy Pereiraf30cc092011-12-29 14:02:40 -0800345 }
346
Mindy Pereira6f92de62011-12-19 11:31:48 -0800347 public static final class MessageColumns {
Mindy Pereira6349a042012-01-04 11:25:01 -0800348 public static final String URI = "messageUri";
Mindy Pereira326c6602012-01-04 15:32:42 -0800349 public static final String SERVER_ID = "localMessageId";
Paul Westbrook82ea6da2011-12-15 11:03:51 -0800350 public static final String CONVERSATION_ID = "conversationId";
Mindy Pereira6f92de62011-12-19 11:31:48 -0800351 public static final String SUBJECT = "subject";
352 public static final String SNIPPET = "snippet";
353 public static final String FROM = "fromAddress";
354 public static final String TO = "toAddresses";
355 public static final String CC = "ccAddresses";
356 public static final String BCC = "bccAddresses";
Paul Westbrook82ea6da2011-12-15 11:03:51 -0800357 public static final String REPLY_TO = "replyToAddress";
Mindy Pereira6f92de62011-12-19 11:31:48 -0800358 public static final String DATE_RECEIVED_MS = "dateReceivedMs";
Paul Westbrook82ea6da2011-12-15 11:03:51 -0800359 public static final String BODY_HTML = "bodyHtml";
360 public static final String BODY_TEXT = "bodyText";
Mindy Pereira6f92de62011-12-19 11:31:48 -0800361 public static final String EMBEDS_EXTERNAL_RESOURCES = "bodyEmbedsExternalResources";
362 public static final String REF_MESSAGE_ID = "refMessageId";
Paul Westbrook82ea6da2011-12-15 11:03:51 -0800363 public static final String DRAFT_TYPE = "draftType";
Mindy Pereira6f92de62011-12-19 11:31:48 -0800364 public static final String INCLUDE_QUOTED_TEXT = "includeQuotedText";
365 public static final String QUOTE_START_POS = "quoteStartPos";
366 public static final String CLIENT_CREATED = "clientCreated";
367 public static final String CUSTOM_FROM_ADDRESS = "customFromAddress";
Mindy Pereiraf30cc092011-12-29 14:02:40 -0800368 public static final String HAS_ATTACHMENTS = "hasAttachments";
369 public static final String ATTACHMENT_LIST_URI = "attachmentListUri";
370 public static final String MESSAGE_FLAGS = "messagesFlags";
Mindy Pereira6f92de62011-12-19 11:31:48 -0800371
372 private MessageColumns() {}
373 }
Mindy Pereiraf30cc092011-12-29 14:02:40 -0800374
375 // We define a "folder" as anything that contains a list of conversations.
376 public static final String ATTACHMENT_LIST_TYPE =
377 "vnd.android.cursor.dir/vnd.com.android.mail.attachment";
378 public static final String ATTACHMENT_TYPE =
379 "vnd.android.cursor.item/vnd.com.android.mail.attachment";
380
381 public static final String[] ATTACHMENT_PROJECTION = {
382 BaseColumns._ID,
383 AttachmentColumns.NAME,
384 AttachmentColumns.SIZE,
385 AttachmentColumns.ORIGIN,
386 AttachmentColumns.ORIGIN_EXTRAS,
387 AttachmentColumns.CONTENT_TYPE,
388 AttachmentColumns.SYNCED
389 };
390
391 public static final class AttachmentColumns {
392 public static final String NAME = "name";
393 public static final String SIZE = "size";
394 public static final String ORIGIN = "origin";
395 public static final String ORIGIN_EXTRAS = "originExtras";
396 public static final String CONTENT_TYPE = "contentType";
397 public static final String SYNCED = "synced";
398 }
Mindy Pereira013194c2012-01-06 15:09:33 -0800399
400 public static int getMailMaxAttachmentSize(String account) {
401 // TODO: query the account to see what the max attachment size is?
402 return 5 * 1024 * 1024;
403 }
404
405 public static String getAttachmentTypeSetting() {
406 // TODO: query the account to see what kinds of attachments it supports?
407 return "com.google.android.gm.allowAddAnyAttachment";
408 }
Paul Westbrook82ea6da2011-12-15 11:03:51 -0800409}