| 1 | #ifndef IPCALC_H |
| 2 | #define IPCALC_H |
| 3 | |
| 4 | #include <QtGui> |
| 5 | |
| 6 | #include "ui_ipQalc.h" |
| 7 | #include "ipadress.h" |
| 8 | |
| 9 | #define VERSION "1.5.3" |
| 10 | |
| 11 | class ipQalc : public QWidget { |
| 12 | Q_OBJECT |
| 13 | public: |
| 14 | explicit ipQalc(QWidget *parent = 0); |
| 15 | |
| 16 | private slots: |
| 17 | void calc(); |
| 18 | |
| 19 | private: |
| 20 | IpAdress *SubNet; |
| 21 | Ui::ipQalc ui; |
| 22 | |
| 23 | bool isValidIP(QString); |
| 24 | bool isValidMask(QString); |
| 25 | |
| 26 | protected: |
| 27 | bool eventFilter(QObject*, QEvent *); |
| 28 | }; |
| 29 | |
| 30 | #endif |