01: ///////////////////////////////////////////////////////////////////////////////
02: //
03: // This program is free software; you can redistribute it and/or modify
04: // it under the terms of the GNU General Public License and GNU Library
05: // General Public License as published by the Free Software Foundation;
06: // either version 2, or (at your option) any later version.
07: //
08: // This program is distributed in the hope that it will be useful,
09: // but WITHOUT ANY WARRANTY; without even the implied warranty of
10: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11: // GNU General Public License and GNU Library General Public License
12: // for more details.
13: //
14: // You should have received a copy of the GNU General Public License
15: // and GNU Library General Public License along with this program; if
16: // not, write to the Free Software Foundation, 675 Mass Ave, Cambridge,
17: // MA 02139, USA.
18: //
19: ///////////////////////////////////////////////////////////////////////////////
20:
21: package org.rdesktop.server.rdp;
22:
23: import java.awt.image.DirectColorModel;
24:
25: public class RdpOptions {
26: public static final int DIRECT_BITMAP_DECOMPRESSION = 0;
27: public static final int BUFFEREDIMAGE_BITMAP_DECOMPRESSION = 1;
28: public static final int INTEGER_BITMAP_DECOMPRESSION = 2;
29: public static final int bitmap_decompression_store = INTEGER_BITMAP_DECOMPRESSION;
30:
31: public static boolean use_rdp5 = true;
32: public static boolean low_latency = true;
33: public static int keylayout = 0x409; // US
34: public static String windowTitle = "Remote Desktop Exchange ( Using MyOODB / rdesktop )";
35:
36: public static boolean built_in_license = false;
37:
38: public static boolean license = true;
39: public static boolean load_license = false;
40: public static boolean save_license = false;
41: public static String license_path = "./";
42:
43: public static boolean remap_hash = true;
44: public static boolean altkey_quiet = false;
45: public static boolean useLockingKeyState = true;
46: public static boolean caps_sends_up_and_down = true;
47:
48: public static int server_bpp = 24;
49: public static int Bpp = (server_bpp + 7) / 8;
50: public static int bpp_mask = 0xFFFFFF >> 8 * (3 - Bpp);
51:
52: public static int server_rdp_version;
53: public static boolean bitmap_caching = false;
54: public static boolean precache_bitmaps = false;
55: public static boolean bitmap_compression = true;
56: public static boolean polygon_ellipse_orders = false;
57: public static boolean persistent_bitmap_caching = false;
58:
59: public static boolean orders = true;
60: public static boolean desktop_save = true;
61: public static boolean console_session = false;
62:
63: public static boolean use_ssl = false;
64: public static boolean encryption = true;
65: public static boolean map_clipboard = true;
66:
67: /*
68: public static int rdp5_performanceflags = RdpProto.RDP5_NO_CURSOR_SHADOW | RdpProto.RDP5_NO_MENUANIMATIONS |
69: RdpProto.RDP5_NO_FULLWINDOWDRAG | RdpProto.RDP5_NO_WALLPAPER;
70: */
71: public static int rdp5_performanceflags = RdpProto.RDP5_NO_CURSOR_SHADOW
72: | RdpProto.RDP5_NO_CURSORSETTINGS
73: | RdpProto.RDP5_NO_FULLWINDOWDRAG
74: | RdpProto.RDP5_NO_MENUANIMATIONS
75: | RdpProto.RDP5_NO_THEMING | RdpProto.RDP5_NO_WALLPAPER;
76:
77: public static void set_bpp(int server_bpp) {
78: RdpOptions.server_bpp = server_bpp;
79: RdpOptions.Bpp = (server_bpp + 7) / 8;
80:
81: if (server_bpp == 8) {
82: bpp_mask = 0xFF;
83: } else {
84: bpp_mask = 0xFFFFFF;
85: }
86: }
87: }
|