00001 #include <klistview.h>
00002 #include "main.h"
00003
00004 #ifndef TEST_H
00005 #define TEST_H
00006
00007
00008
00009
00010
00011 class KDEUI_EXPORT DefaultTest : public QObject, virtual public DCOPObject
00012 {
00013 Q_OBJECT
00014 K_DCOP
00015 public:
00016 DefaultTest();
00017 void nonDcopFunction( QString filename, QString url, QString text, QString address, QString icon );
00018 k_dcop:
00019 void noArgsTest();
00020 void argsTest( QString filename, QString url );
00021 void unNamedArgsTest( QString, QString );
00022
00023 void constTest( QString, QString ) const;
00024 QStringList writeTypeTest( const QString &, QPtrList<int> );
00025
00026 void voidReturnType( QString filename, QString url, QString text, QString address, QString icon );
00027 QString nonVoidReturnType( QString filename, QString text, QString address );
00028 int intReturnType( QString filename, QString text, QString address );
00029 bool boolReturnType( QString filename, QString text, QString address );
00030
00031 ASYNC asyncTest( QString filename, QString text, QString address );
00032 };
00033
00034 namespace TestNamespace {
00035 class NamespaceTest
00036 {
00037 K_DCOP
00038 public:
00039 NamespaceTest();
00040 k_dcop:
00041 void function1( QString filename, QString url, QString text, QString address, QString icon );
00042 };
00043 }
00044
00045 class NoSuper
00046 {
00047 K_DCOP
00048 public:
00049 NoSuper();
00050 k_dcop:
00051 void function1( QString filename, QString url, QString text, QString address, QString icon );
00052 };
00053
00054 class NonDCOPObject : public MyDCOPObjectBase
00055 {
00056 K_DCOP
00057 public:
00058 NonDCOPObject();
00059 k_dcop:
00060 void function1( QString filename, QString url, QString text, QString address, QString icon );
00061 };
00062
00063 class NoFunctions : public DCOPObject
00064 {
00065 K_DCOP
00066 public:
00067 NonDCOPObject();
00068 void nonDcopFunction( QString filename, QString url, QString text, QString address, QString icon );
00069 };
00070
00071 class NonHashingTest : public QObject, virtual public DCOPObject
00072 {
00073 Q_OBJECT
00074 K_DCOP
00075 public:
00076 NonHashingTest();
00077 k_dcop:
00078 void function1( QString );
00079 };
00080
00081 class HashingTest : public QObject, virtual public DCOPObject
00082 {
00083 Q_OBJECT
00084 K_DCOP
00085 public:
00086 HashingTest();
00087 k_dcop:
00088 void function1( QString );
00089 void function2( QString, QString );
00090 void function3( QString, QString, QString );
00091 void function4( QString, QString, QString, QString );
00092 void function5( QString, QString, QString, QString, QString );
00093 void function6( QString, QString, QString, QString, QString, QString );
00094 void function7( QString, QString, QString, QString, QString, QString, QString );
00095 void function8( QString, QString, QString, QString, QString, QString, QString, QString );
00096 };
00097
00098 class SignalTest : virtual public DCOPObject
00099 {
00100 K_DCOP
00101 public:
00102 SignalTest(QCString objId = "KBookmarkNotifier") : DCOPObject(objId) {}
00103 k_dcop_signals:
00104 void signal1( QString filename, QString url, QString text, QString address, QString icon );
00105 void signal2( QString filename, QString text, QString address );
00106 void signal3( QString filename, QString url );
00107 };
00108
00109 #endif // end