本文整理汇总了C++中PluginManager::setName方法的典型用法代码示例。如果您正苦于以下问题:C++ PluginManager::setName方法的具体用法?C++ PluginManager::setName怎么用?C++ PluginManager::setName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PluginManager
的用法示例。
在下文中一共展示了PluginManager::setName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetSetting
virtual bool SetSetting( int id, QVariant data )
{
PluginManager* pluginManager = PluginManager::instance();
bool ok = true;
SettingsID type = SettingsID( id );
switch ( type ) {
case Input:
pluginManager->setInputFile( data.toString() );
break;
case Output:
pluginManager->setOutputDirectory( data.toString() );
break;
case Name:
pluginManager->setName( data.toString() );
break;
case Plugins:
listPlugins = true;
break;
case Importer:
importer = data.toString();
break;
case Router:
router = data.toString();
break;
case GPSLookup:
gpsLookup = data.toString();
break;
case Renderer:
renderer = data.toString();
break;
case AddressLookup:
addressLookup = data.toString();
break;
case DoImporting:
importing = true;
break;
case DoRouting:
routingModule = data.toString();
break;
case DoRendering:
renderingModule = data.toString();
break;
case DoAddressLookup:
addressLookupModule = data.toString();
break;
case DoConfig:
config = true;
break;
case DoDelTmp:
del = true;
break;
case DoPackage:
package = true;
break;
case ModuleBlockSize:
pluginManager->setBlockSize( data.toInt( &ok ) );
break;
case ModuleDictionarySize:
pluginManager->setDictionarySize( data.toInt( &ok ) );
break;
case Log:
Log::instance()->setLogFile( data.toString() );
break;
case Settings:
settings = data.toString();
break;
case Verbose:
verbose = true;
break;
case Threads:
omp_set_num_threads( data.toInt( &ok ) );
break;
case Help:
help = true;
break;
default:
return false;
}
return ok;
}