/***************************************************************************
- * 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 *
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(); }
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);
QString _ident, _kickReason, _partReason, _quitReason;
void init();
+ QString defaultNick();
+ QString defaultRealName();
friend QDataStream &operator>>(QDataStream &in, Identity &identity);
};