Author: xor
Date: 2008-10-28 00:03:35 +0000 (Tue, 28 Oct 2008)
New Revision: 23127

Added:
   trunk/plugins/FMSPlugin/FMSBoard.java
   trunk/plugins/FMSPlugin/FMSMessageManager.java
Log:
New classes.

Added: trunk/plugins/FMSPlugin/FMSBoard.java
===================================================================
--- trunk/plugins/FMSPlugin/FMSBoard.java                               (rev 0)
+++ trunk/plugins/FMSPlugin/FMSBoard.java       2008-10-28 00:03:35 UTC (rev 
23127)
@@ -0,0 +1,48 @@
+/* This code is part of Freenet. It is distributed under the GNU General
+ * Public License, version 2 (or at your option any later version). See
+ * http://www.gnu.org/ for further details of the GPL. */
+package plugins.FMSPlugin;
+
+import java.util.Iterator;
+
+/**
+ * @author xor
+ *
+ */
+public class FMSBoard implements Iterable<FMSMessage> {
+
+       private final String mName;
+       private String mDescription;
+       
+       public FMSBoard(String newName, String newDescription) {
+               mName = newName;
+               mDescription = newDescription;
+       }
+
+       /**
+        * @return the Description
+        */
+       public String getDescription() {
+               return mDescription;
+       }
+
+       /**
+        * @param description The description to set.
+        */
+       public void setDescription(String newDescription) {
+               mDescription = newDescription;
+       }
+
+       /**
+        * @return The name
+        */
+       public String getName() {
+               return mName;
+       }
+
+       public Iterator<FMSMessage> iterator() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+       
+}

Added: trunk/plugins/FMSPlugin/FMSMessageManager.java
===================================================================
--- trunk/plugins/FMSPlugin/FMSMessageManager.java                              
(rev 0)
+++ trunk/plugins/FMSPlugin/FMSMessageManager.java      2008-10-28 00:03:35 UTC 
(rev 23127)
@@ -0,0 +1,19 @@
+/* This code is part of Freenet. It is distributed under the GNU General
+ * Public License, version 2 (or at your option any later version). See
+ * http://www.gnu.org/ for further details of the GPL. */
+package plugins.FMSPlugin;
+
+/**
+ * @author xor
+ *
+ */
+public abstract class FMSMessageManager implements Iterable<FMSBoard> {
+
+       private FMSIdentityManager mIdentityManager;
+       
+       public FMSMessageManager(FMSIdentityManager newIdentityManager) {
+               mIdentityManager = newIdentityManager;
+       }
+       
+       public abstract FMSBoard getBoardByName(String name);  
+}


Reply via email to