|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.mail.MessageFlags
public class MessageFlags
An object used to determine the state of a Message
within a
Folder
and the flags related to this Message
.
Field Summary | |
---|---|
static int |
ANSWERED
This message has been answered. |
static int |
DELETED
This message is marked as deleted. |
static int |
DRAFT
This message is a draft. |
static int |
FLAGGED
This message is flagged. |
static int |
FORWARDED
This message has been forwarded. |
static int |
OPENED
This message is seen. |
static int |
PARTIAL
This message has been partially downloaded from the server. |
static int |
TX_ERROR
The message has not been sent due to an error during the transmission. |
static int |
TX_SENDING
The message is queued for sending: the next sync with the server will process this message. |
static int |
TX_SENT
The message has been sent successfully by this client. |
Constructor Summary | |
---|---|
MessageFlags()
Default constructor |
|
MessageFlags(MessageFlags mf)
|
Method Summary | |
---|---|
void |
clearFlags()
Reset all the flags. |
void |
clearFlags(int mask)
Reset the flags specified by mask. |
int[] |
compareFlags(MessageFlags newMask)
Compare the current object with the given mask |
void |
deserialize(java.io.DataInputStream in)
Read object field from the input stream. |
int |
getFlags()
Returns the flag mask for this message. |
boolean |
isSet(int flag)
Set the message flags according to the given mask |
void |
merge(MessageFlags f1)
Merge the current object with the given mask |
void |
merge(MessageFlags f1,
boolean enableDelayedFlags)
Merge the current object with the given mask. |
void |
serialize(java.io.DataOutputStream out)
Write object fields to the output stream. |
void |
setFlag(int flag,
boolean set)
Set the specified flag |
void |
setFlags(int mask)
Set the message flags according to the given mask |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ANSWERED
public static final int FORWARDED
public static final int OPENED
public static final int DRAFT
public static final int FLAGGED
public static final int DELETED
public static final int PARTIAL
public static final int TX_SENDING
public static final int TX_SENT
public static final int TX_ERROR
Constructor Detail |
---|
public MessageFlags()
public MessageFlags(MessageFlags mf)
Method Detail |
---|
public void clearFlags()
public void clearFlags(int mask)
mask
- a bit mask with the flags to clear set to 1.public int getFlags()
public void setFlag(int flag, boolean set)
flag
- the flag mask for this message (see com.funambol.mail.Message)public void setFlags(int mask)
public boolean isSet(int flag)
public void merge(MessageFlags f1)
f1
- is the MessageFlags with the values to be mergedpublic void merge(MessageFlags f1, boolean enableDelayedFlags)
f1
- is the MessageFlags with the values to be mergedenableDelayedFlags
- is used to enable the update of answer and forward flagpublic int[] compareFlags(MessageFlags newMask)
newMask
- is the mask to be compared
public java.lang.String toString()
toString
in class java.lang.Object
public void serialize(java.io.DataOutputStream out) throws java.io.IOException
out
- Output stream
java.io.IOException
public void deserialize(java.io.DataInputStream in) throws java.io.IOException
in
- Input stream
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |