mirror of
https://github.com/developersu/ns-usbloader.git
synced 2025-05-13 14:44:48 -04:00
v0.3 UI is ready one more time
This commit is contained in:
parent
31045683e4
commit
3a238d296c
7 changed files with 36 additions and 3 deletions
|
@ -40,6 +40,25 @@ public class AppPreferences {
|
|||
//------------ SETTINGS ------------------//
|
||||
public boolean getNsIpValidationNeeded() {return preferences.getBoolean("NSIPVALIDATION", true);}
|
||||
public void setNsIpValidationNeeded(boolean need){preferences.putBoolean("NSIPVALIDATION", need);}
|
||||
|
||||
public boolean getExpertMode(){return preferences.getBoolean("EXPERTMODE", false);}
|
||||
public void setExpertMode(boolean mode){preferences.putBoolean("EXPERTMODE", mode);}
|
||||
|
||||
public boolean getAutoDetectIp(){return preferences.getBoolean("AUTOHOSTIP", true);}
|
||||
public void setAutoDetectIp(boolean mode){preferences.putBoolean("AUTOHOSTIP", mode);}
|
||||
|
||||
public boolean getRandPort(){return preferences.getBoolean("RANDHOSTPORT", true);}
|
||||
public void setRandPort(boolean mode){preferences.putBoolean("RANDHOSTPORT", mode);}
|
||||
|
||||
public boolean getNotServeRequests(){return preferences.getBoolean("DONTSERVEREQ", false);}
|
||||
public void setNotServeRequests(boolean mode){preferences.putBoolean("DONTSERVEREQ", mode);}
|
||||
|
||||
public String getHostIp(){ return preferences.get("HOSTIP", "0.0.0.0");}
|
||||
public void setHostIp(String ip){preferences.put("HOSTIP", ip);}
|
||||
|
||||
public String getHostPort(){ return preferences.get("HOSTPORT", "6042");}
|
||||
public void setHostPort(String port){preferences.put("HOSTPORT", port);}
|
||||
|
||||
public String getHostPostfix(){ return preferences.get("HOSTPOSTFIX", "");}
|
||||
public void setHostPostfix(String postfix){preferences.put("HOSTPOSTFIX", postfix);}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue