summaryrefslogtreecommitdiffstats
path: root/dcop/dcopidl2cpp/dcopidl_test.h
blob: 66f18f92fa917808616b62f26bd4cbda2f2d4ef3 (plain)
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 <tdelistview.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 TDEUI_EXPORT DefaultTest : public TQObject, virtual public DCOPObject
{
   Q_OBJECT
   K_DCOP
public:
   DefaultTest();
   void nonDcopFunction( TQString filename, TQString url, TQString text, TQString address, TQString icon );
k_dcop:
   void noArgsTest();
   void argsTest( TQString filename, TQString url );
   void unNamedArgsTest( TQString, TQString );

   void constTest( TQString, TQString ) const;
   TQStringList writeTypeTest( const TQString &, TQPtrList<int> );

   void voidReturnType( TQString filename, TQString url, TQString text, TQString address, TQString icon );
   TQString nonVoidReturnType( TQString filename, TQString text, TQString address );
   int intReturnType( TQString filename, TQString text, TQString address );
   bool boolReturnType( TQString filename, TQString text, TQString address );

   ASYNC asyncTest( TQString filename, TQString text, TQString address );
};

namespace TestNamespace {
   class NamespaceTest
   {
      K_DCOP
   public:
      NamespaceTest();
   k_dcop:
      void function1( TQString filename, TQString url, TQString text, TQString address, TQString icon );
   };
}

class NoSuper
{
   K_DCOP
public:
   NoSuper();
k_dcop:
   void function1( TQString filename, TQString url, TQString text, TQString address, TQString icon );
};

class NonDCOPObject : public MyDCOPObjectBase
{
   K_DCOP
public:
   NonDCOPObject();
k_dcop:
   void function1( TQString filename, TQString url, TQString text, TQString address, TQString icon );
};

class NoFunctions : public DCOPObject
{
   K_DCOP
public:
   NonDCOPObject();
   void nonDcopFunction( TQString filename, TQString url, TQString text, TQString address, TQString icon );
};

class NonHashingTest : public TQObject, virtual public DCOPObject
{
   Q_OBJECT
   K_DCOP
public:
   NonHashingTest();
k_dcop:
   void function1( TQString );
};

class HashingTest : public TQObject, virtual public DCOPObject
{
   Q_OBJECT
   K_DCOP
public:
   HashingTest();
k_dcop:
   void function1( TQString );
   void function2( TQString, TQString );
   void function3( TQString, TQString, TQString );
   void function4( TQString, TQString, TQString, TQString );
   void function5( TQString, TQString, TQString, TQString, TQString );
   void function6( TQString, TQString, TQString, TQString, TQString, TQString );
   void function7( TQString, TQString, TQString, TQString, TQString, TQString, TQString );
   void function8( TQString, TQString, TQString, TQString, TQString, TQString, TQString, TQString );
};

class SignalTest : virtual public DCOPObject
{
   K_DCOP
public:
   SignalTest(TQCString objId = "KBookmarkNotifier") : DCOPObject(objId) {}
k_dcop_signals:
   void signal1( TQString filename, TQString url, TQString text, TQString address, TQString icon );
   void signal2( TQString filename, TQString text, TQString address );
   void signal3( TQString filename, TQString url );
};

#endif // end