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

void DCGuiApp::slotHelpNewVersion (  )  [private, slot]

check for new versions

Definition at line 1632 of file dcgui.cpp.

Referenced by initActions().

{
      QString release="";
      DCGetURL * d;

      d = new DCGetURL("http://dcgui.berlios.de/version.xml");

      if ( d->exec() == QDialog::Accepted )
      {
            CString s;
            CByteArray in;
            d->GetData(&in);
            s.Set((char*)in.Data(),in.Size());

            if ( s != "" )
            {
                  release = g_pConfig->ParseVersion(s).Data();
            }

            if ( release == "" )
            {
                  release = tr("Can't get release info from server");
            }
            else
            {
                  release = tr("latest release is: ") + release;
            }

            QMessageBox::about(this,tr("Latest release..."),
                        release );
      }

      delete d;
}


Generated by  Doxygen 1.6.0   Back to index