comparison src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java @ 178:34b7558aeffa

remove TreeTask, StartTreeHandling
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 22 Jun 2014 19:05:04 +0900
parents 8019a393875a
children c1b91dd27a13
comparison
equal deleted inserted replaced
177:8019a393875a 178:34b7558aeffa
53 private TreeManagement treeManager; 53 private TreeManagement treeManager;
54 private TreeVncCommandChannelListener acceptThread; 54 private TreeVncCommandChannelListener acceptThread;
55 private boolean firstTime = true; 55 private boolean firstTime = true;
56 private TreeRootFinderListener getCast; 56 private TreeRootFinderListener getCast;
57 private CreateConnectionParam cp; 57 private CreateConnectionParam cp;
58 private boolean hasViewer = false;
58 59
59 60
60 public MyRfbProto() { 61 public MyRfbProto() {
61 rThread = new RequestScreenThread(this); 62 rThread = new RequestScreenThread(this);
62 } 63 }
647 Thread thread = new Thread(acceptThread, "TreeVNC-accept"); 648 Thread thread = new Thread(acceptThread, "TreeVNC-accept");
648 thread.start(); 649 thread.start();
649 } 650 }
650 651
651 public void initRoot(ViewerInterface vncProxyService, String hostName) { 652 public void initRoot(ViewerInterface vncProxyService, String hostName) {
652 treeManager = new TreeManagement(hostName, ConnectionParams.DEFAULT_VNC_ROOT,this); 653 treeManager = new TreeManagement(hostName, ConnectionParams.DEFAULT_VNC_ROOT);
653 vncProxyService.initRootViewer(hostName); 654 vncProxyService.initRootViewer(hostName);
654 createConnectionAndStart(vncProxyService); 655 createConnectionAndStart(vncProxyService);
655 } 656 }
656 657
657 public TreeVncCommandChannelListener getAcceptThread() { 658 public TreeVncCommandChannelListener getAcceptThread() {
664 665
665 public CreateConnectionParam getConnectionParam() { 666 public CreateConnectionParam getConnectionParam() {
666 return cp; 667 return cp;
667 } 668 }
668 669
670 public boolean hasViewer() {
671 return hasViewer;
672 }
673
674 public void setHasViewer(boolean b) {
675 hasViewer = b;
676 }
677
669 678
670 } 679 }