diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-06 15:56:40 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-06 15:56:40 -0600 |
commit | e16866e072f94410321d70daedbcb855ea878cac (patch) | |
tree | ee3f52eabde7da1a0e6ca845fb9c2813cf1558cf /tdecore/tests/dcopkonqtest.cpp | |
parent | a58c20c1a7593631a1b50213c805507ebc16adaf (diff) | |
download | tdelibs-e16866e072f94410321d70daedbcb855ea878cac.tar.gz tdelibs-e16866e072f94410321d70daedbcb855ea878cac.zip |
Actually move the kde files that were renamed in the last commit
Diffstat (limited to 'tdecore/tests/dcopkonqtest.cpp')
-rw-r--r-- | tdecore/tests/dcopkonqtest.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tdecore/tests/dcopkonqtest.cpp b/tdecore/tests/dcopkonqtest.cpp new file mode 100644 index 000000000..8830d34c7 --- /dev/null +++ b/tdecore/tests/dcopkonqtest.cpp @@ -0,0 +1,36 @@ +#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" ); + + 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 ksycoca in all apps"); + if (kapp->dcopClient()->send( "*", "ksycoca", "databaseChanged()", data )) + debug("ok"); + else + debug("ko"); +*/ +} |