01: // The contents of this file are subject to the Mozilla Public License Version
02: // 1.1
03: //(the "License"); you may not use this file except in compliance with the
04: //License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
05: //
06: //Software distributed under the License is distributed on an "AS IS" basis,
07: //WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
08: //for the specific language governing rights and
09: //limitations under the License.
10: //
11: //The Original Code is "The Columba Project"
12: //
13: //The Initial Developers of the Original Code are Frederik Dietz and Timo
14: // Stich.
15: //Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003.
16: //
17: //All Rights Reserved.
18: package org.columba.mail.message;
19:
20: import org.columba.ristretto.io.Source;
21: import org.columba.ristretto.message.Header;
22: import org.columba.ristretto.message.MimePart;
23: import org.columba.ristretto.message.MimeTree;
24:
25: /**
26: * @author fdietz
27: *
28: */
29: public interface IColumbaMessage {
30: void setBodyPart(MimePart body);
31:
32: void setUID(Object o);
33:
34: Object getUID();
35:
36: MimeTree getMimePartTree();
37:
38: void setMimePartTree(MimeTree ac);
39:
40: void freeMemory();
41:
42: /*
43: * (non-Javadoc)
44: *
45: * @see org.columba.ristretto.message.Message#getHeader()
46: */IColumbaHeader getHeader();
47:
48: /*
49: * (non-Javadoc)
50: *
51: * @see org.columba.ristretto.message.Message#setHeader(org.columba.ristretto.message.Header)
52: */void setHeader(IColumbaHeader h);
53:
54: /*
55: * (non-Javadoc)
56: *
57: * @see org.columba.ristretto.message.Message#getBodyPart()
58: */MimePart getBodyPart();
59:
60: /*
61: * (non-Javadoc)
62: *
63: * @see org.columba.ristretto.message.Message#getMimePart(int)
64: */MimePart getMimePart(int number);
65:
66: /*
67: * (non-Javadoc)
68: *
69: * @see org.columba.ristretto.message.Message#getMimePartCount()
70: */int getMimePartCount();
71:
72: /*
73: * (non-Javadoc)
74: *
75: * @see org.columba.ristretto.message.Message#getSource()
76: */Source getSource();
77:
78: /*
79: * (non-Javadoc)
80: *
81: * @see org.columba.ristretto.message.Message#setHeader(org.columba.ristretto.message.Header)
82: */void setHeader(Header h);
83:
84: /*
85: * (non-Javadoc)
86: *
87: * @see org.columba.ristretto.message.Message#setSource(org.columba.ristretto.message.io.Source)
88: */void setSource(Source source);
89:
90: void close();
91: }
|