blob: e714bc52f59aee4891283b7dabc5c2c24d64999a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#include "KIDLTest.h"
#include <kapplication.h>
#include <dcopclient.h>
KIDLTest::KIDLTest( const TQCString& id )
: DCOPObject( id )
{
}
TQString KIDLTest::hello( const TQString& name )
{
tqDebug("Du heter %s", name.latin1() );
tqDebug("Ha det %s", name.latin1() );
return TQString("Jeg heter KIDLTest");
}
int main( int argc, char** argv )
{
KApplication app( argc, argv, "kidlservertest", false /* No GUI */ );
app.dcopClient()->attach();
app.dcopClient()->registerAs( "kidlservertest" );
tqDebug("Server process started...");
(void) new KIDLTest( "Hello" );
tqDebug("Server listening ...");
return app.exec();
}
|