Mercurial > hg > Applications > AliceVNC
view src/main/java/jp/ac/u_ryukyu/alicevnc/AliceVNCConfig.java @ 34:aace9df1462e
refactor
author | sugi |
---|---|
date | Thu, 13 Nov 2014 16:09:09 +0900 |
parents | 15398aebb0ef |
children | e6e5b45c921d |
line wrap: on
line source
package jp.ac.u_ryukyu.alicevnc; import alice.topology.node.TopologyNodeConfig; public class AliceVNCConfig extends TopologyNodeConfig { private boolean proxy; private boolean viewer; private boolean change = true; public AliceVNCConfig(String[] args) { super(args); for (int i = 0; i< args.length; i++) { if ("-proxy".equals(args[i])){ // no display. behave as root proxy = true; viewer = false; } else if ("-d".equals(args[i])) { // behave as root with display. proxy = true; viewer = true; } else if ("-c".equals(args[i])) { change = false; } else { viewer = true; } } } public boolean getViewerFlag(){ return viewer; } public boolean getProxyFlag(){ return proxy; } public boolean getAllowChange(){ return change; } }