void VCardDialog::InitConnections (EntryBase *entry) { connect (entry, SIGNAL (statusChanged (const EntryStatus&, const QString&)), this, SLOT (rebuildClientInfo ())); connect (entry, SIGNAL (entryGenerallyChanged ()), this, SLOT (rebuildClientInfo ())); }
void VCardDialog::UpdateNote (GlooxAccount *acc, const QString& jid) { if (!acc) return; Account_ = acc; JID_ = jid; Note_ = acc->GetClientConnection ()-> GetAnnotationsManager ()->GetNote (jid); Ui_.NotesEdit_->setPlainText (Note_.note ()); rebuildClientInfo (); QObject *entryObj = acc->GetClientConnection ()->GetCLEntry (jid); InitConnections (qobject_cast<EntryBase*> (entryObj)); }