Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

mxcpcProxyConfiguration.cpp

00001 //           ///          //                                        Mx clientSDK
00002 //          /////        ////                    Mx Crossplatform Client Library
00003 //         /// XXX     XXX ///
00004 //        ///    XXX XXX    ///     $RCSfile: mxcpcProxyConfiguration.cpp,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 #include <mxcpcProxyConfiguration.h>
00021 
00022 
00023 
00024 mxcpcProxyConfiguration
00025  ::mxcpcProxyConfiguration(const mxcpcIPAddress& server_ip,
00026                            int server_port)                 {
00027 
00028   ServerIP   = server_ip;
00029   ServerPort = server_port;
00030   UseProxy   = true;
00031 }
00032 
00033 
00034 mxcpcProxyConfiguration::mxcpcProxyConfiguration() {
00035 
00036   ServerIP   = mxcpcIPAddress(192, 1268, 1, 254);
00037   ServerPort = 8080;
00038   UseProxy   = false;
00039 }
00040 
00041 
00042 
00043 void mxcpcProxyConfiguration::setServerIP(const mxcpcIPAddress& ip) {
00044 
00045   ServerIP = ip;
00046 }
00047 mxcpcIPAddress mxcpcProxyConfiguration::serverIP(void) {
00048 
00049   return(ServerIP);
00050 }
00051 
00052 
00053 void mxcpcProxyConfiguration::setServerPort(int port) {
00054 
00055   ServerPort = port;
00056 }
00057 int mxcpcProxyConfiguration::serverPort(void) {
00058 
00059   return(ServerPort);
00060 }
00061 
00062 
00063 void mxcpcProxyConfiguration::setProxyUsed(bool proxy_used) {
00064 
00065   UseProxy = proxy_used;
00066 }
00067 bool mxcpcProxyConfiguration::proxyUsed(void) {
00068 
00069   return(UseProxy);
00070 }
00071 

Generated on Mon Jan 30 15:52:43 2006 for mxcpc by  doxygen 1.4.4