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()); }
void VLogFile::save(VXml xml) { VLog::save(xml); xml.setStr("folder", folder()); xml.setStr("fileName", fileName); xml.setBool("closeOnWrite", closeOnWrite); }
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); }
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 VLogStdout::save(VXml xml) { VLog::save(xml); xml.setBool("autoFlush", autoFlush); }
void VHttpProxy::save(VXml xml) { tcpServer.save(xml.gotoChild("tcpServer")); xml.setBool("autoOpen", autoOpen); }