package plugins.CENO;

import plugins.CENO.FreenetInterface.FreemailAPI.Freemail;

public class CENORequest extends Freemail {

	private CENOReqFlags[] reqFlags;

	public CENORequest(Freemail freemail) {
		super(freemail.getFreemailFrom(), freemail.getFreemailTo(), freemail.getSubject(), freemail.getBody());
	}

	public CENORequest(Freemail freemail, CENOReqFlags[] reqFlags) {
		this(freemail);
		this.reqFlags = reqFlags;
	}

	public CENORequest(String freemailFrom, String[] freemailTo, String subject, String body) {
		super(freemailFrom, freemailTo, subject, body);
	}

	public CENORequest(String freemailFrom, String[] freemailTo, String subject, String body, CENOReqFlags[] reqFlags) {
		this(freemailFrom, freemailTo, subject, body);
		this.reqFlags = reqFlags;
	}

	public CENOReqFlags[] getReqFlags() {
		return reqFlags;
	}
	
	public enum CENOReqFlags {
		X_Ceno_Rewritten
	}
}

@@ -16,16 +16,43 @@
 .CENO;%0A%0A
+import java.util.EnumSet;%0A%0A
 import p
@@ -154,15 +154,74 @@
 %0A%0A%09p
-rivate 
+ublic enum CENOReqFlags %7B%0A%09%09X_Ceno_Rewritten%0A%09%7D%0A%0A%09private EnumSet%3C
 CENO
@@ -220,34 +220,33 @@
 Set%3CCENOReqFlags
-%5B%5D
+%3E
  reqFlags;%0A%0A%09pub
@@ -431,16 +431,24 @@
 eemail, 
+EnumSet%3C
 CENOReqF
@@ -443,34 +443,33 @@
 Set%3CCENOReqFlags
-%5B%5D
+%3E
  reqFlags) %7B%0A%09%09t
@@ -753,16 +753,24 @@
 g body, 
+EnumSet%3C
 CENOReqF
@@ -773,18 +773,17 @@
 ReqFlags
-%5B%5D
+%3E
  reqFlag
@@ -872,24 +872,32 @@
 %09%7D%0A%0A%09public 
+EnumSet%3C
 CENOReqFlags
@@ -896,18 +896,17 @@
 ReqFlags
-%5B%5D
+%3E
  getReqF
@@ -940,58 +940,6 @@
 %0A%09%7D%0A
-%09%0A%09public enum CENOReqFlags %7B%0A%09%09X_Ceno_Rewritten%0A%09%7D%0A
 %7D%0A

Replace CENOReqFlags array with an EnumSet