// Path: webinos/platform/android/impl/src/org/webinos/impl/nfc/NfcManager.java
// enum FilterType {
//   UNKNOWN, TEXT, URI, MIME
// }


import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.webinos.impl.nfc.NfcManager.NfcDiscoveryFilter.FilterType;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Parcelable;
    super();
    this.ctx = ctx;
    ctx.registerReceiver(this, new IntentFilter(ACTION_DISPATCH_NFC));
  }

  static interface NfcDiscoveryListener {
    void onTagDiscovered(Object tag);
  }

  private List<NfcDiscoveryListener> mListeners = new ArrayList<NfcDiscoveryListener>();
  private Object mListenerLock = new Object();

  public void addListener(NfcDiscoveryListener listener) {
    synchronized (mListenerLock) {
      if (!mListeners.contains(listener)) {
        mListeners.add(listener);
      }
    }
  }

  public void removeListener(NfcDiscoveryListener listener) {
    synchronized (mListenerLock) {
      mListeners.remove(listener);
    }
  }

  static final class NfcDiscoveryFilter implements Serializable {

    private static final long serialVersionUID = 1L;

// Path: webinos/platform/android/impl/src/org/webinos/impl/nfc/NfcManager.java
// enum FilterType {
//   UNKNOWN, TEXT, URI, MIME
// }


// Path: webinos/platform/android/impl/src/org/webinos/impl/nfc/NfcManager.java
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.webinos.impl.nfc.NfcManager.NfcDiscoveryFilter.FilterType;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Parcelable;

    super();
    this.ctx = ctx;
    ctx.registerReceiver(this, new IntentFilter(ACTION_DISPATCH_NFC));
  }

  static interface NfcDiscoveryListener {
    void onTagDiscovered(Object tag);
  }

  private List<NfcDiscoveryListener> mListeners = new ArrayList<NfcDiscoveryListener>();
  private Object mListenerLock = new Object();

  public void addListener(NfcDiscoveryListener listener) {
    synchronized (mListenerLock) {
      if (!mListeners.contains(listener)) {
        mListeners.add(listener);
      }
    }
  }

  public void removeListener(NfcDiscoveryListener listener) {
    synchronized (mListenerLock) {
      mListeners.remove(listener);
    }
  }

  static final class NfcDiscoveryFilter implements Serializable {

    private static final long serialVersionUID = 1L;

    enum FilterType {