Blame client/iOS/Misc/TSXTypes.h

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