com.wjholden.nmap
Class NmapWifi

java.lang.Object
  extended by java.lang.Thread
      extended by com.wjholden.nmap.NmapWifi
All Implemented Interfaces:
NmapConstants, java.lang.Runnable

public class NmapWifi
extends java.lang.Thread
implements NmapConstants

Thread that watches for changes in the SSID/IP on 802.11 and requests NmapMain.handler update the UI.

Since:
0.5.1
Version:
0.1
Author:
William John Holden (wjholden@gmail.com)

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static boolean closing
          Set NmapWifi.closing to true to close the thread.
private  Context context
           
private  boolean disconnectAlreadyAnnounced
           
private  java.lang.String ipAddress
           
private  java.lang.String ssid
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface com.wjholden.nmap.NmapConstants
BUFFER_SIZE, FORCE_RESTART, INSTALL_ERROR, INSTALL_FILENAMES, INSTALL_GOOD, INSTALL_NO_ROOT, INSTALL_RESOURCES, MG_DEBUG, MG_DEFAULT, MG_SUBNET, MI_BIN, MI_DEBUG_EMAIL, MI_DEBUG_ENABLE, MI_DEC, MI_EMAIL_SUBNET, MI_EXIT, MI_HEX, MI_MORE_HELP, MI_REINSTALL, MI_SUBNET, MI_SURVEY, RUN_COMPLETE, RUN_ERROR, RUN_SUCCESS_NO_FILE, SCANTYPE_NCAT, SCANTYPE_NDIFF, SCANTYPE_NMAP_5_30, SCANTYPE_NMAP_5_50, SCANTYPE_NPING, SET_TITLE, SUBNET_CONNECTED, SUBNET_DISCONNECTED, SUBNET_POLL_INTERVAL, TAG, THREAD_ERROR
 
Constructor Summary
NmapWifi(Context context)
           
 
Method Summary
 void run()
           
private  void showWifiInfo()
          Try to get the SSID and IP.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

closing

public static boolean closing
Set NmapWifi.closing to true to close the thread.


context

private final Context context

disconnectAlreadyAnnounced

private boolean disconnectAlreadyAnnounced

ipAddress

private java.lang.String ipAddress

ssid

private java.lang.String ssid
Constructor Detail

NmapWifi

public NmapWifi(Context context)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

showWifiInfo

private void showWifiInfo()
Try to get the SSID and IP. If you get it, set the users title to reflect this information.