#ifndef WEATHERBALLOON_H #define WEATHERBALLOON_H #include #include #include class WeatherBalloon : public QPushButton { Q_OBJECT public: WeatherBalloon(QWidget *parent = 0); double temperature() const; double humidity() const; double altitude() const; private slots: void sendDatagram(); private: QUdpSocket udpSocket; QTimer timer; }; #endif