|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--superwaba.ext.palm.io.builtin.Mail
Provides a link to the standard Palm Mail database..
Field Summary | |
byte |
addressing
addressing value 0-3 |
String |
bcc
the bcc list |
String |
body
the text |
String |
cc
the cc list |
boolean |
confirmDelivery
Confirm Delivery? |
boolean |
confirmRead
Confirm read? |
Time |
date
the date if any |
boolean |
dated
Is there a date? |
String |
from
the sender of the mail |
byte |
priority
priority value 0-3 |
static int |
PRIORITY_HIGH
Indicates a high priority message |
static int |
PRIORITY_LOW
Indicates a low priority message |
static int |
PRIORITY_NORMAL
Indicates a normal priority message |
boolean |
read
Has this message been read |
static int |
REC_ATTR_DELETED
Indicates a message for the Deleted category |
static int |
REC_ATTR_DRAFT
Indicates a message that has been saved as draft |
static int |
REC_ATTR_FILED
Indicates a message that has been filed |
static int |
REC_ATTR_INBOX
Indicates a message for the In box |
static int |
REC_ATTR_OUTBOX
Indicates a message for the Out box |
String |
replyTo
the author of the mail's preferred address |
String |
sentTo
the actual recipient of the mail |
boolean |
signature
Is there a .sig attached |
String |
subject
the subject of the mail |
String |
to
the recipient of the mail |
Constructor Summary | |
Mail()
Constructs a new empty address |
Method Summary | |
static boolean |
addMail(Mail mail)
Adds a new Mail to the database |
static boolean |
addMail(Mail mail,
int category)
Adds a new Mail to the database |
byte |
getID()
Gets a unique ID for this class. |
Storable |
getInstance()
Returns an object of the same class as this object. |
static Mail |
getMail(int i)
Gets a Mail from the database |
static boolean |
getMail(int i,
Mail mail)
Gets a Mail from the database and places it into the given Mail. |
void |
loadState(DataStream ds)
Load state information from the given DataStream into this object If any Storable objects need to be loaded as part of the state, their loadState() method can be called too. |
static int |
mailCount()
Gets the number of mails in the database |
void |
saveState(DataStream ds)
Send the state information of this object to the given object catalog using the given DataStream. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
toString,
wait,
wait |
Field Detail |
public static final int REC_ATTR_INBOX
public static final int REC_ATTR_OUTBOX
public static final int REC_ATTR_DELETED
public static final int REC_ATTR_FILED
public static final int REC_ATTR_DRAFT
public static final int PRIORITY_HIGH
public static final int PRIORITY_NORMAL
public static final int PRIORITY_LOW
public boolean read
public boolean signature
public boolean confirmRead
public boolean confirmDelivery
public byte priority
public byte addressing
public boolean dated
public Time date
public String subject
public String from
public String to
public String cc
public String bcc
public String replyTo
public String sentTo
public String body
Constructor Detail |
public Mail()
Method Detail |
public static int mailCount()
public static Mail getMail(int i)
i
- the index to getpublic static boolean getMail(int i, Mail mail)
i
- the index to getmail
- the mail object to place the mail into.public static boolean addMail(Mail mail)
mail
- the Mail to addpublic static boolean addMail(Mail mail, int category)
mail
- the Mail to addcategory
- The mail folder REC_ATTR_* category to set. Defaults to OUTBOX if invalidpublic void saveState(DataStream ds)
public void loadState(DataStream ds)
public byte getID()
public Storable getInstance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |