1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-15 03:22:11 +01:00
falkonOfficial/src/plugins/StatusBarIcons/sbi_networkproxy.h

74 lines
2.0 KiB
C
Raw Normal View History

/* ============================================================
* StatusBarIcons - Extra icons in statusbar for QupZilla
* Copyright (C) 2013 David Rosca <nowrep@gmail.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
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* 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.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* ============================================================ */
#ifndef SBI_NETWORKPROXY_H
#define SBI_NETWORKPROXY_H
#include <QString>
class QSettings;
class SBI_NetworkProxy
{
public:
explicit SBI_NetworkProxy();
quint16 port() const;
void setPort(quint16 port);
QString hostName() const;
void setHostName(const QString &hostName);
QString userName() const;
void setUserName(const QString &userName);
QString password() const;
void setPassword(const QString &password);
bool useDifferentProxyForHttps() const;
quint16 httpsPort() const;
void setHttpsPort(quint16 port);
QString httpsHostName() const;
void setHttpsHostName(const QString &hostName);
QString httpsUserName() const;
void setHttpsUserName(const QString &userName);
QString httpsPassword() const;
void setHttpsPassword(const QString &password);
void loadFromSettings(QSettings* settings);
void saveToSettings(QSettings* settings);
private:
quint16 m_port;
QString m_hostname;
QString m_username;
QString m_password;
quint16 m_httpsPort;
QString m_httpsHostname;
QString m_httpsUsername;
QString m_httpsPassword;
bool m_useDifferentProxyForHttps;
};
#endif // SBI_NETWORKPROXY_H