2013-07-24 21:53:05 +04:00
|
|
|
/*
|
|
|
|
* Copyright (C) by Daniel Molkentin <danimo@owncloud.com>
|
|
|
|
*
|
|
|
|
* 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
|
2016-10-25 12:00:07 +03:00
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
2013-07-24 21:53:05 +04:00
|
|
|
*
|
|
|
|
* This program 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MIRALL_NETWORKSETTINGS_H
|
|
|
|
#define MIRALL_NETWORKSETTINGS_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
|
2014-11-10 00:34:07 +03:00
|
|
|
namespace OCC {
|
2013-07-24 21:53:05 +04:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class NetworkSettings;
|
|
|
|
}
|
|
|
|
|
2015-06-29 19:56:09 +03:00
|
|
|
/**
|
|
|
|
* @brief The NetworkSettings class
|
|
|
|
* @ingroup gui
|
2015-06-26 18:07:47 +03:00
|
|
|
*/
|
2013-07-24 21:53:05 +04:00
|
|
|
class NetworkSettings : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2018-11-11 12:56:22 +03:00
|
|
|
explicit NetworkSettings(QWidget *parent = nullptr);
|
2013-07-24 21:53:05 +04:00
|
|
|
~NetworkSettings();
|
2018-04-23 13:51:58 +03:00
|
|
|
QSize sizeHint() const override;
|
2013-07-24 21:53:05 +04:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void saveProxySettings();
|
|
|
|
void saveBWLimitSettings();
|
|
|
|
|
2017-11-05 21:50:09 +03:00
|
|
|
/// Red marking of host field if empty and enabled
|
|
|
|
void checkEmptyProxyHost();
|
|
|
|
|
2018-04-16 16:37:28 +03:00
|
|
|
protected:
|
|
|
|
void showEvent(QShowEvent *event) override;
|
|
|
|
|
2013-07-24 21:53:05 +04:00
|
|
|
private:
|
|
|
|
void loadProxySettings();
|
|
|
|
void loadBWLimitSettings();
|
|
|
|
|
|
|
|
Ui::NetworkSettings *_ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-11-10 00:34:07 +03:00
|
|
|
} // namespace OCC
|
2013-07-24 21:53:05 +04:00
|
|
|
#endif // MIRALL_NETWORKSETTINGS_H
|