|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.provider.Gmail.MessageModification
public static class Gmail.MessageModification
A helper class for creating or updating messags. Use the putXxx methods to provide initial or new values for the message. Then save or send the message. To save or send an existing message without making other changes to it simply provide an emty ContentValues.
| Constructor Summary | |
|---|---|
Gmail.MessageModification()
|
|
| Method Summary | |
|---|---|
static String |
joinedAttachmentsString(List<Gmail.Attachment> attachments)
The string produced here is parsed by Gmail.MessageCursor#getAttachmentInfos. |
static void |
putAttachments(ContentValues values,
List<Gmail.Attachment> attachments)
Sets the attachments on a message. |
static void |
putBccAddresses(ContentValues values,
String[] bccAddresses)
Sets the message's bcc address. |
static void |
putBody(ContentValues values,
String body)
Saves a new body for the message. |
static void |
putCcAddresses(ContentValues values,
String[] ccAddresses)
Sets the message's cc address. |
static void |
putSubject(ContentValues values,
String subject)
Sets the message's subject. |
static void |
putToAddresses(ContentValues values,
String[] toAddresses)
Sets the message's to address. |
static void |
sendOrSaveExistingMessage(ContentResolver contentResolver,
String account,
long messageId,
ContentValues updateValues,
boolean save)
Update an existing draft and save it as a new draft or send it. |
static long |
sendOrSaveNewMessage(ContentResolver contentResolver,
String account,
ContentValues values,
long refMessageId,
boolean save)
Create a new message and save it as a draft or send it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Gmail.MessageModification()
| Method Detail |
|---|
public static void putSubject(ContentValues values,
String subject)
values - the ContentValues that will be used to create or update the messagesubject - the new subject
public static void putToAddresses(ContentValues values,
String[] toAddresses)
values - the ContentValues that will be used to create or update the messagetoAddresses - the new to addresses
public static void putCcAddresses(ContentValues values,
String[] ccAddresses)
values - the ContentValues that will be used to create or update the messageccAddresses - the new cc addresses
public static void putBccAddresses(ContentValues values,
String[] bccAddresses)
values - the ContentValues that will be used to create or update the messagebccAddresses - the new bcc addresses
public static void putBody(ContentValues values,
String body)
values - the ContentValues that will be used to create or update the messagebody - the new body of the message
public static void putAttachments(ContentValues values,
List<Gmail.Attachment> attachments)
values - the ContentValues that will be used to create or update the messageattachments -
public static long sendOrSaveNewMessage(ContentResolver contentResolver,
String account,
ContentValues values,
long refMessageId,
boolean save)
contentResolver - the content resolver to useaccount - the account to usevalues - the values for the new messagerefMessageId - the message that is being replied to or forwardedsave - whether to save or send the message
public static void sendOrSaveExistingMessage(ContentResolver contentResolver,
String account,
long messageId,
ContentValues updateValues,
boolean save)
contentResolver - the content resolver to useaccount - the account to usemessageId - the id of the message to updateupdateValues - the values to change. Unspecified fields will not be alteredsave - whether to resave the message as a draft or send itpublic static String joinedAttachmentsString(List<Gmail.Attachment> attachments)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||