Blame client/iOS/Misc/TSXTypes.h

Packit 1fb8d4
/*
Packit 1fb8d4
 Basic type defines for TSX RDC
Packit Service 5a9772
Packit 1fb8d4
 Copyright 2013 Thincast Technologies GmbH, Authors: Martin Fleisz, Dorian Johnson
Packit Service 5a9772
Packit Service 5a9772
 This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
Packit Service 5a9772
 If a copy of the MPL was not distributed with this file, You can obtain one at
Packit Service 5a9772
 http://mozilla.org/MPL/2.0/.
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
#ifndef TSXRemoteDesktop_TSXTypes_h
Packit 1fb8d4
#define TSXRemoteDesktop_TSXTypes_h
Packit 1fb8d4
Packit 1fb8d4
#pragma mark Internal state
Packit 1fb8d4
Packit 1fb8d4
// Represents the underlying state of a TWSession RDP connection.
Packit 1fb8d4
typedef enum _TSXConnectionState
Packit 1fb8d4
{
Packit Service 5a9772
	TSXConnectionClosed =
Packit Service 5a9772
	    0, // Session either hasn't begun connecting, or its connection has finished disconnecting.
Packit Service 5a9772
	TSXConnectionConnecting =
Packit Service 5a9772
	    1, // Session is in the process of establishing an RDP connection. A TCP or SSL connection
Packit Service 5a9772
	       // might be established, but the RDP initialization sequence isn't finished.
Packit Service 5a9772
	TSXConnectionConnected =
Packit Service 5a9772
	    2, // Session has a full RDP connection established; though if the windows computer doesn't
Packit Service 5a9772
	       // support NLA, a login screen might be shown in the session.
Packit Service 5a9772
	TSXConnectionDisconnected = 3 // Session is disconnected at the RDP layer. TSX RDC might still
Packit Service 5a9772
	                              // be disposing of resources, however.
Packit 1fb8d4
} TSXConnectionState;
Packit 1fb8d4
Packit 1fb8d4
#pragma mark Session settings
Packit 1fb8d4
Packit Service 5a9772
// Represents the type of screen resolution the user has selected. Most are dynamic sizes, meaning
Packit Service 5a9772
// that the actual session dimensions are calculated when connecting.
Packit 1fb8d4
typedef enum _TSXScreenOptions
Packit 1fb8d4
{
Packit Service 5a9772
	TSXScreenOptionFixed = 0,     // A static resolution, like 1024x768
Packit Service 5a9772
	TSXScreenOptionFitScreen = 1, // Upon connection, fit the session to the entire screen size
Packit Service 5a9772
	TSXScreenOptionCustom = 2,    // Like fixed just specified by the user
Packit 1fb8d4
} TSXScreenOptions;
Packit 1fb8d4
Packit 1fb8d4
typedef enum _TSXAudioPlaybackOptions
Packit 1fb8d4
{
Packit Service 5a9772
	TSXAudioPlaybackLocal = 0,
Packit 1fb8d4
	TSXAudioPlaybackServer = 1,
Packit 1fb8d4
	TSXAudioPlaybackSilent = 2
Packit 1fb8d4
} TSXAudioPlaybackOptions;
Packit 1fb8d4
Packit 1fb8d4
typedef enum _TSXProtocolSecurityOptions
Packit 1fb8d4
{
Packit Service 5a9772
	TSXProtocolSecurityAutomatic = 0,
Packit Service 5a9772
	TSXProtocolSecurityRDP = 1,
Packit 1fb8d4
	TSXProtocolSecurityTLS = 2,
Packit 1fb8d4
	TSXProtocolSecurityNLA = 3
Packit 1fb8d4
} TSXProtocolSecurityOptions;
Packit 1fb8d4
Packit 1fb8d4
#endif