--- /dev/null
+/*\r
+ * Copyright 2008 ZXing authors\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package com.google.zxing.client.rim.persistence.history;\r
+\r
+import net.rim.device.api.util.Persistable;\r
+\r
+import java.util.Date;\r
+\r
+/**\r
+ * A single decoded history item that is stored by the decode history.\r
+ *\r
+ * This code was contributed by LifeMarks.\r
+ * \r
+ * @author Matt York (matt@lifemarks.mobi)\r
+ */\r
+public final class DecodeHistoryItem implements Persistable {\r
+\r
+ private String date;\r
+ private String uri;\r
+\r
+ private DecodeHistoryItem() {\r
+ date = new Date().toString();\r
+ }\r
+\r
+ public DecodeHistoryItem(String uri) {\r
+ this();\r
+ this.uri = uri;\r
+ }\r
+\r
+ public void setDate(String date) {\r
+ this.date = date;\r
+ }\r
+\r
+ public String getDate() {\r
+ return date;\r
+ }\r
+\r
+ public void setURI(String uri) {\r
+ this.uri = uri;\r
+ }\r
+\r
+ public String getURI() {\r
+ return uri;\r
+ }\r
+\r
+}\r