summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/dcop/interface.js
blob: ed699768026bbfad5cd5e5fbffbbec8c585016ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env kjscmd

function someInterface( foo )
{
	println("Foo happend with " + foo );
}

function anotherInterface( bar )
{
	return "Bar " + bar;
}

var dcop = new DCOPInterface(this, "someInterface");
dcop.publish("void someInterface(QString)");
dcop.publish("QString anotherInterface(QString)");

application.exec();