FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
TSXTypes.h
1/*
2 Basic type defines for TSX RDC
3
4 Copyright 2013 Thincast Technologies GmbH, Authors: Martin Fleisz, Dorian Johnson
5
6 This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
7 If a copy of the MPL was not distributed with this file, You can obtain one at
8 http://mozilla.org/MPL/2.0/.
9 */
10
11#ifndef TSXRemoteDesktop_TSXTypes_h
12#define TSXRemoteDesktop_TSXTypes_h
13
14#pragma mark Internal state
15
16// Represents the underlying state of a TWSession RDP connection.
17typedef enum
18{
19 TSXConnectionClosed =
20 0, // Session either hasn't begun connecting, or its connection has finished disconnecting.
21 TSXConnectionConnecting =
22 1, // Session is in the process of establishing an RDP connection. A TCP or SSL connection
23 // might be established, but the RDP initialization sequence isn't finished.
24 TSXConnectionConnected =
25 2, // Session has a full RDP connection established; though if the windows computer doesn't
26 // support NLA, a login screen might be shown in the session.
27 TSXConnectionDisconnected = 3 // Session is disconnected at the RDP layer. TSX RDC might still
28 // be disposing of resources, however.
29} TSXConnectionState;
30
31#pragma mark Session settings
32
33// Represents the type of screen resolution the user has selected. Most are dynamic sizes, meaning
34// that the actual session dimensions are calculated when connecting.
35typedef enum
36{
37 TSXScreenOptionFixed = 0, // A static resolution, like 1024x768
38 TSXScreenOptionFitScreen = 1, // Upon connection, fit the session to the entire screen size
39 TSXScreenOptionCustom = 2, // Like fixed just specified by the user
40} TSXScreenOptions;
41
42typedef enum
43{
44 TSXAudioPlaybackLocal = 0,
45 TSXAudioPlaybackServer = 1,
46 TSXAudioPlaybackSilent = 2
47} TSXAudioPlaybackOptions;
48
49typedef enum
50{
51 TSXProtocolSecurityAutomatic = 0,
52 TSXProtocolSecurityRDP = 1,
53 TSXProtocolSecurityTLS = 2,
54 TSXProtocolSecurityNLA = 3
55} TSXProtocolSecurityOptions;
56
57#endif