X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fcoreaccount.h;h=b69552c5984bfaee056c1c5fcaba61b3781d8195;hb=c194ed5fb3d15e14b9364f9796d3521910dc72fe;hp=e60e0e69882b4946ce20fbf4192f3f3f9038583f;hpb=ffa9c1a119c458b8bef2dfa226ce6222b845e56f;p=quassel.git diff --git a/src/client/coreaccount.h b/src/client/coreaccount.h index e60e0e69..b69552c5 100644 --- a/src/client/coreaccount.h +++ b/src/client/coreaccount.h @@ -1,5 +1,5 @@ /*************************************************************************** - * 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 * @@ -18,22 +18,25 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef COREACCOUNT_H_ -#define COREACCOUNT_H_ +#pragma once + +#include "client-export.h" #include +#include #include #include #include #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; } @@ -78,6 +81,7 @@ public: virtual void fromVariantMap(const QVariantMap &); bool operator==(const CoreAccount &other) const; + bool operator!=(const CoreAccount &other) const; private: AccountId _accountId; @@ -92,5 +96,4 @@ private: uint _proxyPort; }; - -#endif +QDebug operator<<(QDebug dbg, const CoreAccount &msg);