If possible kindly attached your modified QtAddWengoAccount.cpp file.

On Fri, Apr 30, 2010 at 11:03 PM, preeteesh kakkar
<[email protected]> wrote:
> Hi,
>
> Have you connected the signal to appropriate slot using connect ?
>
> On Fri, Apr 30, 2010 at 7:57 PM, soufiane krify
> <[email protected]> wrote:
>> Hi, everyBody
>>
>> In qutecom, I try to add a method that allow the user to get some
>> information about his Account
>>
>> In wengophone\src\presentation\qt\login\QtAddWengoAccount.cpp, I add a
>> method called after loginClicked method to access to my website to get some
>> information. But the method in the slot is not called at the signal finished
>>
>> void QtAddWengoAccount::getInformationClient(){
>>
>>    //Test of URL
>>     const QUrl url = QUrl("http://www.free.fr/adsl/internet.html";);
>>     const QNetworkRequest requete(url);
>>     QNetworkAccessManager *m = new QNetworkAccessManager;
>>
>>     connect(m, SIGNAL(finished(QNetworkReply*)), this,
>> SLOT(result(QNetworkReply*)));
>>
>>     QNetworkReply *r = m->get(requete);
>> }
>>
>> void QtAddWengoAccount::result(QNetworkReply* reply)
>> {
>>     QString source = reply->readAll();
>>
>>     //save Reponse
>>     QFile f("fichier1.txt"); //On ouvre le fichier
>>     f.open(QIODevice::WriteOnly);
>>     f.write(reply->readAll());
>>     f.close(); //On ferme le fichier
>>     reply->deleteLater();
>>
>> }
>>
>>
>> Thanks for your help
>>
>> Soufiane
>>
>> _______________________________________________
>> 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