You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
15 years ago
|
#include <kapplication.h>
|
||
|
#include <kdebug.h>
|
||
|
#include <dcopclient.h>
|
||
|
|
||
|
int main( int argc, char** argv )
|
||
|
{
|
||
|
KApplication app( argc, argv, "KIDLTestClient", false );
|
||
|
|
||
|
kapp->dcopClient()->attach();
|
||
|
// kapp->dcopClient()->registerAs( "kidlclienttest" );
|
||
|
|
||
15 years ago
|
TQByteArray data;
|
||
15 years ago
|
|
||
|
kdDebug() << "sending reparseConfiguration to object KonquerorIface in konqueror" << endl;
|
||
15 years ago
|
TQByteArray snd;
|
||
|
TQByteArray rcv;
|
||
|
TQCString _type_;
|
||
15 years ago
|
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 ksycoca in all apps");
|
||
|
if (kapp->dcopClient()->send( "*", "ksycoca", "databaseChanged()", data ))
|
||
|
debug("ok");
|
||
|
else
|
||
|
debug("ko");
|
||
|
*/
|
||
|
}
|