I mean have you set the IMAccount in the IMContact ?

Laurent

Laurent Tarrisse a écrit :
> Hum,
>
> Can you try to use IMContact(const IMAccount & imAccount, const 
> std::string & contactId)
>
> Laurent
>
> Ankit Gandhi a écrit :
>   
>> Hello Laurent,
>>
>> Yes, I create a contact with IMContact as follows :
>> *IMContact imContact(EnumIMProtocol::IMProtocolWengo, wengoAddress);*
>>
>> So is it wrong method of adding contacts? From where I should add 
>> contacts so that it sends SUBSCRIBE for each contacts added from here.
>> Waiting for your reply.
>>
>> Thank You,
>> Ankit Gandhi
>> Ecosmob Technologies Pvt. Ltd.
>>
>> Hello,
>>
>> Do you create an IMContact when you add a contact with QtAddAccountUtils ?
>>
>> Laurent
>>
>> On Mon, Jun 29, 2009 at 1:33 PM, Ankit Gandhi 
>> <[email protected] <mailto:[email protected]>> wrote:
>>
>>     I would be really greatful to you, if you can help me in this.
>>     Please HELP me!!!
>>     Many thanks.....
>>
>>
>>     Thank You,
>>     Ankit Gandhi
>>     Ecosmob Technologies Pvt. Ltd.
>>
>>
>>     On Mon, Jun 29, 2009 at 12:04 PM, Ankit Gandhi
>>     <[email protected] <mailto:[email protected]>> wrote:
>>
>>         Hello Laurent,
>>
>>         I would just like to know, from where I should add contacts
>>         from webservice.
>>         Because adding that from QtAddAccountUtils, does not send
>>         subscribe for the contacts, and hence presence for those
>>         contacts will not work.
>>         If I manually add a contact after complete login, then
>>         presence is working for that.
>>         So for the contacts added from webservice, I would like to
>>         send subscribe for all those contacts. And hence I would like
>>         to have some idea from you how can I do that so that it sends
>>         subscribe event for the contacts.
>>         I promise that this will be the last help I would need from you.
>>         I would really appreciate your help.
>>
>>
>>         Waiting for your reply.
>>
>>         Thank You,
>>         Ankit Gandhi
>>         Ecosmob Technologies Pvt. Ltd.
>>
>>
>>         On Tue, Jun 16, 2009 at 9:33 PM, Laurent Tarrisse
>>         <[email protected] <mailto:[email protected]>> wrote:
>>
>>             >>One more thing is that, it doesn't matter that from
>>             where are we calling this function.
>>
>>             It is very important !!!
>>             If you call addContact in loginClicked() ( before the
>>             UserProfile login,for example) it will be problematic to
>>             launch asynchronous process (like download image) because
>>             your UserProfile will be erase very soon( not plugged into
>>             the model).
>>
>>             If you want to use synchronous process, keep in mind that
>>             it will be very slow : each image will be download after
>>             each other ... and the login step will be active before
>>             the download step.
>>
>>             In my opinion : the first step will be to log the
>>             UserProfile and after call the webservice to add contact,
>>             in this way you can use control class to access the model.
>>
>>
>>             Laurent
>>
>>             Ankit Gandhi a écrit :
>>
>>                 One more thing is that, it doesn't matter that from
>>                 where are we calling this function.
>>
>>                 The main thing is that, we are calling this function
>>                 with the required parameters, currently without the
>>                 image url.
>>
>>
>>                 Thank You,
>>                 Ankit Gandhi
>>                 Ecosmob Technologies Pvt. Ltd.
>>
>>
>>                 On Tue, Jun 16, 2009 at 9:09 PM, Alain - Callventure
>>                 <[email protected] <mailto:[email protected]>
>>                 <mailto:[email protected]
>>                 <mailto:[email protected]>>> wrote:
>>
>>                    Pls kindly keep Ankit in copy, he is assisting me.
>>                 Thank you for
>>                    your understanding.
>>
>>                    As he mentionned earlier, we have not called
>>                 addTestContacts.. we
>>                    made a new function  :
>>
>>                    void addContact(UserProfile* userProfile, const
>>                 std: tring&
>>                    groupId, const std: tring& fname, const std: tring&
>>                 lname, const
>>                    std: tring& sipAddress, const std: tring& imageURL)
>>
>>                    Alain
>>                    ________________________________________
>>                    De : Laurent Tarrisse [[email protected]
>>                 <mailto:[email protected]> <mailto:[email protected]
>>                 <mailto:[email protected]>>]
>>
>>                    Date d'envoi : mardi, 16. juin 2009 17:35
>>                    À : Alain - Callventure; herve
>>                    Objet : Re: RE : RE : Fetching contacts and pictures
>>                    fromwebservice and adding in       contactlist
>>
>>                    >>the older wengophone also used client webservices
>>                 for fetching
>>                    credit and other info
>>
>>                    Yes but no contacts ... and it this webservices are
>>                 created when the
>>                    profile login not before
>>
>>                    I need to know where
>>                  QtAddAccountUtils::addTestContacts is called ?
>>
>>                    Laurent
>>
>>                    Alain - Callventure a écrit :
>>                    > Hello Laurent,
>>                    >
>>                    > Thank you for your prompt reply.
>>                    >
>>                    > Pls would you bring us more information about why
>>                 it is not a
>>                    good way to implent a client webersvices into
>>                 Qutecom ? In fact,
>>                    the older wengophone also used client webservices
>>                 for fetching
>>                    credit and other info
>>                    >  and we have re-used the same for our purpose.
>>                    >
>>                    > Pls would you also bring more details regarding :
>>                 "At this time
>>                    NO VALID UserProfile is plugged into the model
>>                 engine ..."
>>                    >
>>                    > I profit this occasion to put Ankit in copy.
>>                    >
>>                    > Thank you in advance for your clarification.
>>                    >
>>                    > Best regards.
>>                    >
>>                    > Alain
>>                    >
>>                    >
>>                    > ________________________________________
>>                    > De : Laurent Tarrisse [[email protected]
>>                 <mailto:[email protected]>
>>                    <mailto:[email protected]
>>                 <mailto:[email protected]>>]
>>
>>                    > Date d'envoi : mardi, 16. juin 2009 17:08
>>                    > À : Alain - Callventure; herve
>>                    > Objet : Re: RE : Fetching contacts and pictures
>>                 fromwebservice
>>                    and adding in    contactlist
>>                    >
>>                    > Hello Alain,
>>                    >
>>                    > I don't think it is a good way to implement a
>>                 client webservice
>>                    in QuteCom :
>>                    >
>>                    > QtAddAccountsUtils funtions are ugly hacks to add
>>                 test call in
>>                    QuteCom.
>>                    > At this time NO VALID UserProfile is plugged into
>>                 the model
>>                    engine ...
>>                    >
>>                    > A good way will be to ensure that the userprofile
>>                 is logged
>>                    >
>>                    > Laurent
>>                    >
>>                    > Alain - Callventure a écrit :
>>                    >
>>                    >> Dear Laurent,
>>                    >>
>>                    >> Did you receive the below message from Ankit ?
>>                    >>
>>                    >> We need some help to complete this task.
>>                    >>
>>                    >> Thanks again.
>>                    >>
>>                    >> Alain
>>                    >>
>>                  
>>                  
>> ------------------------------------------------------------------------
>>                    >> *De :* Ankit Gandhi [[email protected]
>>                 <mailto:[email protected]>
>>                    <mailto:[email protected]
>>                 <mailto:[email protected]>>]
>>
>>                    >> *Date d'envoi :* mardi, 16. juin 2009 11:17
>>                    >> *À :* Laurent Tarrisse
>>                    >> *Cc :* Alain - Callventure; herve
>>                    >> *Objet :* Re: Fetching contacts and pictures
>>                 fromwebservice and
>>                    adding
>>                    >> in contactlist
>>                    >>
>>                    >> Hello Laurent,
>>                    >>
>>                    >> Can you give me an example to download the image
>>                 and set that into
>>                    >> contact added from
>>                    *presentation\qt\login\QtAddAccountUtils.cpp* file
>>                    >>
>>                    >> Here is the function in that file that adds
>>                 contacts of the
>>                    logged in
>>                    >> user :
>>                    >> =========================================
>>                    >> void addContact(UserProfile* userProfile, const
>>                 std::string&
>>                    groupId,
>>                    >> const std::string& fname, const std::string&
>>                 lname, const
>>                    std::string&
>>                    >> sipAddress, *const std::string& imageURL*) {
>>                    >>     Contact& contact =
>>                    userProfile->getContactList().createContact();
>>                    >>     contact.setGroupId(groupId);
>>                    >>     contact.setFirstName(fname);
>>                    >>     contact.setLastName(lname);
>>                    >>    *///Some custom code from you
>>                    >>
>>                    >>    ///End of custom code*
>>                    >>
>>                    >>     IMContact
>>                 imContact(EnumIMProtocol::IMProtocolSIP, sipAddress);
>>                    >>     contact.addIMContact(imContact);
>>                    >> }
>>                    >> =========================================
>>                    >>
>>                    >> >From my webservice call, I parse the response
>>                 to get contact
>>                    details
>>                    >> repeatedly, and call the above function to add
>>                 contact one after
>>                    >> another in a for loop. So I would like to add
>>                 custom image from url
>>                    >> from above function.
>>                    >>
>>                    >> So please suggest us appropriate method how can
>>                 I use
>>                    >> QtImageDownloader class to accomplish above things.
>>                    >>
>>                    >> Thank You,
>>                    >> Ankit Gandhi
>>                    >> Ecosmob Technologies Pvt. Ltd.
>>                    >>
>>                    >>
>>                    >> On Mon, Jun 15, 2009 at 9:17 PM, Laurent Tarrisse
>>                    <[email protected] <mailto:[email protected]>
>>                 <mailto:[email protected] <mailto:[email protected]>>
>>                    >> <mailto:[email protected]
>>                 <mailto:[email protected]> <mailto:[email protected]
>>                 <mailto:[email protected]>>>> wrote:
>>                    >>
>>                    >>     Yes it was just a example of integration ...
>>                 and i though that
>>                    >>     each time webservice add a contact, show the
>>                 profile contact
>>                    >>     window ...
>>                    >>
>>                    >>     Make the total integration, without your
>>                 client webservice
>>                    source,
>>                    >>     will be difficult ...
>>                    >>
>>                    >>     You can use for each contact added by your
>>                 webservice a
>>                    >>     QtImageDownloader class to download specific
>>                 image.
>>                    >>
>>                    >>     Laurent
>>                    >>
>>                    >>     Ankit Gandhi a écrit :
>>                    >>
>>                    >>         Hello Laurent,
>>                    >>
>>                    >>         According to our requirements, the
>>                 contact should only be
>>                    >>         added from the webservice and only those
>>                 contact's picture
>>                    >>         should be displayed from url in that
>>                 webservice.
>>                    >>         But looking at the patch, it looks that
>>                 all contacts
>>                    will have
>>                    >>         the image from the url that you had
>>                 specified in the code.
>>                    >>         So I would like that the contact should
>>                 be added
>>                    dynamically
>>                    >>         from the webservice and pictures should
>>                 be fetched for only
>>                    >>         those contacts added through webservice.
>>                    >>         So would you please send us a new patch
>>                 with above
>>                    >>         requirements fulfilled in the patch?
>>                    >>         Waiting for your reply.
>>                    >>
>>                    >>         Thank You,
>>                    >>         Ankit Gandhi
>>                    >>         Ecosmob Technologies Pvt. Ltd.
>>                    >>
>>                    >>
>>                    >>         On Mon, Jun 15, 2009 at 6:21 PM, Alain -
>>                 Callventure
>>                    >>         <[email protected]
>>                 <mailto:[email protected]>
>>                 <mailto:[email protected]
>>                 <mailto:[email protected]>>
>>                    <mailto:[email protected]
>>                 <mailto:[email protected]>
>>                 <mailto:[email protected]
>>                 <mailto:[email protected]>>>
>>                    >>         <mailto:[email protected]
>>                 <mailto:[email protected]>
>>                    <mailto:[email protected]
>>                 <mailto:[email protected]>>
>>                 <mailto:[email protected]
>>                 <mailto:[email protected]>
>>                    <mailto:[email protected]
>>                 <mailto:[email protected]>>>>>
>>                    >>         wrote:
>>                    >>
>>                    >>            Dear Ankit,
>>                    >>
>>                    >>            Pls find attached the patch for
>>                 fetching and below the
>>                    >>         translate
>>                    >>            from English to French :
>>                    >>
>>                    >>            /*Translation :
>>                    >>
>>                    >>            Pls find attached files a patch for
>>                 download image
>>                    exemple
>>                    >>         with Qt
>>                    >>            and used in the Qutecom contact list.
>>                    >>
>>                    >>            For each Add/Customization of one
>>                 contact, it download :
>>                    >>          
>>                  http://195.70.4.246/wemobile/image1.png and add it
>>                    in the
>>                    >>         profil
>>                    >>            of the contact.
>>                    >>
>>                    >>            Patch is composed by class :
>>                 QtImageDownloader
>>                    >>
>>                    >>            
>>                 
>> (wengophone/src/presentation/qt/profile/QtImageDownloader.h,wengophone/src/presentation/qt/profile/QtImageDownloader.cpp)
>>                    >>
>>                    >>            And brought modification for Qutecom
>>                 example :
>>                    >>
>>                    >>            Class : QtImageDownloader use the
>>                 function :
>>                    >>         "slot_downloadImage"
>>                    >>            for starting the download and provide
>>                    "signal_imageDownloaded"
>>                    >>            when it is completed.*
>>                    >>            /
>>                    >>            If you face any issue pls do not
>>                 hesitate to contact
>>                    >>         Laurent and
>>                    >>            put Herve and me in copy.
>>                    >>
>>                    >>
>>                    >>            Thanks and Best regards.
>>                    >>
>>                    >>            Alain
>>                    >>
>>                    >>
>>                    >>
>>                    >>
>>                    >>
>>                    >
>>                    >
>>
>>
>>
>>
>>
>>
>>     
>
> _______________________________________________
> QuteCom-dev mailing list
> [email protected]
> http://lists.qutecom.org/mailman/listinfo/qutecom-dev
>
>
>   

_______________________________________________
QuteCom-dev mailing list
[email protected]
http://lists.qutecom.org/mailman/listinfo/qutecom-dev

Reply via email to