summaryrefslogtreecommitdiffstats
path: root/tdecore/tests/KIDLTest.cpp
blob: a54e32be59c9828f4ee3d9bb4a2330e40c1cc69f (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 <tdeapplication.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 )
{
    TDEApplication 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();
}