]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/DictionaryInfo.java
UI changes, (experiments), Arabic rendering changes, changing the way
[Dictionary.git] / src / com / hughes / android / dictionary / DictionaryInfo.java
similarity index 51%
rename from src/com/hughes/android/dictionary/DictionaryConfig.java
rename to src/com/hughes/android/dictionary/DictionaryInfo.java
index 5dcd03d1c46d0d7bf15052dea4f36a1d22234cb9..088dcf6703ed9532d53f97254d48d1bdadb5cd15 100644 (file)
@@ -16,21 +16,32 @@ package com.hughes.android.dictionary;
 
 import java.io.Serializable;
 
-public class DictionaryConfig implements Serializable {
+public class DictionaryInfo implements Serializable {
   
-  private static final long serialVersionUID = -6850863377577700387L;
-
-  String name = "";
-  String localFile = "/sdcard/quickDic/";
-  String downloadUrl = "http://";
+  private static final long serialVersionUID = -6850863377577700388L;
   
-  int openIndex = 0;
-  String openWord = "";
+  // Stuff populated from the text file.
+  public final String[] langIsos = new String[2];
+  public String uncompressedFilename;
+  public long uncompressedSize;
+  public final int[] allTokenCounts = new int[2];
+  public final int[] mainTokenCounts = new int[2];
+
+  String name;  // Determined at runtime based on locale on device--user editable.
+  String localFile;  // Determined based on device's Environment.
+  String downloadUrl;
   
   @Override
   public String toString() {
     return name;
   }
+
+  public String toTabSeparatedString() {
+    return String.format("%s\t%s\t%s\t%d\t%d\t%d\t%d\t%d", langIsos[0],
+        langIsos[1], uncompressedFilename, uncompressedSize,
+        mainTokenCounts[0], mainTokenCounts[1], allTokenCounts[0],
+        allTokenCounts[1]);
+  }
   
   
 }