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/dcopidl2cpp/dcopidl_test.h | |
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/dcopidl2cpp/dcopidl_test.h')
-rw-r--r-- | dcop/dcopidl2cpp/dcopidl_test.h | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/dcop/dcopidl2cpp/dcopidl_test.h b/dcop/dcopidl2cpp/dcopidl_test.h new file mode 100644 index 000000000..a6c625abe --- /dev/null +++ b/dcop/dcopidl2cpp/dcopidl_test.h @@ -0,0 +1,109 @@ +#include <klistview.h> +#include "main.h" + +#ifndef TEST_H +#define TEST_H + +// still todo: +// stub: +// - includes to super relationship, a bit much to test, needs multiple files? + +class KDEUI_EXPORT DefaultTest : public QObject, virtual public DCOPObject +{ + Q_OBJECT + K_DCOP +public: + DefaultTest(); + void nonDcopFunction( QString filename, QString url, QString text, QString address, QString icon ); +k_dcop: + void noArgsTest(); + void argsTest( QString filename, QString url ); + void unNamedArgsTest( QString, QString ); + + void constTest( QString, QString ) const; + QStringList writeTypeTest( const QString &, QPtrList<int> ); + + void voidReturnType( QString filename, QString url, QString text, QString address, QString icon ); + QString nonVoidReturnType( QString filename, QString text, QString address ); + int intReturnType( QString filename, QString text, QString address ); + bool boolReturnType( QString filename, QString text, QString address ); + + ASYNC asyncTest( QString filename, QString text, QString address ); +}; + +namespace TestNamespace { + class NamespaceTest + { + K_DCOP + public: + NamespaceTest(); + k_dcop: + void function1( QString filename, QString url, QString text, QString address, QString icon ); + }; +} + +class NoSuper +{ + K_DCOP +public: + NoSuper(); +k_dcop: + void function1( QString filename, QString url, QString text, QString address, QString icon ); +}; + +class NonDCOPObject : public MyDCOPObjectBase +{ + K_DCOP +public: + NonDCOPObject(); +k_dcop: + void function1( QString filename, QString url, QString text, QString address, QString icon ); +}; + +class NoFunctions : public DCOPObject +{ + K_DCOP +public: + NonDCOPObject(); + void nonDcopFunction( QString filename, QString url, QString text, QString address, QString icon ); +}; + +class NonHashingTest : public QObject, virtual public DCOPObject +{ + Q_OBJECT + K_DCOP +public: + NonHashingTest(); +k_dcop: + void function1( QString ); +}; + +class HashingTest : public QObject, virtual public DCOPObject +{ + Q_OBJECT + K_DCOP +public: + HashingTest(); +k_dcop: + void function1( QString ); + void function2( QString, QString ); + void function3( QString, QString, QString ); + void function4( QString, QString, QString, QString ); + void function5( QString, QString, QString, QString, QString ); + void function6( QString, QString, QString, QString, QString, QString ); + void function7( QString, QString, QString, QString, QString, QString, QString ); + void function8( QString, QString, QString, QString, QString, QString, QString, QString ); +}; + +class SignalTest : virtual public DCOPObject +{ + K_DCOP +public: + SignalTest(QCString objId = "KBookmarkNotifier") : DCOPObject(objId) {} +k_dcop_signals: + void signal1( QString filename, QString url, QString text, QString address, QString icon ); + void signal2( QString filename, QString text, QString address ); + void signal3( QString filename, QString url ); +}; + +#endif // end |