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
326 B
18 lines
326 B
15 years ago
|
#!/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();
|