Initial checkin of RIM client from LifeMarks, after initial refactorings and style...
[zxing.git] / rim / src / com / google / zxing / client / rim / ImageCapturedJournalListener.java
diff --git a/rim/src/com/google/zxing/client/rim/ImageCapturedJournalListener.java b/rim/src/com/google/zxing/client/rim/ImageCapturedJournalListener.java
deleted file mode 100644 (file)
index 3990575..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/*\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;\r
-\r
-import net.rim.device.api.io.file.FileSystemJournal;\r
-import net.rim.device.api.io.file.FileSystemJournalEntry;\r
-import net.rim.device.api.io.file.FileSystemJournalListener;\r
-\r
-/**\r
- * @author Sean Owen (srowen@google.com)\r
- */\r
-final class ImageCapturedJournalListener implements FileSystemJournalListener {\r
-\r
-  private final ZXingMainScreen screen;\r
-  private long lastUSN;\r
-\r
-  ImageCapturedJournalListener(ZXingMainScreen screen) {\r
-    this.screen = screen;\r
-  }\r
-\r
-  public void fileJournalChanged() {\r
-    long nextUSN = FileSystemJournal.getNextUSN();\r
-    for (long lookUSN = nextUSN - 1; lookUSN >= lastUSN; --lookUSN) {\r
-      FileSystemJournalEntry entry = FileSystemJournal.getEntry(lookUSN);\r
-      if (entry == null) {\r
-        break;\r
-      }\r
-      if (entry.getEvent() == FileSystemJournalEntry.FILE_ADDED) {\r
-        screen.handleFile(entry.getPath());\r
-      }\r
-    }\r
-    lastUSN = nextUSN;\r
-  }\r
-\r
-\r
-}\r