r27174 - trunk/freenet/src/freenet/client/events

[email protected] Tue, 21 Apr 2009 22:42:58 +0000
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: toad
Date: 2009-04-21 22:42:58 +0000 (Tue, 21 Apr 2009)
New Revision: 27174

Added:
   trunk/freenet/src/freenet/client/events/ExpectedFileSizeEvent.java
   trunk/freenet/src/freenet/client/events/ExpectedMIMEEvent.java
Log:
Doh, missing files


Added: trunk/freenet/src/freenet/client/events/ExpectedFileSizeEvent.java
===================================================================
--- trunk/freenet/src/freenet/client/events/ExpectedFileSizeEvent.java	                        (rev 0)
+++ trunk/freenet/src/freenet/client/events/ExpectedFileSizeEvent.java	2009-04-21 22:42:58 UTC (rev 27174)
@@ -0,0 +1,21 @@
+package freenet.client.events;
+
+public class ExpectedFileSizeEvent implements ClientEvent {
+	
+	public final long expectedSize;
+	
+	public ExpectedFileSizeEvent(long size) {
+		expectedSize = size;
+	}
+	
+	static final int CODE = 0x0C;
+
+	public int getCode() {
+		return CODE;
+	}
+
+	public String getDescription() {
+		return "Expected file size: "+expectedSize;
+	}
+
+}

Added: trunk/freenet/src/freenet/client/events/ExpectedMIMEEvent.java
===================================================================
--- trunk/freenet/src/freenet/client/events/ExpectedMIMEEvent.java	                        (rev 0)
+++ trunk/freenet/src/freenet/client/events/ExpectedMIMEEvent.java	2009-04-21 22:42:58 UTC (rev 27174)
@@ -0,0 +1,21 @@
+package freenet.client.events;
+
+public class ExpectedMIMEEvent implements ClientEvent {
+	
+	static final int CODE = 0x0B;
+	
+	public final String expectedMIMEType;
+	
+	public ExpectedMIMEEvent(String type) {
+		this.expectedMIMEType = type;
+	}
+
+	public int getCode() {
+		return CODE;
+	}
+
+	public String getDescription() {
+		return "Expected MIME type: "+expectedMIMEType;
+	}
+
+}