Esempio n. 1
0
 void ApplicationBinding::_GetVersion(const ValueList& args, KValueRef result)
 {
     result->SetString(this->application->version);
 }
Esempio n. 2
0
void Platform::_GetProcessorCount(const ValueList& args, KValueRef result)
{
    result->SetInt(PlatformUtils::GetProcessorCount());
}
Esempio n. 3
0
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());
	}
Esempio n. 6
0
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());
	}
Esempio n. 8
0
 void ApplicationBinding::_GetArguments(const ValueList& args, KValueRef result)
 {
     std::vector<std::string> arguments = this->application->GetArguments();
     KListRef argumentList = StaticBoundList::FromStringVector(arguments);
     result->SetList(argumentList);
 }
Esempio n. 9
0
 void ApplicationBinding::_HasArgument(const ValueList& args, KValueRef result)
 {
     args.VerifyException("hasArgument", "s");
     string arg = args.at(0)->ToString();
     result->SetBool(this->application->HasArgument(arg));
 }
Esempio n. 10
0
 void ApplicationBinding::_GetManifestPath(const ValueList& args, KValueRef result)
 {
     result->SetString(this->application->manifestPath);
 }
Esempio n. 11
0
 void ApplicationBinding::_IsCurrent(const ValueList& args, KValueRef result)
 {
     result->SetBool(this->current);
 }
Esempio n. 12
0
 void ApplicationBinding::_GetDataPath(const ValueList& args, KValueRef result)
 {
     string dataPath = this->application->GetDataPath();
     result->SetString(dataPath);
 }
Esempio n. 13
0
 void ApplicationBinding::_GetResourcesPath(const ValueList& args, KValueRef result)
 {
     string resourcesPath = this->application->GetResourcesPath();
     result->SetString(resourcesPath);
 }
Esempio n. 14
0
 void ApplicationBinding::_GetExecutablePath(const ValueList& args, KValueRef result)
 {
     string executablePath = this->application->GetExecutablePath();
     result->SetString(executablePath);
 }
Esempio n. 15
0
void ComponentBinding::_GetName(const ValueList& args, KValueRef result)
{
    result->SetString(this->component->name);
}
Esempio n. 16
0
 void ApplicationBinding::_GetDependencies(const ValueList& args, KValueRef result)
 {
     result->SetList(APIBinding::DependencyVectorToKList(
         this->application->dependencies));
 }
Esempio n. 17
0
void ComponentBinding::_GetVersion(const ValueList& args, KValueRef result)
{
    result->SetString(this->component->version);
}
Esempio n. 18
0
 void ApplicationBinding::_ResolveDependencies(const ValueList& args, KValueRef result)
 {
     std::vector<SharedDependency> unresolved = this->application->ResolveDependencies();
     result->SetList(APIBinding::DependencyVectorToKList(unresolved));
 }
Esempio n. 19
0
void Clipboard::_HasText(const ValueList& args, KValueRef result)
{
    result->SetBool(this->HasText());
}
Esempio n. 20
0
 void ApplicationBinding::_GetModules(const ValueList& args, KValueRef result)
 {
     std::vector<SharedComponent>& components = this->application->modules;
     KListRef componentList = APIBinding::ComponentVectorToKList(components);
     result->SetList(componentList);
 }
Esempio n. 21
0
	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);
	}
Esempio n. 23
0
	void HTTPCookie::IsSecure(const ValueList& args, KValueRef result)
	{
		result->SetBool(this->cookie.getSecure());
	}
Esempio n. 24
0
void ComponentBinding::_GetPath(const ValueList& args, KValueRef result)
{
    result->SetString(this->component->path);
}
Esempio n. 25
0
void Platform::_GetType(const ValueList& args, KValueRef result)
{
    result->SetString(OS_TYPE);
}
Esempio n. 26
0
void ComponentBinding::_IsBundled(const ValueList& args, KValueRef result)
{
    result->SetBool(this->component->bundled);
}
Esempio n. 27
0
void Platform::_GetArchitecture(const ValueList& args, KValueRef result)
{
    result->SetString(Poco::Environment::osArchitecture().c_str());
}
Esempio n. 28
0
void ComponentBinding::_GetType(const ValueList& args, KValueRef result)
{
    result->SetInt((int) this->component->type);
}
Esempio n. 29
0
void Platform::_GetUsername(const ValueList& args, KValueRef result)
{
    result->SetString(PlatformUtils::GetUsername().c_str());
}
Esempio n. 30
0
 void ApplicationBinding::_GetName(const ValueList& args, KValueRef result)
 {
     result->SetString(this->application->name);
 }