63 lines
1.3 KiB
C++
63 lines
1.3 KiB
C++
/***************************************************************************
|
|
|
|
miniCashConnect
|
|
Copyright © 2022 christoph holzheuer
|
|
c.holzheuer@sourceworx.org
|
|
|
|
This program 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.
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
#ifndef MCCNETWORKDIALOG_H
|
|
#define MCCNETWORKDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QtGui>
|
|
#include <QHostInfo>
|
|
#include <QMutex>
|
|
|
|
#include <libMiniCash.h>
|
|
|
|
namespace Ui
|
|
{
|
|
class MCNetworkDialog;
|
|
}
|
|
|
|
/**
|
|
* @brief Hilfsdialog, setzt und überprüft die Netzwerkeinstellungen,
|
|
* zusätzlich zum normalen 'Setup'-Dialog.
|
|
*/
|
|
|
|
class LIBMINICASH_EXPORT MCNetworkDialog : public QDialog
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit MCNetworkDialog( QWidget* parent, QSettings* settings );
|
|
virtual ~MCNetworkDialog();
|
|
|
|
public slots:
|
|
|
|
void accept() override;
|
|
void onSetNetworkEnabled(bool);
|
|
void onTestHostEntry( const QString& entry = "" );
|
|
bool onLookupHost( const QHostInfo& hostInfo );
|
|
|
|
protected:
|
|
|
|
Ui::MCNetworkDialog* _ui{};
|
|
|
|
QSettings* _settings = nullptr;
|
|
bool _useNetwork = false;
|
|
|
|
};
|
|
|
|
|
|
#endif // MCCNETWORKDIALOG_H
|