summaryrefslogtreecommitdiffstats
path: root/tdecore/tests/KIDLTest.cpp
blob: a763f85c8bcbe30e87763bfda6054f280fae0672 (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 )
{
    qDebug("Du heter %s", name.latin1() );
    qDebug("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" );

    qDebug("Server process started...");

    (void) new KIDLTest( "Hello" );

    qDebug("Server listening ...");

    return app.exec();
}