|
Build 1.1_r1 (from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.database.ContentObserver
android.provider.Gmail.MailCursor
android.provider.Gmail.MessageCursor
public static final class Gmail.MessageCursor
A cursor over messages.
| Field Summary | |
|---|---|
(package private) long |
mInReplyToLocalMessageId
Only valid if mCursor == null, in which case we are inserting a new message. |
(package private) boolean |
mPreserveAttachments
|
| Fields inherited from class android.provider.Gmail.MailCursor |
|---|
mAccount, mCursor |
| Constructor Summary | |
|---|---|
protected |
Gmail.MessageCursor(ContentResolver cr,
String account,
long inReplyToMessageId,
boolean preserveAttachments)
|
|
Gmail.MessageCursor(Gmail gmail,
ContentResolver cr,
String account,
Cursor cursor)
|
| Method Summary | |
|---|---|
void |
addOrRemoveLabel(String label,
boolean add)
Adds a label to a message (if add is true) or removes it (if add is false). |
ArrayList<Gmail.Attachment> |
getAttachmentInfos()
|
String[] |
getBccAddresses()
Gets the message's bcc addresses. |
String |
getBody()
Gets the message's body. |
boolean |
getBodyEmbedsExternalResources()
|
String[] |
getCcAddresses()
Gets the message's cc addresses. |
long |
getConversationId()
Gets the message's conversation id. |
long |
getDateReceivedMs()
|
long |
getDateSentMs()
|
String |
getErrorText()
|
boolean |
getExpanded()
Deprecated. |
String |
getFromAddress()
Gets the message's from address. |
Set<Long> |
getLabelIds()
|
String |
getListInfo()
|
long |
getMessageId()
Gets the message id of the current message. |
Gmail.PersonalLevel |
getPersonalLevel()
|
String |
getRawLabelIds()
|
String[] |
getReplyToAddress()
Gets the message's replyTo address. |
String |
getSnippet()
Gets the message's snippet (the short piece of the body). |
Gmail.CursorStatus |
getStatus()
|
String |
getSubject()
Gets the message's subject. |
String[] |
getToAddresses()
Gets the message's to addresses. |
protected void |
onCursorPositionChanged()
Called whenever mCursor is changed to point to a different row. |
void |
retry()
Retry a network request after errors. |
| Methods inherited from class android.provider.Gmail.MailCursor |
|---|
checkCursor, checkThread, count, deliverSelfNotifications, getAccount, getCursor, getStringInColumn, getUpdateValues, moveTo, next, onChange, position, registerContentObserver, registerDataSetObserver, registerObserver, release, unregisterContentObserver, unregisterDataSetObserver, unregisterObserver |
| Methods inherited from class android.database.ContentObserver |
|---|
dispatchChange, getContentObserver, releaseContentObserver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
long mInReplyToLocalMessageId
boolean mPreserveAttachments
| Constructor Detail |
|---|
public Gmail.MessageCursor(Gmail gmail,
ContentResolver cr,
String account,
Cursor cursor)
protected Gmail.MessageCursor(ContentResolver cr,
String account,
long inReplyToMessageId,
boolean preserveAttachments)
| Method Detail |
|---|
protected void onCursorPositionChanged()
Gmail.MailCursor
onCursorPositionChanged in class Gmail.MailCursorpublic Gmail.CursorStatus getStatus()
public void retry()
public long getMessageId()
public long getConversationId()
public String getSubject()
public String getSnippet()
public String getFromAddress()
public String[] getToAddresses()
public String[] getCcAddresses()
public String[] getBccAddresses()
public String[] getReplyToAddress()
public long getDateSentMs()
public long getDateReceivedMs()
public String getListInfo()
public Gmail.PersonalLevel getPersonalLevel()
public boolean getExpanded()
public String getBody()
public boolean getBodyEmbedsExternalResources()
public Set<Long> getLabelIds()
public String getRawLabelIds()
public void addOrRemoveLabel(String label,
boolean add)
throws Gmail.NonexistentLabelException
label - the label to add or removeadd - whether to add or remove the label
Gmail.NonexistentLabelException - thrown if the named label does not
existpublic ArrayList<Gmail.Attachment> getAttachmentInfos()
public String getErrorText()
|
Build 1.1_r1 (from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||