Mercurial > hg > Applications > TreeVNC
annotate src/main/java/com/glavsoft/rfb/protocol/TreeTask.java @ 27:85958cba5d15
Create new constructor in TreeTask
author | one |
---|---|
date | Fri, 31 Aug 2012 18:21:20 +0900 |
parents | 73b13bc335c2 |
children | 18fad65bc447 |
rev | line source |
---|---|
16 | 1 package com.glavsoft.rfb.protocol; |
2 | |
3 import jp.ac.u_ryukyu.treevnc.server.*; | |
4 | |
5 import com.glavsoft.rfb.ClipboardController; | |
6 import com.glavsoft.rfb.IRepaintController; | |
7 import com.glavsoft.rfb.encoding.EncodingType; | |
23 | 8 import com.glavsoft.rfb.encoding.decoder.Decoder; |
16 | 9 import com.glavsoft.rfb.encoding.decoder.DecodersContainer; |
10 import com.glavsoft.transport.Reader; | |
26
73b13bc335c2
add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
24
diff
changeset
|
11 import com.glavsoft.rfb.encoding.decoder.ZRLEESender; |
16 | 12 |
13 public class TreeTask extends ReceiverTask { | |
14 final static String versionMsg_3_855 = "RFB 003.855\n"; | |
19 | 15 |
16 | 16 public TreeTask(Reader reader, IRepaintController repaintController, |
17 ClipboardController clipboardController, | |
26
73b13bc335c2
add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
24
diff
changeset
|
18 DecodersContainer decoders, ProtocolContext context, MyRfbProtoProxy rfb) { |
27 | 19 super(reader, repaintController, clipboardController, decoders,context, true); |
20 //super(reader, new NullRepaintController(), clipboardController, decoders,context, true); | |
26
73b13bc335c2
add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
24
diff
changeset
|
21 Decoder decoder = new ZRLEESender(rfb); |
73b13bc335c2
add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
24
diff
changeset
|
22 decoders.setDecoderByType(EncodingType.ZLIB, decoder); |
73b13bc335c2
add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
24
diff
changeset
|
23 decoders.setDecoderByType(EncodingType.ZRLE, decoder); |
16 | 24 } |
19 | 25 |
26
73b13bc335c2
add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
24
diff
changeset
|
26 /* public void framebufferUpdateMessage() throws CommonException { |
73b13bc335c2
add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
24
diff
changeset
|
27 * |
24 | 28 * (non-Javadoc) |
29 * proxy | |
30 * no Repaint | |
31 * decoder!=0 ZRLE -> ZRLEE | |
32 * readSendData(); | |
33 * client | |
34 * Repaint | |
35 * no context.send(); | |
36 * if necessary ZRLEE -> ZRLE | |
37 * readSendData(); | |
26
73b13bc335c2
add ZRLEESender.java, NullRenderer.java and NullRepaintController.java
one
parents:
24
diff
changeset
|
38 * |
24 | 39 */ |
16 | 40 } |