本文整理汇总了C++中KValueRef类的典型用法代码示例。如果您正苦于以下问题:C++ KValueRef类的具体用法?C++ KValueRef怎么用?C++ KValueRef使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了KValueRef类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: _GetVersion
void ApplicationBinding::_GetVersion(const ValueList& args, KValueRef result)
{
result->SetString(this->application->version);
}
示例2: _GetProcessorCount
void Platform::_GetProcessorCount(const ValueList& args, KValueRef result)
{
result->SetInt(PlatformUtils::GetProcessorCount());
}
示例3: _GetMachineId
void Platform::_GetMachineId(const ValueList& args, KValueRef result)
{
result->SetString(PlatformUtils::GetMachineId().c_str());
}
示例4: IsHTTPOnly
void HTTPCookie::IsHTTPOnly(const ValueList& args, KValueRef result)
{
result->SetBool(this->cookie.getHttpOnly());
}
示例5: ToString
void HTTPCookie::ToString(const ValueList& args, KValueRef result)
{
result->SetString(this->cookie.toString().c_str());
}
示例6: _GetText
void Clipboard::_GetText(const ValueList& args, KValueRef result)
{
result->SetString(this->GetText());
}
示例7: GetMaxAge
void HTTPCookie::GetMaxAge(const ValueList& args, KValueRef result)
{
result->SetInt(this->cookie.getMaxAge());
}
示例8: _GetArguments
void ApplicationBinding::_GetArguments(const ValueList& args, KValueRef result)
{
std::vector<std::string> arguments = this->application->GetArguments();
KListRef argumentList = StaticBoundList::FromStringVector(arguments);
result->SetList(argumentList);
}
示例9: _HasArgument
void ApplicationBinding::_HasArgument(const ValueList& args, KValueRef result)
{
args.VerifyException("hasArgument", "s");
string arg = args.at(0)->ToString();
result->SetBool(this->application->HasArgument(arg));
}
示例10: _GetManifestPath
void ApplicationBinding::_GetManifestPath(const ValueList& args, KValueRef result)
{
result->SetString(this->application->manifestPath);
}
示例11: _IsCurrent
void ApplicationBinding::_IsCurrent(const ValueList& args, KValueRef result)
{
result->SetBool(this->current);
}
示例12: _GetDataPath
void ApplicationBinding::_GetDataPath(const ValueList& args, KValueRef result)
{
string dataPath = this->application->GetDataPath();
result->SetString(dataPath);
}
示例13: _GetResourcesPath
void ApplicationBinding::_GetResourcesPath(const ValueList& args, KValueRef result)
{
string resourcesPath = this->application->GetResourcesPath();
result->SetString(resourcesPath);
}
示例14: _GetExecutablePath
void ApplicationBinding::_GetExecutablePath(const ValueList& args, KValueRef result)
{
string executablePath = this->application->GetExecutablePath();
result->SetString(executablePath);
}
示例15: _GetName
void ComponentBinding::_GetName(const ValueList& args, KValueRef result)
{
result->SetString(this->component->name);
}