Esempio n. 1
0
void Widget::save(VXml xml)
{
    {
        VXml coordXml = xml.gotoChild("coord");
        QRect rect = geometry();
        coordXml.setInt("left",   rect.left());
        coordXml.setInt("top",    rect.top());
        coordXml.setInt("width",  rect.width());
        coordXml.setInt("height", rect.height());
    }

    xml.setInt("showHexa", (int)ui->chkShowHexa->checkState());
    xml.setInt("sendHexa", (int)ui->chkSendHexa->checkState());
    xml.setInt("echo", (int)ui->chkEcho->checkState());
    xml.setInt("echoBroadcast", (int)ui->chkEchoBroadcast->checkState());
    xml.setInt("currentIndex", ui->tabOption->currentIndex());
    xml.setStr("tcpPort", ui->leTcpPort->text());
    xml.setStr("udpPort", ui->leUdpPort->text());
    xml.setStr("sslPort", ui->leSslPort->text());
    xml.setStr("sendText", ui->pteSend->toPlainText());

    {
        VXml sizesXml = xml.gotoChild("sizes");
        QList<int> sizes = ui->splitter->sizes();
        QString strList;
        strList.clear();
        foreach (int size, sizes) strList += QString::number(size) + ",";
        strList = strList.left(strList.count() - 1);
        sizesXml.setStr("splitter", strList);
    }

    tcpServer.save(xml.gotoChilds("netClient/tcpServer"));
    udpServer.save(xml.gotoChilds("netClient/udpServer"));
    sslServer.save(xml.gotoChilds("netClient/sslServer"));
}
Esempio n. 2
0
void VSslServer::save(VXml xml)
{
  VTcpServer::save(xml);

  xml.setInt("methodType", (int)methodType);
  xml.setStr("certificatePath", certificatePath);
  xml.setStr("defaultKeyCrtFileName", defaultKeyCrtFileName);
  xml.setBool("processConnectMessage", processConnectMessage);
}
Esempio n. 3
0
void SnoopDump::save(VXml xml)
{
  SnoopProcess::save(xml);

  xml.setStr("filePath", filePath);
  xml.setInt("linkType", linkType);
}
Esempio n. 4
0
void VLogFile::save(VXml xml)
{
  VLog::save(xml);

  xml.setStr("folder",        folder());
  xml.setStr("fileName",      fileName);
  xml.setBool("closeOnWrite", closeOnWrite);
}
Esempio n. 5
0
void SnoopDelay::save(VXml xml)
{
  SnoopProcess::save(xml);

  QString writerName = writer == NULL ? "" : writer->name;
  xml.setStr("writer", writerName);
  xml.setULong("timeout", timeout);
}
Esempio n. 6
0
void SnoopWinDivert::save(VXml xml)
{
  SnoopCapture::save(xml);

  xml.setStr("filter", filter);
  xml.setInt("priority", (int)priority);
  xml.setInt("layer", (int)layer);
  xml.setInt("flags", (int)flags);
  xml.setInt("queueLen", (int)queueLen);
  xml.setInt("queueTime", (int)queueTime);
  xml.setBool("autoCorrectChecksum", autoCorrectChecksum);
}
void SnoopInterface::save(VXml xml)
{
	xml.setInt("index", index);
	xml.setStr("name", name);
	xml.setStr("description", description);
}
Esempio n. 8
0
void BypassHttpProxy::save(VXml xml)
{
  VHttpProxy::save(xml);
  xml.setStr("blockMsg", blockMsg);
  hostMgr.save(xml.gotoChild("hostMgr"));
}