/***************************************************************************
- * Copyright (C) 2009 by the Quassel Project *
+ * Copyright (C) 2005-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef COREACCOUNT_H_
#define COREACCOUNT_H_
#include <QCoreApplication>
+#include <QDebug>
#include <QNetworkProxy>
#include <QUuid>
#include <QVariantMap>
inline uint port() const { return _port; }
inline bool useSsl() const { return _useSsl; }
- inline bool useProxy() const { return _useProxy; }
inline QNetworkProxy::ProxyType proxyType() const { return _proxyType; }
inline QString proxyUser() const { return _proxyUser; }
inline QString proxyHostName() const { return _proxyHostName; }
void setPort(uint port);
void setUseSsl(bool);
- void setUseProxy(bool);
void setProxyType(QNetworkProxy::ProxyType);
void setProxyUser(const QString &);
void setProxyHostName(const QString &);
void setProxyPort(uint);
- /* These might be overridden for KWallet support */
+ /* These might be overridden for KWallet/QtKeychain support */
virtual inline QString password() const { return _password; }
virtual void setPassword(const QString &password);
virtual inline QString proxyPassword() const { return _proxyPassword; }
virtual void fromVariantMap(const QVariantMap &);
bool operator==(const CoreAccount &other) const;
+ bool operator!=(const CoreAccount &other) const;
private:
AccountId _accountId;
bool _internal;
QString _user, _password, _hostName;
uint _port;
- bool _storePassword, _useSsl, _useProxy;
+ bool _storePassword, _useSsl;
QNetworkProxy::ProxyType _proxyType;
QString _proxyUser, _proxyPassword, _proxyHostName;
uint _proxyPort;
};
+QDebug operator<<(QDebug dbg, const CoreAccount &msg);
#endif