1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
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
|