01: package net.suberic.pooka.event;
02:
03: import net.suberic.pooka.thread.LoadMessageThread;
04:
05: public class MessageLoadedEvent {
06: LoadMessageThread source;
07: int type;
08: int loadedMessageCount = 0;
09: int numMessages = 0;
10:
11: public static int LOADING_STARTING = 0;
12: public static int LOADING_COMPLETE = 1;
13: public static int MESSAGES_LOADED = 2;
14:
15: public MessageLoadedEvent(LoadMessageThread sourceThread,
16: int eventType, int count, int max) {
17: source = sourceThread;
18: type = eventType;
19: loadedMessageCount = count;
20: numMessages = max;
21: }
22:
23: public LoadMessageThread getSource() {
24: return source;
25: }
26:
27: public int getType() {
28: return type;
29: }
30:
31: public int getLoadedMessageCount() {
32: return loadedMessageCount;
33: }
34:
35: public int getNumMessages() {
36: return numMessages;
37: }
38:
39: }
|