nxcl
1.0
|
00001 /*************************************************************************** 00002 nxdata.h 00003 ------------------- 00004 begin : Wednesday 9th August 2006 00005 modifications : July 2007 00006 copyright : (C) 2006 by George Wright 00007 modifications : (C) 2007 Embedded Software Foundry Ltd. (U.K.) 00008 : Author: Sebastian James 00009 email : seb@esfnet.co.uk, gwright@kde.org 00010 ***************************************************************************/ 00011 00012 /*************************************************************************** 00013 * * 00014 * This program is free software; you can redistribute it and/or modify * 00015 * it under the terms of the GNU General Public License as published by * 00016 * the Free Software Foundation; either version 2 of the License, or * 00017 * (at your option) any later version. * 00018 * * 00019 ***************************************************************************/ 00020 00021 #ifndef _NXDATA_H_ 00022 #define _NXDATA_H_ 00023 00024 #include <string> 00025 00030 #define NXCL_PROCESS_STARTED 1000001 00031 #define NXCL_PROCESS_EXITED 1000002 00032 #define NXCL_AUTH_FAILED 1000003 00033 #define NXCL_AUTHENTICATING 1000004 00034 #define NXCL_LOGIN_FAILED 1000005 00035 #define NXCL_HOST_KEY_VERIFAILED 1000006 00036 #define NXCL_INVOKE_PROXY 1000007 00037 #define NXCL_STARTING 1000008 00038 #define NXCL_FINISHED 1000009 00039 #define NXCL_ALIVE 1000010 00040 #define NXCL_PROCESS_ERROR 1000011 00041 #define NXCL_DNS_ERROR 1000012 00042 00043 using namespace std; 00044 00045 namespace nxcl { 00046 00047 struct NXConfigData { 00048 string serverHost; 00049 int serverPort; 00050 string sessionUser; 00051 string sessionPass; 00052 string sessionName; 00053 string sessionType; 00054 int cache; 00055 int images; 00056 string linkType; 00057 bool render; 00058 string backingstore; 00059 int imageCompressionMethod; 00060 int imageCompressionLevel; 00061 string geometry; 00062 string keyboard; 00063 string kbtype; 00064 bool media; 00065 string agentServer; 00066 string agentUser; 00067 string agentPass; 00068 int cups; 00069 string key; 00070 string publicKey; 00071 bool encryption; 00072 bool fullscreen; 00073 bool virtualDesktop; 00074 string customCommand; 00075 bool useProxy; 00076 string proxyHost; 00077 int proxyPort; 00078 bool proxyAuthenticated; 00079 string proxyUser; 00080 string proxyPass; 00081 // small hack for storing this 00082 // easier than workaround in the client 00083 bool delSessionfiles; 00084 }; 00085 00086 struct NXSessionData { 00087 string sessionName; 00088 string sessionType; 00089 int cache; 00090 int images; 00091 string linkType; 00092 bool render; 00093 string backingstore; 00094 int imageCompressionMethod; 00095 int imageCompressionLevel; 00096 string geometry; 00097 string keyboard; 00098 string kbtype; 00099 bool media; 00100 string agentServer; 00101 string agentUser; 00102 string agentPass; 00103 int cups; 00104 string id; 00105 string key; 00106 bool encryption; 00107 bool fullscreen; 00108 bool virtualDesktop; 00109 string customCommand; 00110 bool suspended; 00111 int xRes; 00112 int yRes; 00113 int depth; 00114 int display; 00115 bool terminate; 00116 }; 00117 00118 struct NXResumeData { 00119 int display; 00120 string sessionType; 00121 string sessionID; 00122 string options; 00123 int depth; 00124 string screen; 00125 string available; 00126 string sessionName; 00127 }; 00128 00129 } // namespace 00130 #endif