/***************************************************************************
- * Copyright (C) 2005-2016 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 *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#ifndef COREACCOUNT_H_
-#define COREACCOUNT_H_
+#pragma once
+
+#include "client-export.h"
#include <QCoreApplication>
+#include <QDebug>
#include <QNetworkProxy>
#include <QUuid>
#include <QVariantMap>
#include "types.h"
-class CoreAccount
+
+class CLIENT_EXPORT CoreAccount
{
Q_DECLARE_TR_FUNCTIONS(CoreAccount)
public:
CoreAccount(AccountId accountId = 0);
- virtual ~CoreAccount() {};
+ virtual ~CoreAccount() = default;
inline bool isValid() const { return accountId().isValid(); }
inline AccountId accountId() const { return _accountId; }
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;
};
-
-#endif
+QDebug operator<<(QDebug dbg, const CoreAccount &msg);