summaryrefslogtreecommitdiffstats
path: root/tdecore/tests/dcopkonqtest.cpp
blob: 79137cd5f6a34cef8990662400a8c39da54b8cef (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
34
35
36
#include <kapplication.h>
#include <kdebug.h>
#include <dcopclient.h>

int main( int argc, char** argv )
{
    TDEApplication app( argc, argv, "KIDLTestClient", false );

    kapp->dcopClient()->attach();
    // kapp->dcopClient()->registerAs( "kidlclienttest" );

    TQByteArray data;

    kdDebug() << "sending reparseConfiguration to object KonquerorIface in konqueror" << endl;
       TQByteArray snd;
       TQByteArray rcv;
       TQCString _type_;
       kapp->dcopClient()->call( "konqueror", "KonquerorIface", "reparseConfiguration()", snd, _type_, rcv );
       kdDebug() << _type_ << endl;
       if( _type_ != "void" ) kdDebug() << "void expected, " << _type_.data() << " returned" << endl;

/*
debug("sending configure to object KonquerorIface in konqueror");
    if (kapp->dcopClient()->send( "konqueror", "KonquerorIface", "configure()", data ))
      debug("ok");
    else
      debug("ko");

/// BROADCAST
debug("sending databaseChanged to object tdesycoca in all apps");
    if (kapp->dcopClient()->send( "*", "tdesycoca", "databaseChanged()", data ))
      debug("ok");
    else
      debug("ko");
*/
}