view src/viewer_swing/java/com/glavsoft/viewer/ViewerInterface.java @ 383:7d55adebcacb

impliment changeDirectConnectedWithSocket
author kkb
date Fri, 04 Sep 2015 17:10:53 +0900
parents ea324e42bc78
children ed15f0bd8dfa
line wrap: on
line source

package com.glavsoft.viewer;

import java.awt.*;
import java.io.IOException;
import java.net.Socket;
import java.util.ArrayList;

import com.glavsoft.transport.Reader;
import com.glavsoft.transport.Writer;
import com.glavsoft.viewer.mvp.Presenter;
import jp.ac.u_ryukyu.treevnc.TreeRFBProto;

public interface ViewerInterface extends Runnable {

    public boolean getCuiVersion();

	public TreeRFBProto getRfb();

	public void closeApp();

	public void setSocket(Socket soc);

	public void run();

	public void setTerminationType(boolean b);

	public void setCuiVersion(boolean flag);

    public void startTreeViewer(String hostName, boolean b, boolean addSerialNum);

    public void connectToParenet(int port, String hostname) throws IOException;

    public void inhelitClients(ViewerInterface vncProxyService, String hostName, short newVNCServerId);

    public void proxyStart(String[] args, String hostName, int width, int height, boolean showTree, boolean checkDelay, boolean addSerialNum, boolean fixingSize, boolean filterSingleDisplay);

    public void setNoConnection(boolean noConnection);

	public void setVisible(boolean b);

	public Socket getVNCSocket();

    public boolean getShowTree();

    public void setWidth(int width);

    public void setHeight(int height);

    public void setFixingSize(int width, int height);
    
    public void setFitScreen();

    public ArrayList<Rectangle> getScreenRectangles();

    public ConnectionPresenter getConnectionPresenter();

    public void setConnectionPresenter(ConnectionPresenter connectionPresenter);

    void changeToDirectConnectedServer(String hostName, Reader is, Writer os);
}