diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch) | |
tree | 5ac38a06f3dde268dc7927dc155896926aaf7012 /dcop/tests/test.cpp | |
download | tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'dcop/tests/test.cpp')
-rw-r--r-- | dcop/tests/test.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dcop/tests/test.cpp b/dcop/tests/test.cpp new file mode 100644 index 000000000..025230547 --- /dev/null +++ b/dcop/tests/test.cpp @@ -0,0 +1,44 @@ +#include "test.h" +#include <kapplication.h> +#include <iostream> +#include <dcopclient.h> +#include <kcmdlineargs.h> + + + +Test::~Test() +{ +} + +#include "definitions.generated" + +using namespace std; + +void batch() +{ + QTextStream output( fopen( "batch.returns", "w" ) , IO_WriteOnly ); + Test* object = new Test; +#include "batch.generated" +} + +#ifdef Q_OS_WIN +# define main kdemain +#endif + +int main(int argc, char** argv) +{ + if ( argc > 1 ) { + batch(); + return 0; + } + KCmdLineArgs::init( argc, argv, "TestApp", "Tests the dcop familly of tools + libraries", "1.0" ); // FIXME + KApplication app; + if(!app.dcopClient()->attach( )) + return 1; + + app.dcopClient()->registerAs( "TestApp" ); + new Test; + return app.exec(); +} + + |