diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-03-04 08:43:53 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-03-04 08:43:53 +0000 |
| commit | bb95ebd0e305071ccea30e356844042402bcd76b (patch) | |
| tree | 8290d542d1c53c81828a3f8a5d45cf387a4c72d7 /source/QXmppVCard.cpp | |
| parent | f3c8579fd664461f529d2fe4713093596ba9ff97 (diff) | |
| download | qxmpp-bb95ebd0e305071ccea30e356844042402bcd76b.tar.gz | |
regroup common stanza parsing inside QXmppStanza::parse()
Diffstat (limited to 'source/QXmppVCard.cpp')
| -rw-r--r-- | source/QXmppVCard.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/source/QXmppVCard.cpp b/source/QXmppVCard.cpp index bbab4bff..5035c0f4 100644 --- a/source/QXmppVCard.cpp +++ b/source/QXmppVCard.cpp @@ -77,14 +77,9 @@ void QXmppVCard::setPhoto(const QImage& image) void QXmppVCard::parse(const QDomElement& nodeRecv) { - QString id = nodeRecv.attribute("id"); - QString to = nodeRecv.attribute("to"); - QString from = nodeRecv.attribute("from"); - QString type = nodeRecv.attribute("type"); - setTypeFromStr(type); - setId(id); - setTo(to); - setFrom(from); + QXmppStanza::parse(nodeRecv); + + setTypeFromStr(nodeRecv.attribute("type")); // vCard setFullName(nodeRecv.firstChildElement("vCard"). |
