void ApplicationBinding::_GetVersion(const ValueList& args, KValueRef result) { result->SetString(this->application->version); }
void Platform::_GetProcessorCount(const ValueList& args, KValueRef result) { result->SetInt(PlatformUtils::GetProcessorCount()); }
void Platform::_GetMachineId(const ValueList& args, KValueRef result) { result->SetString(PlatformUtils::GetMachineId().c_str()); }
void HTTPCookie::IsHTTPOnly(const ValueList& args, KValueRef result) { result->SetBool(this->cookie.getHttpOnly()); }
void HTTPCookie::ToString(const ValueList& args, KValueRef result) { result->SetString(this->cookie.toString().c_str()); }
void Clipboard::_GetText(const ValueList& args, KValueRef result) { result->SetString(this->GetText()); }
void HTTPCookie::GetMaxAge(const ValueList& args, KValueRef result) { result->SetInt(this->cookie.getMaxAge()); }
void ApplicationBinding::_GetArguments(const ValueList& args, KValueRef result) { std::vector<std::string> arguments = this->application->GetArguments(); KListRef argumentList = StaticBoundList::FromStringVector(arguments); result->SetList(argumentList); }
void ApplicationBinding::_HasArgument(const ValueList& args, KValueRef result) { args.VerifyException("hasArgument", "s"); string arg = args.at(0)->ToString(); result->SetBool(this->application->HasArgument(arg)); }
void ApplicationBinding::_GetManifestPath(const ValueList& args, KValueRef result) { result->SetString(this->application->manifestPath); }
void ApplicationBinding::_IsCurrent(const ValueList& args, KValueRef result) { result->SetBool(this->current); }
void ApplicationBinding::_GetDataPath(const ValueList& args, KValueRef result) { string dataPath = this->application->GetDataPath(); result->SetString(dataPath); }
void ApplicationBinding::_GetResourcesPath(const ValueList& args, KValueRef result) { string resourcesPath = this->application->GetResourcesPath(); result->SetString(resourcesPath); }
void ApplicationBinding::_GetExecutablePath(const ValueList& args, KValueRef result) { string executablePath = this->application->GetExecutablePath(); result->SetString(executablePath); }
void ComponentBinding::_GetName(const ValueList& args, KValueRef result) { result->SetString(this->component->name); }
void ApplicationBinding::_GetDependencies(const ValueList& args, KValueRef result) { result->SetList(APIBinding::DependencyVectorToKList( this->application->dependencies)); }
void ComponentBinding::_GetVersion(const ValueList& args, KValueRef result) { result->SetString(this->component->version); }
void ApplicationBinding::_ResolveDependencies(const ValueList& args, KValueRef result) { std::vector<SharedDependency> unresolved = this->application->ResolveDependencies(); result->SetList(APIBinding::DependencyVectorToKList(unresolved)); }
void Clipboard::_HasText(const ValueList& args, KValueRef result) { result->SetBool(this->HasText()); }
void ApplicationBinding::_GetModules(const ValueList& args, KValueRef result) { std::vector<SharedComponent>& components = this->application->modules; KListRef componentList = APIBinding::ComponentVectorToKList(components); result->SetList(componentList); }
void HTTPCookie::GetComment(const ValueList& args, KValueRef result) { result->SetString(this->cookie.getComment().c_str()); }
void TCPServerConnectionBinding::IsClosed(const ValueList& args, KValueRef result) { return result->SetBool(this->closed); }
void HTTPCookie::IsSecure(const ValueList& args, KValueRef result) { result->SetBool(this->cookie.getSecure()); }
void ComponentBinding::_GetPath(const ValueList& args, KValueRef result) { result->SetString(this->component->path); }
void Platform::_GetType(const ValueList& args, KValueRef result) { result->SetString(OS_TYPE); }
void ComponentBinding::_IsBundled(const ValueList& args, KValueRef result) { result->SetBool(this->component->bundled); }
void Platform::_GetArchitecture(const ValueList& args, KValueRef result) { result->SetString(Poco::Environment::osArchitecture().c_str()); }
void ComponentBinding::_GetType(const ValueList& args, KValueRef result) { result->SetInt((int) this->component->type); }
void Platform::_GetUsername(const ValueList& args, KValueRef result) { result->SetString(PlatformUtils::GetUsername().c_str()); }
void ApplicationBinding::_GetName(const ValueList& args, KValueRef result) { result->SetString(this->application->name); }