You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
779 B
C++
41 lines
779 B
C++
#ifndef QIPCONFIGDLG_H
|
|
#define QIPCONFIGDLG_H
|
|
|
|
#include <QDialog>
|
|
#include "ui_qipconfigdlg.h"
|
|
#include <QRegExp>
|
|
struct IPConfig
|
|
{
|
|
QString m_TcpAddress;
|
|
int m_TcpPort;
|
|
QString m_ClientAddress;
|
|
int m_ClientPort;
|
|
IPConfig(){
|
|
m_TcpAddress = "192.168.0.110";
|
|
m_ClientAddress = "192.168.0.119";
|
|
m_TcpPort = 2000;
|
|
m_ClientPort = 2000;
|
|
};
|
|
};
|
|
|
|
class QIPConfigDlg : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QIPConfigDlg(QWidget *parent = 0);
|
|
~QIPConfigDlg();
|
|
void SetIPData(const IPConfig * m_IPdata);
|
|
void GetIPData(IPConfig * m_IPdata);
|
|
Q_SLOT void SlotCloseServer();
|
|
Q_SLOT void SlotOpenServer();
|
|
Q_SLOT void SlotOK();
|
|
private:
|
|
Ui::QIPConfigDlg ui;
|
|
signals:
|
|
void SignalCloseServer();
|
|
void SignalOpenServer(QString IPaddr, int port);
|
|
};
|
|
|
|
#endif // QIPCONFIGDLG_H
|