/***************************************************************************
- * Copyright (C) 2005-2018 by the Quassel Project *
+ * Copyright (C) 2005-2019 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
public:
CoreAccount(AccountId accountId = 0);
- virtual ~CoreAccount() {};
+ virtual ~CoreAccount() = default;
inline bool isValid() const { return accountId().isValid(); }
inline AccountId accountId() const { return _accountId; }
inline uint proxyPort() const { return _proxyPort; }
void setAccountId(AccountId id);
- void setAccountName(const QString &accountName);
- void setUuid(const QUuid &uuid);
+ void setAccountName(const QString& accountName);
+ void setUuid(const QUuid& uuid);
void setInternal(bool);
- void setUser(const QString &user);
+ void setUser(const QString& user);
void setStorePassword(bool);
- void setHostName(const QString &hostname);
+ void setHostName(const QString& hostname);
void setPort(uint port);
void setUseSsl(bool);
void setProxyType(QNetworkProxy::ProxyType);
- void setProxyUser(const QString &);
- void setProxyHostName(const QString &);
+ void setProxyUser(const QString&);
+ void setProxyHostName(const QString&);
void setProxyPort(uint);
/* These might be overridden for KWallet/QtKeychain support */
virtual inline QString password() const { return _password; }
- virtual void setPassword(const QString &password);
+ virtual void setPassword(const QString& password);
virtual inline QString proxyPassword() const { return _proxyPassword; }
- virtual void setProxyPassword(const QString &);
+ virtual void setProxyPassword(const QString&);
virtual QVariantMap toVariantMap(bool forcePassword = false) const;
- virtual void fromVariantMap(const QVariantMap &);
+ virtual void fromVariantMap(const QVariantMap&);
- bool operator==(const CoreAccount &other) const;
- bool operator!=(const CoreAccount &other) const;
+ bool operator==(const CoreAccount& other) const;
+ bool operator!=(const CoreAccount& other) const;
private:
AccountId _accountId;
uint _proxyPort;
};
-QDebug operator<<(QDebug dbg, const CoreAccount &msg);
+QDebug operator<<(QDebug dbg, const CoreAccount& msg);