Logo Search packages:      
Sourcecode: valknut version File versions  Download package

void DCOptions::slotGetInternetIP (  )  [private, slot]

Definition at line 709 of file dcoptions.cpp.

References http, and slotGotInternetIP().

Referenced by InitDocument().

{
      PushButton_GETINTERNETIP->setEnabled(FALSE);
      
      QHttpRequestHeader header( "GET", "/" );
      header.setValue( "Host", "whatismyip.org" );
      QString useragent = QString("Valknut/") + VERSION;
      //printf("User-Agent=%s\n", useragent.ascii());
      header.setValue( "User-Agent", useragent );
      
      http = new QHttp();
      connect( http, SIGNAL(done(bool)), this, SLOT(slotGotInternetIP(bool)) );
      http->setHost( "whatismyip.org" );
      http->request( header );
}


Generated by  Doxygen 1.6.0   Back to index