File: Record.java

package info (click to toggle)
pilot-link 0.8.7-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 2,256 kB
  • ctags: 3,233
  • sloc: ansic: 24,039; java: 2,162; cpp: 1,641; sh: 1,585; makefile: 1,363; perl: 723; yacc: 660; python: 239; tcl: 14
file content (46 lines) | stat: -rw-r--r-- 1,520 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

package Pdapilot.mail;

import java.io.*;

/** A representation of a mail database record.
 */

public class Record extends Pdapilot.Record {

		public boolean read, signature, confirmRead, confirmDelivery;
		public int priority, addressing;
		
		public java.util.Date date;
		public String subject, from, to, cc, bcc, replyTo, sentTo, body;
		
		public Record() {
			super();
		}
		
		public Record(byte[] contents, Pdapilot.RecordID id, int index, int attr, int cat) {
			super(contents, id, index, attr, cat);
		}
		
		public native void unpack(byte[] data);
		public native byte[] pack();
        		
		public void fill() {
		}
		
        public String describe() {
        	StringBuffer c = new StringBuffer("read=");
          return "read="+read+", signature="+signature+", confirmRead="+confirmRead+
                 ", confirmDelivery="+confirmDelivery+", priority="+priority+
                 ", addressing="+addressing+", date="+((date == null)?"<Null":date.toString())+
                 ", from="+Pdapilot.Util.prettyPrint(from)+
                 ", to="+Pdapilot.Util.prettyPrint(to)+
                 ", cc="+Pdapilot.Util.prettyPrint(cc)+
                 ", bcc="+Pdapilot.Util.prettyPrint(bcc)+
                 ", replyTo="+Pdapilot.Util.prettyPrint(replyTo)+
                 ", sentTo="+Pdapilot.Util.prettyPrint(sentTo)+
                 ", body="+Pdapilot.Util.prettyPrint(body)+
                 ", subject="+Pdapilot.Util.prettyPrint(subject)+
                 ", "+super.describe();
        }
}