summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_dcopref2.js
blob: 02cd3df39506d4e4df8c1ffb7e4fb8bc0dc57afa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env kjscmd

println( "Hello World" );

var d = new DCOPClient();

if ( d.attach())
{
	println("Attached...");
	if( d.isAttached() )
	{
		var ref = new DCOPRef();
		ref.setRef( "KWeatherService", "WeatherService" );
		println ( ref.call( "date(QString)", "KMKE") );

	}
	else
		println( "Error!" )
}
else
	println("Failed...");

println( "Done" );