00001 // /// // Mx clientSDK 00002 // ///// //// Mx Crossplatform Client Library 00003 // /// XXX XXX /// 00004 // /// XXX XXX /// $RCSfile: mxcpcCameraSelector.h,v $ 00005 // /// XXX /// $Revision: 1.5 $ 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_CAMERA_SELECTOR_H__ 00021 #define __MXCPC_CAMERA_SELECTOR_H__ 00022 00023 00024 00025 #include <mxcpcIPAddress.h> 00026 #include <mxcpcProxyConfiguration.h> 00027 00028 #include <QWidget> 00029 00030 00031 00032 class mxcpcIPEdit; 00033 00034 class QSpinBox; 00035 class QCheckBox; 00036 00037 00038 00039 //! Widget allowing the user to choose a <tt>MOBOTIX</tt> camera. 00040 /*! 00041 * \ingroup mxcpc_gui 00042 */ 00043 class mxcpcCameraSelector : public QWidget { 00044 00045 Q_OBJECT 00046 00047 private: 00048 mxcpcIPEdit *CameraIPEdit,*ProxyIPEdit; 00049 QSpinBox *CameraPortSpinBox, *ProxyPortSpinBox; 00050 QCheckBox *ProxyCheckBox; 00051 00052 public: 00053 mxcpcCameraSelector(QWidget *parent); 00054 00055 public: 00056 //! Returns the currently set camera IP. 00057 mxcpcIPAddress cameraIP(void); 00058 //! Returns the currently set camera (HTTP) port. 00059 int cameraPort(void); 00060 //! Returns the proxy configuration for the currently set camera. 00061 mxcpcProxyConfiguration cameraProxyConfiguration(void); 00062 00063 private slots: 00064 void processProxyCheckBoxStateChanged(int state); 00065 }; 00066 00067 00068 00069 #endif // __MX_CAMERA_SELECTOR_H__