예제 #1
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());
}
예제 #2
0
void VLogFile::save(VXml xml)
{
  VLog::save(xml);

  xml.setStr("folder",        folder());
  xml.setStr("fileName",      fileName);
  xml.setBool("closeOnWrite", closeOnWrite);
}
예제 #3
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);
}
예제 #4
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);
}
예제 #5
0
void VLogStdout::save(VXml xml)
{
  VLog::save(xml);

  xml.setBool("autoFlush", autoFlush);
}
예제 #6
0
void VHttpProxy::save(VXml xml)
{
  tcpServer.save(xml.gotoChild("tcpServer"));
  xml.setBool("autoOpen", autoOpen);
}