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.
31 lines
788 B
31 lines
788 B
11 years ago
|
import org.trinitydesktop.qt.*;
|
||
|
import org.trinitydesktop.koala.*;
|
||
15 years ago
|
|
||
|
public class Test{
|
||
|
static String description = "DCOP test application for Java";
|
||
11 years ago
|
|
||
15 years ago
|
|
||
|
/**
|
||
|
* test the DCOP stuff.
|
||
|
*
|
||
|
* This test doesn't simply construct a DCOPClient, because
|
||
|
* dcop needs the eventloop (app.exec())
|
||
|
*/
|
||
|
public static void main(String[] argv){
|
||
12 years ago
|
TDEAboutData aboutData = new TDEAboutData( "test", "Test",
|
||
|
"0.1", description, TDEAboutData.License_GPL,
|
||
15 years ago
|
"(C) 2002 Gert-Jan van der Heiden");
|
||
12 years ago
|
TDECmdLineArgs.init( argv, aboutData );
|
||
11 years ago
|
|
||
12 years ago
|
TDEApplication app = new TDEApplication();
|
||
15 years ago
|
app.dcopClient().registerAs("JavaTest", false);
|
||
|
JavaDCOPObject object = new JavaDCOPObject();
|
||
11 years ago
|
app.exec();
|
||
15 years ago
|
}
|
||
11 years ago
|
|
||
15 years ago
|
static{
|
||
|
qtjava.initialize();
|
||
11 years ago
|
tdejava.initialize();
|
||
15 years ago
|
}
|
||
11 years ago
|
}
|