00001 // /// // Mx clientSDK 00002 // ///// //// Mx Crossplatform Client Library 00003 // /// XXX XXX /// 00004 // /// XXX XXX /// $RCSfile: mxcpcProxyConfiguration.h,v $ 00005 // /// XXX /// $Revision: 1.1 $ 00006 // /// XXX XXX /// $Date: 2006/01/04 16:38:20 $ 00007 // //// XXX XXX //// $Author: cvs-kai $ 00008 // //// //// 00009 // //// M O B O T I X //////////////////////////////////////////////// 00010 // //// Security Vision Systems ////////////////////////////////////////////// 00011 // // 00012 // Copyright (C) 2005 - 2006, MOBOTIX AG, Germany // 00013 // This software is made available under the BSD licence. Please refer // 00014 // to the file LICENCE.TXT contained in this distribution for details. // 00015 // // 00016 // ///////////////////////////////////////////////////////////////////// 00017 00018 00019 00020 #ifndef __MXCPC_PROXYCONFIGURATION_H__ 00021 #define __MXCPC_PROXYCONFIGURATION_H__ 00022 00023 00024 00025 #include <mxcpcIPAddress.h> 00026 00027 00028 00029 //! Holds a proxy configuration. 00030 /*! 00031 * \ingroup mxcpc_tek 00032 */ 00033 class mxcpcProxyConfiguration { 00034 00035 private: 00036 mxcpcIPAddress ServerIP; 00037 int ServerPort; 00038 bool UseProxy; 00039 00040 public: 00041 //! Creates "use proxy" configuration with proxy server as specified. 00042 mxcpcProxyConfiguration(const mxcpcIPAddress& server_ip, 00043 int server_port); 00044 //! Creates default "no proxy" configuration. 00045 mxcpcProxyConfiguration(); 00046 00047 public: 00048 //! Sets the proxy server IP address. 00049 void setServerIP(const mxcpcIPAddress& ip); 00050 //! Retrieves the proxy server IP address. 00051 mxcpcIPAddress serverIP(void); 00052 //! Sets the proxy server port. 00053 void setServerPort(int port); 00054 //! Retrieves the proxy server port. 00055 int serverPort(void); 00056 //! Toggles whether or not the proxy server is used. 00057 void setProxyUsed(bool proxy_used); 00058 //! Tells whether or not the proxy server is used. 00059 bool proxyUsed(void); 00060 }; 00061 00062 00063 00064 #endif // __MXCPC_PROXYCONFIGURATION_H__ 00065