QVariantMap NetworkManager::BluetoothSetting::toMap() const { QVariantMap setting; if (!bluetoothAddress().isEmpty()) { setting.insert(QLatin1String(NM_SETTING_BLUETOOTH_BDADDR), bluetoothAddress()); } switch (profileType()) { case Dun: setting.insert(QLatin1String(NM_SETTING_BLUETOOTH_TYPE), QLatin1String(NM_SETTING_BLUETOOTH_TYPE_DUN)); break; case Panu: setting.insert(QLatin1String(NM_SETTING_BLUETOOTH_TYPE), QLatin1String(NM_SETTING_BLUETOOTH_TYPE_PANU)); break; } return setting; }
InputParameters validParams<SmoothCircleBaseIC>() { InputParameters params = validParams<InitialCondition>(); params.addRequiredParam<Real>("invalue", "The variable value inside the circle"); params.addRequiredParam<Real>("outvalue", "The variable value outside the circle"); params.addParam<Real>( "int_width", 0.0, "The interfacial width of the void surface. Defaults to sharp interface"); params.addParam<bool>("3D_spheres", true, "in 3D, whether the objects are spheres or columns"); params.addParam<bool>("zero_gradient", false, "Set the gradient DOFs to zero. This can avoid " "numerical problems with higher order shape " "functions and overlapping circles."); params.addParam<unsigned int>("rand_seed", 12345, "Seed value for the random number generator"); MooseEnum profileType("COS TANH", "COS"); params.addParam<MooseEnum>( "profile", profileType, "Functional dependence for the interface profile"); return params; }