brf.j2me.dynaworks.db.palm
Class MailRec

java.lang.Object
  |
  +--brf.j2me.dynaworks.db.Record
        |
        +--brf.j2me.dynaworks.db.palm.PalmRec
              |
              +--brf.j2me.dynaworks.db.palm.MailRec
All Implemented Interfaces:
Dataset

public class MailRec
extends PalmRec

A MailRec refers to an entry in the Palm build-in eMail database.

Version:
1.0
Author:
Bernd R. Fix
See Also:
MailDB, PalmRec, Record

Field Summary
private  int flags
          bit-coded record flags.
static int FLD_BLINDCARBON
           
static int FLD_BODY
           
static int FLD_CARBONCOPY
           
static int FLD_RECEIPIENT
           
static int FLD_SENDER
           
static int FLD_SUBJECT
          field indices.
static int PRIO_HIGH
          priority settings.
static int PRIO_LOW
           
static int PRIO_NORMAL
           
private  int[] strLength
           
private  int[] strStart
          parameters to address the note in the record.
 
Fields inherited from class brf.j2me.dynaworks.db.Record
content, fields, sequence
 
Constructor Summary
MailRec()
          constructor.
 
Method Summary
 int getPriority()
          Get the priority of the mail.
 Date getSendDate()
          Get the date stamp for this eMail.
 java.lang.String getString(int field)
          Get a field content address by a field constant.
 boolean isConfirmDelivery()
          Must the delivery of this eMail be confirmed?
 boolean isConfirmRead()
          Confirm the reading of this eMail?
 boolean isRead()
          eMail already read?
 boolean isSignature()
          Is a signature included inthe eMail?
 void update(boolean tomem)
          Transfer the record content to the field variables.
 
Methods inherited from class brf.j2me.dynaworks.db.palm.PalmRec
bitCount, intValue, shortValue
 
Methods inherited from class brf.j2me.dynaworks.db.Record
addField, getBytes, getContent, getField, getInt, getShort, getString, readField, setBytes, setContent, setField, setInt, setShort, setString, size, writeField
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

strStart

private int[] strStart
parameters to address the note in the record.

These values are only valid if FLG_NOTE is set.


strLength

private int[] strLength

flags

private int flags
bit-coded record flags.

FLD_SUBJECT

public static final int FLD_SUBJECT
field indices.

FLD_SENDER

public static final int FLD_SENDER

FLD_RECEIPIENT

public static final int FLD_RECEIPIENT

FLD_CARBONCOPY

public static final int FLD_CARBONCOPY

FLD_BLINDCARBON

public static final int FLD_BLINDCARBON

FLD_BODY

public static final int FLD_BODY

PRIO_HIGH

public static final int PRIO_HIGH
priority settings.

PRIO_NORMAL

public static final int PRIO_NORMAL

PRIO_LOW

public static final int PRIO_LOW
Constructor Detail

MailRec

public MailRec()
constructor.

Method Detail

update

public void update(boolean tomem)
Transfer the record content to the field variables.

Although an MailRecord is derived from a "normal" record, it's not using the RecordField mechanism to access its data but it stores and retreives its fields in a different way (directly from the content byte array).

Overrides:
update in class Record
Parameters:
tomem - boolean - direction of transfer

getSendDate

public Date getSendDate()
Get the date stamp for this eMail.

Returns:
brf.j2me.dynaworks.util.Date - date this email was sent.
See Also:
Date

getPriority

public int getPriority()
Get the priority of the mail.

Returns:
int - priority code
See Also:
PRIO_HIGH

getString

public java.lang.String getString(int field)
Get a field content address by a field constant.

Returns:
String - content of field.
See Also:
FLD_SUBJECT

isConfirmDelivery

public boolean isConfirmDelivery()
Must the delivery of this eMail be confirmed?

Returns:
boolean - confirm delivery.

isConfirmRead

public boolean isConfirmRead()
Confirm the reading of this eMail?

Returns:
boolean - confirm read.

isSignature

public boolean isSignature()
Is a signature included inthe eMail?

Returns:
boolean - signature included.

isRead

public boolean isRead()
eMail already read?

Returns:
boolean - eMail read?