00001 // /// // Mx clientSDK 00002 // ///// //// Mx Crossplatform Client Library 00003 // /// XXX XXX /// 00004 // /// XXX XXX /// $RCSfile: mxcpcIPEdit.h,v $ 00005 // /// XXX /// $Revision: 1.1 $ 00006 // /// XXX XXX /// $Date: 2005/12/19 17:38:39 $ 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_IPEDIT_H__ 00021 #define __MXCPC_IPEDIT_H__ 00022 00023 00024 00025 #include <mxcpcIPAddress.h> 00026 00027 #include <QWidget> 00028 00029 00030 00031 class QSpinBox; 00032 00033 00034 00035 //! Widget allowing the user to enter an IP address. 00036 /*! 00037 * \ingroup mxcpc_gui 00038 */ 00039 class mxcpcIPEdit : public QWidget { 00040 00041 private: 00042 QSpinBox *IPEdit[4]; 00043 00044 public: 00045 mxcpcIPEdit(QWidget *parent); 00046 00047 public slots: 00048 //! Sets the currently displayed IP address as specified. 00049 void setIPAddress(const mxcpcIPAddress& ip); 00050 00051 public: 00052 //! Returns the currently set IP address. 00053 mxcpcIPAddress getIPAddress(void); 00054 }; 00055 00056 00057 00058 #endif // __MXCPC_IPEDIT_H__ 00059