You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
329 B
18 lines
329 B
#!/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(TQString)");
|
|
dcop.publish("TQString anotherInterface(TQString)");
|
|
|
|
application.exec();
|