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