X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fidentity.h;h=3e9a5607aca16ea3a6ba91a93dc444f3a6e89f0c;hp=a71e0eeb9b9e86a4d21f72a9c49bd72771a8965d;hb=0bc4b2b4a25adea85d5f6c6947cfd31f9098149e;hpb=ac21cc48d22f0cf58a98b74754fa94564a8e3f45 diff --git a/src/common/identity.h b/src/common/identity.h index a71e0eeb..3e9a5607 100644 --- a/src/common/identity.h +++ b/src/common/identity.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -60,8 +60,8 @@ public: void setToDefaults(); - bool operator==(const Identity &other); - bool operator!=(const Identity &other); + bool operator==(const Identity &other) const; + bool operator!=(const Identity &other) const; inline bool isValid() const { return id().isValid(); } @@ -106,7 +106,7 @@ public slots: void setPartReason(const QString &reason); void setQuitReason(const QString &reason); - void update(const Identity &other); + void copyFrom(const Identity &other); signals: void idSet(IdentityId id); @@ -147,6 +147,8 @@ private: QString _ident, _kickReason, _partReason, _quitReason; void init(); + QString defaultNick(); + QString defaultRealName(); friend QDataStream &operator>>(QDataStream &in, Identity &identity); };