nxdata.h

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 
00042 using namespace std;
00043 
00044 namespace nxcl {
00045 
00046     struct NXConfigData {
00047         string serverHost;
00048         int serverPort;
00049         string sessionUser;
00050         string sessionPass;
00051         string sessionName;
00052         string sessionType;
00053         int cache;
00054         int images;
00055         string linkType;
00056         bool render;
00057         string backingstore;
00058         int imageCompressionMethod;
00059         int imageCompressionLevel;
00060         string geometry;
00061         string keyboard;
00062         string kbtype;
00063         bool media;
00064         string agentServer;
00065         string agentUser;
00066         string agentPass;
00067         int cups;
00068         string key;
00069         string publicKey;
00070         bool encryption;
00071         bool fullscreen;
00072         bool virtualDesktop;
00073         string customCommand;
00074         bool useProxy;
00075         string proxyHost;
00076         int proxyPort;
00077         bool proxyAuthenticated;
00078         string proxyUser;
00079         string proxyPass;
00080         // small hack for storing this
00081         // easier than workaround in the client
00082         bool delSessionfiles;
00083     };
00084 
00085     struct NXSessionData {
00086         string sessionName;
00087         string sessionType;
00088         int cache;
00089         int images;
00090         string linkType;
00091         bool render;
00092         string backingstore;
00093         int imageCompressionMethod;
00094         int imageCompressionLevel;
00095         string geometry;
00096         string keyboard;
00097         string kbtype;
00098         bool media;
00099         string agentServer;
00100         string agentUser;
00101         string agentPass;
00102         int cups;
00103         string id;
00104         string key;
00105         bool encryption;
00106         bool fullscreen;
00107         bool virtualDesktop;
00108         string customCommand;
00109         bool suspended;
00110         int xRes;
00111         int yRes;
00112         int depth;
00113         int display;
00114         bool terminate;
00115     };
00116 
00117     struct NXResumeData {
00118         int display;
00119         string sessionType;
00120         string sessionID;
00121         string options;
00122         int depth;
00123         string screen;
00124         string available;
00125         string sessionName;
00126     };
00127 
00128 } // namespace
00129 #endif

Generated on Mon Dec 14 17:17:22 2009 for nxcl by  doxygen 1.5.1