KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SnowMailClient > MailEngine > transfer > TransferItem


1 package SnowMailClient.MailEngine.transfer;
2
3 import SnowMailClient.model.accounts.*;
4 import SnowMailClient.model.MailMessage;
5 import snow.concurrent.*;
6 import java.util.*;
7
8 /** Wraps a mail account to send of receive mails...
9 */

10 public class TransferItem
11 {
12
13      public final MailAccount ma;
14      public int numberOfMailsToDownload = -1;
15      public int numberOfDownladedMails = -1;
16
17      public int totalBytesToDownload = -1;
18      public int totalDownloadedBytes = -1;
19
20      public Throwable JavaDoc error = null;
21
22      final public Interrupter interrupter = new Interrupter();
23
24      public enum TransferType { Receive, Send }
25      final public TransferType transferType;
26
27      final public List<MailMessage> messagesToSend = new Vector<MailMessage>();
28      public final StringBuffer JavaDoc status = new StringBuffer JavaDoc();
29
30      protected TransferItem(MailAccount ma, TransferType type)
31      {
32         this.ma = ma;
33         this.transferType = type;
34      }
35
36
37 } // TransferItem
Popular Tags