package com.iskrembilen.quasseldroid;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * User: Stian
 * Date: 05.07.12
 * Time: 20:14
 */
public enum IrcMode {
    /*
     * Declare in order of rank, this way values() will naturally
     * return the different modes based on rank
     */
    //TODO: Move static strings to strings.xml
    //TODO: Add icon paths to the objects
    OWNER ("owner","q"),
    ADMIN ("admin","a"),
    OPERATOR ("operator","o"),
    HALF_OPERATOR ("half operator","h"),
    VOICE ("voice","v"),
    USER ("user",""); //This will work as a catch-all for unknown modes

    public final String modeName;
    public final String shortModeName;

    IrcMode(String modeName, String shortModeName) {
        this.modeName = modeName;
        this.shortModeName = shortModeName;
    }

}

@@ -320,97 +320,8 @@
  */%0A
-    //TODO: Move static strings to strings.xml%0A    //TODO: Add icon paths to the objects%0A
     
@@ -328,17 +328,17 @@
 OWNER (%22
-o
+O
 wner%22,%22q
@@ -338,16 +338,48 @@
 ner%22,%22q%22
+, %22(s)%22, R.drawable.irc_operator
 ),%0A    A
@@ -385,17 +385,17 @@
 ADMIN (%22
-a
+A
 dmin%22,%22a
@@ -395,16 +395,48 @@
 min%22,%22a%22
+, %22(s)%22, R.drawable.irc_operator
 ),%0A    O
@@ -445,17 +445,17 @@
 RATOR (%22
-o
+O
 perator%22
@@ -458,16 +458,48 @@
 tor%22,%22o%22
+, %22(s)%22, R.drawable.irc_operator
 ),%0A    H
@@ -517,14 +517,14 @@
 R (%22
-h
+H
 alf 
-o
+O
 pera
@@ -531,16 +531,45 @@
 tor%22,%22h%22
+, %22(s)%22, R.drawable.irc_voice
 ),%0A    V
@@ -579,18 +579,45 @@
 E (%22
-v
+V
 oice
+d
 %22,%22v%22
+, %22%22, R.drawable.irc_voice
 ),%0A 
@@ -630,16 +630,43 @@
 R (%22
-u
+U
 ser%22,%22%22
+, %22(s)%22, R.drawable.im_user
 ); /
@@ -787,16 +787,90 @@
 odeName;
+%0A    public final String pluralization;%0A    public final int iconResource;
 %0A%0A    Ir
@@ -912,16 +912,56 @@
 ModeName
+, String pluralization, int iconResource
 ) %7B%0A    
@@ -1030,21 +1030,107 @@
 rtModeName;%0A
+        this.pluralization = pluralization;%0A        this.iconResource = iconResource;%0A
     %7D%0A%0A%7D%0A

Add pluralization and iconresource to IrcMode