#114: Presence and chat in wengo account login ?
-----------------------+----------------------------------------------------
Reporter: ahgindia | Owner: vadim
Type: defect | Status: new
Priority: major | Milestone: QuteCom 2.2-RC2
Component: misc | Version: 2.2-RC3
Resolution: | Keywords: wengo account, presence, chat
-----------------------+----------------------------------------------------
Comment(by ahgindia):
Hi Laurent,
Now it is sending PUBLISH message for the logged in user through
wengoaccount.
In my flow, the next process, I add contacts from QtAddAccountUtils class.
But doing this, does not send SUBSCRIBE messages for the added contacts
through above method.
So could you please suggest me appropriate function to implement this.
I tried to use following function in QtAddAccountUtils, but I could not
get a valid IMAccount reference. I just get NULL reference.
Here is my full QtAddAccountUtils function. So it would be greatful if you
can help me and provide the full function modified according to your
thoughts and knowledge :
{{{
void addContact(UserProfile* userProfile, const std::string& groupId,
const std::string& fname, const std::string& lname, const std::string&
wengoAddress) {
Contact& contact = userProfile->getContactList().createContact();
contact.setGroupId(groupId);
contact.setFirstName(fname);
contact.setLastName(lname);
IMContact imContact(EnumIMProtocol::IMProtocolWengo,
wengoAddress);
contact.addIMContact(imContact);
IMAccount * imAccount =
userProfile->getIMAccountManager().getIMAccount(imContact.getIMAccountId());
imContact.setIMAccount(imAccount);
}
}}}
Once again, thank you very much for your help and waiting for your reply.
Thanks,
Ankit.
--
Ticket URL: <http://trac.qutecom.org/ticket/114#comment:7>
QuteCom <http://trac.qutecom.org>
_______________________________________________
QuteCom-dev mailing list
[email protected]
http://lists.qutecom.org/mailman/listinfo/qutecom-dev