soc.2009.transport: b97d78ba: Fixed VCard handler
hanzz at soc.pidgin.im
hanzz at soc.pidgin.im
Tue Jun 2 07:06:11 EDT 2009
-----------------------------------------------------------------
Revision: b97d78bafab066932e3dbc1209cc36a8c4f61a82
Ancestor: a49058de2afabbbb92ca92a33c84d58669d6a8c5
Author: hanzz at soc.pidgin.im
Date: 2009-06-02T10:44:57
Branch: im.pidgin.soc.2009.transport
URL: http://d.pidgin.im/viewmtn/revision/info/b97d78bafab066932e3dbc1209cc36a8c4f61a82
Modified files:
main.cpp vcardhandler.cpp
ChangeLog:
Fixed VCard handler
-------------- next part --------------
============================================================
--- main.cpp fbd6a69a1fea5b4d6d8f52d8ab5f7303e7f7a114
+++ main.cpp ef59cb5491a0d73dc4021f3511742bb8efbc2410
@@ -509,7 +509,7 @@ GlooxMessageHandler::GlooxMessageHandler
m_stats = new GlooxStatsHandler(this);
j->registerIqHandler(m_stats,ExtStats);
m_vcard = new GlooxVCardHandler(this);
- j->registerIqHandler(m_vcard,"vcard-temp");
+ j->registerIqHandler(m_vcard,ExtVCard);
j->registerPresenceHandler(this);
j->registerSubscriptionHandler(this);
j->connect(false);
============================================================
--- vcardhandler.cpp 6e00fb6b887f7fa0e4b96a943679c2b4366fb1aa
+++ vcardhandler.cpp c3ea021735cc157973fd26bbd04d14bda66b8a5a
@@ -21,6 +21,7 @@
#include "vcardhandler.h"
#include "usermanager.h"
#include "log.h"
+#include "gloox/vcard.h"
void base64encode(const unsigned char * input, int len, std::string & out)
{
@@ -84,6 +85,7 @@ GlooxVCardHandler::GlooxVCardHandler(Glo
GlooxVCardHandler::GlooxVCardHandler(GlooxMessageHandler *parent) : IqHandler(){
p=parent;
+ p->j->registerStanzaExtension( new VCard() );
}
GlooxVCardHandler::~GlooxVCardHandler(){
More information about the Commits
mailing list