本文整理汇总了C++中KValueRef::SetObject方法的典型用法代码示例。如果您正苦于以下问题:C++ KValueRef::SetObject方法的具体用法?C++ KValueRef::SetObject怎么用?C++ KValueRef::SetObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KValueRef
的用法示例。
在下文中一共展示了KValueRef::SetObject方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: _CreateHTTPCookie
void NetworkBinding::_CreateHTTPCookie(const ValueList& args, KValueRef result)
{
result->SetObject(new HTTPCookie());
}
示例2: _GetApplication
void APIBinding::_GetApplication(const ValueList& args, KValueRef result)
{
KObjectRef app = new ApplicationBinding(host->GetApplication(), true);
result->SetObject(app);
}
示例3: _CreateHTTPServer
void NetworkBinding::_CreateHTTPServer(const ValueList& args, KValueRef result)
{
result->SetObject(new HTTPServerBinding(host));
}
示例4: _CreateIRCClient
void NetworkBinding::_CreateIRCClient(const ValueList& args, KValueRef result)
{
AutoPtr<IRCClientBinding> irc = new IRCClientBinding(host);
result->SetObject(irc);
}
示例5: _CreateTCPServerSocket
void NetworkBinding::_CreateTCPServerSocket(const ValueList& args, KValueRef result)
{
args.VerifyException("createTCPServerSocket", "m");
KMethodRef target = args.at(0)->ToMethod();
result->SetObject(new TCPServerSocketBinding(host,target));
}
示例6: _GetHostByName
void NetworkBinding::_GetHostByName(const ValueList& args, KValueRef result)
{
result->SetObject(GetHostBinding(args.GetString(0)));
}
示例7: GetSystemProperties
void AppBinding::GetSystemProperties(const ValueList& args, KValueRef result)
{
result->SetObject(AppConfig::Instance()->GetSystemProperties());
}