klog/setuppageudp.h
2018-08-04 15:48:59 +00:00

79 lines
3.0 KiB
C++

#ifndef SETUPPAGEUDP_H
#define SETUPPAGEUDP_H
/***************************************************************************
setuppageudp.h - description
-------------------
begin : sept 2018
copyright : (C) 2018 by Jaime Robles
email : jaime@robles.es
***************************************************************************/
/*****************************************************************************
* This file is part of KLog. *
* *
* KLog is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* KLog is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with KLog. If not, see <http://www.gnu.org/licenses/>. *
* *
*****************************************************************************/
#include <QObject>
#include <QtWidgets>
class SetupPageUDP : public QWidget
{
Q_OBJECT
public:
SetupPageUDP(QWidget *parent = 0);
~SetupPageUDP();
void setLogFromWSJTx(const QString t);
void setAutoLogFromWSJTx(const QString t);
void setReaDataFromWSJTx(const QString t);
void setUDPServer(const QString t);
void setUDPServerPort(const QString t);
void setTimeout(const QString t);
QString getLogFromWSJTx();
QString getAutoLogFromWSJTx();
QString getReaDataFromWSJTx();
QString getUDPServerPort();
QString getUDPServer();
QString getTimeout();
private:
void createUI();
void createActions();
QCheckBox *logFromWSJTXCheckbox, *logAutomaticallyWSJTXCheckbox, *realDataFromWSJTXCheckbox, *UDPServerCheckBox;
//QLineEdit *wsjtxIPAddress, *wsjtxPortNumber;
QSpinBox *UDPServerPortSpinBox;
QSpinBox *miliSecsSpinBox;
int defaultport, defaultTimer;
//bool logFromWSJTx, autoLogFromWSJTx, realDataFromWSJTx;
signals:
public slots:
void slotLogFromWSJTCheckBoxClicked();
//void slotAutoLogFromWSJTCheckBoxClicked();
//void slotRealFromWSJTCheckBoxClicked();
void slotUDPServerCheckBoxClicked();
};
#endif // SETUPPAGEUDP_H