summaryrefslogtreecommitdiffstats
path: root/dcop/dcopidl/dcopidl_test.h
blob: 6d57167e2a395fefcf0d3f18b0508361fa4c616f (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
/* This is a comment */

#ifndef TEST_H
#define TEST_H

// some comment
#include <dcopobject.h>
#include <dcopref.h>

/* We never use it, but it's a test after all :)
 */
class Test2;

// this has to work too
#include <tqstring.h>

typedef TQMap<KIO::Job *, KIODownload> KIODownloadMap;
class Test3;

// Those namespaces are opened and closed, so they should be just ignored
namespace Kpgp {
	  class Config;
}
namespace KMail {
	  class IdentityDialog;
}

/**
 * This is a stupid comment that might help 
 * geiseri at some point in the near future.
 * blah di blah
 **/
class KDEUI_EXPORT Test : public MyNamespace::MyParentClass, virtual public DCOPObject,
             public TQValueList<TQString>
{
    K_DCOP

public:
    struct Bar {
      int i;
    };
    class SomeForwardFooPrivate;
    Test();
    Test() : DCOPObject("name") {}
    ~Test();
    int getPageOfObj( int obj );
    void setCell( KSpreadTable *table,
		  const TQPoint& point );

    SomeForwardFooPrivate *d;
    static const int AUDIO_CD = 1;
    static const int AUDIO_CD = 1 << 6;
    static const int m_number0[ 20 ];
    enum { Enum1, Enum2 };
    enum NamedEnum { Enum3, Enum4 };
k_dcop:
    virtual TQString url();
    virtual TQString constTest() const;
    virtual DCOPRef firstView();
    virtual DCOPRef nextView();
    virtual int getNumObjects();
    virtual DCOPRef getObject( int num );
    virtual int getNumPages();
    virtual DCOPRef getPage( int num );
    /** 
     * a function comment
     * @see blah di blah also
     **/
    int getPageOfObj( int obj );
    void setCell( const int& point = 3 );
    TQValueList<DCOPRef> getWindows();
    const TQStringList remotes(); // returns const type, but shouldn't use const var for it in stub

k_dcop_signals:
    void blah_signal();

private:
    Test3 *doc();

    struct KIODownload;
    typedef TQMap<KIO::Job *, KIODownload> KIODownloadMap;
};

class Test2 : public DCOPObject
{
    K_DCOP
public:
k_dcop_signals:
    void fooSignal(int arg);
};

namespace TheNameSpace {

  class Test3;

  class Test3 : public DCOPObject
  {
      K_DCOP
  public:
      void yadda();
  };

};

#endif // end of line comment

/* Test for line numbers */