/*** ***/
-void Identity::update(const Identity &other) {
+void Identity::copyFrom(const Identity &other) {
for(int idx = staticMetaObject.propertyOffset(); idx < staticMetaObject.propertyCount(); idx++) {
QMetaProperty metaProp = staticMetaObject.property(idx);
Q_ASSERT(metaProp.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);
inline const QSslCertificate &sslCert() const { return _sslCert; }
inline void setSslCert(const QSslCertificate &cert) { _sslCert = cert; }
void setSslCert(const QByteArray &encoded);
-#endif HAVE_SSL
+#endif /* HAVE_SSL */
- CoreIdentity& CoreIdentity::operator=(const CoreIdentity &identity);
+ CoreIdentity& operator=(const CoreIdentity &identity);
private:
#ifdef HAVE_SSL
if(identity->identityName() != clientIdentity->identityName())
renameIdentity(identity->id(), clientIdentity->identityName());
- identity->update(*clientIdentity);
+ identity->copyFrom(*clientIdentity);
if(identity->id() == currentId)
displayIdentity(identity, true);
#endif
if(dlg.duplicateId() != 0) {
// duplicate
- newId->update(*identities[dlg.duplicateId()]);
+ newId->copyFrom(*identities[dlg.duplicateId()]);
newId->setId(id);
}
newId->setIdentityName(dlg.identityName());