Beispiel #1
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);
}
Beispiel #2
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"));
}
Beispiel #3
0
void MainWindow::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.setBool("showLog", ui->actionShowLog->isChecked());
  xml.setBool("alwaysOnTop", ui->actionAlwaysOnTop->isChecked());
  xml.setBool("wordWrap", ui->actionWordWrap->isChecked());
}
Beispiel #4
0
void SnoopDump::save(VXml xml)
{
  SnoopProcess::save(xml);

  xml.setStr("filePath", filePath);
  xml.setInt("linkType", linkType);
}
Beispiel #5
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);
}
Beispiel #6
0
void VLogHttp::save(VXml xml)
{
  VLog::save(xml);

  xml.setInt("port", port);
}
void SnoopInterface::save(VXml xml)
{
	xml.setInt("index", index);
	xml.setStr("name", name);
	xml.setStr("description", description);
}
Beispiel #8
0
void SnoopAdapter::save(VXml xml)
{
  SnoopPcap::save(xml);

  xml.setInt("adapterIndex", adapterIndex);
}
Beispiel #9
0
void VNetClient::save(VXml &xml)
{
  VNet::save(xml);
  if (onceWriteSize != 0) xml.setInt("onceWriteSize", onceWriteSize);
}