foreach(translation,translations){
translation->setBookmark(true);
trans.insert(translation->toXml(),translation->key());
+
}
foreach(QString value,trans.keys()){
wait=true; /* bool - change in slot done (initiate by http) */
stopped=false; /* bool - change in slot stop (initiate in gui) */
-
int lastState=0;
- //qDebug()<<"google3";
http->request(head, data);
while(wait && (error=="" || error=="Unknown error") && !stopped){
error=http->errorString();
if(lastState!=http->state()) {
lastState=http->state();
- // qDebug()<<lastState;
if(lastState==0){
done();
- // qDebug()<<"done2";
}
}
}
- //qDebug()<<"google4";
if(error!="" && error!="Unknown error") {
if(!noNetworkErrorShowed) {
noNetworkErrorShowed = true;
void GooglePlugin::done() {
-// qDebug()<<"done";
wait=false;
}