001: ///////////////////////////////////////////////////////////////////////////////
002: //
003: // This program is free software; you can redistribute it and/or modify
004: // it under the terms of the GNU General Public License and GNU Library
005: // General Public License as published by the Free Software Foundation;
006: // either version 2, or (at your option) any later version.
007: //
008: // This program is distributed in the hope that it will be useful,
009: // but WITHOUT ANY WARRANTY; without even the implied warranty of
010: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
011: // GNU General Public License and GNU Library General Public License
012: // for more details.
013: //
014: // You should have received a copy of the GNU General Public License
015: // and GNU Library General Public License along with this program; if
016: // not, write to the Free Software Foundation, 675 Mass Ave, Cambridge,
017: // MA 02139, USA.
018: //
019: ///////////////////////////////////////////////////////////////////////////////
020:
021: package org.rdesktop.server.rdp;
022:
023: import org.rdesktop.server.rdp.orders.*;
024:
025: class RdpOrderState {
026: private int m_order_type;
027: private BoundsOrder m_bounds;
028: private DestBltOrder m_destblt;
029: private PatBltOrder m_patblt;
030: private ScreenBltOrder m_screenblt;
031: private LineOrder m_line;
032: private RectangleOrder m_rect;
033: private DeskSaveOrder m_desksave;
034: private MemBltOrder m_memblt;
035: private TriBltOrder m_triblt;
036: private PolyLineOrder m_polyline;
037: private Text2Order m_text2;
038:
039: public RdpOrderState() {
040: m_order_type = 0;
041:
042: m_bounds = new BoundsOrder();
043: m_destblt = new DestBltOrder();
044: m_patblt = new PatBltOrder();
045: m_screenblt = new ScreenBltOrder();
046: m_line = new LineOrder();
047: m_rect = new RectangleOrder();
048: m_desksave = new DeskSaveOrder();
049: m_memblt = new MemBltOrder();
050: m_triblt = new TriBltOrder();
051: m_polyline = new PolyLineOrder();
052: m_text2 = new Text2Order();
053: }
054:
055: public void setOrderType(int order_type) {
056: m_order_type = order_type;
057: }
058:
059: public int getOrderType() {
060: return m_order_type;
061: }
062:
063: public BoundsOrder getBounds() {
064: return m_bounds;
065: }
066:
067: public DestBltOrder getDestBlt() {
068: return m_destblt;
069: }
070:
071: public PatBltOrder getPatBlt() {
072: return m_patblt;
073: }
074:
075: public ScreenBltOrder getScreenBlt() {
076: return m_screenblt;
077: }
078:
079: public LineOrder getLine() {
080: return m_line;
081: }
082:
083: public RectangleOrder getRectangle() {
084: return m_rect;
085: }
086:
087: public DeskSaveOrder getDeskSave() {
088: return m_desksave;
089: }
090:
091: public MemBltOrder getMemBlt() {
092: return m_memblt;
093: }
094:
095: public TriBltOrder getTriBlt() {
096: return m_triblt;
097: }
098:
099: public PolyLineOrder getPolyLine() {
100: return m_polyline;
101: }
102:
103: public Text2Order getText2() {
104: return m_text2;
105: }
106:
107: public void reset() {
108: m_bounds.reset();
109: m_destblt.reset();
110: m_patblt.reset();
111: m_screenblt.reset();
112: m_line.reset();
113: m_rect.reset();
114: m_desksave.reset();
115: m_memblt.reset();
116: m_triblt.reset();
117: m_polyline.reset();
118: m_text2.reset();
119: }
120: }
|