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/dcopidl/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/dcopidl/dcopidl_test.h')
-rw-r--r-- | dcop/dcopidl/dcopidl_test.h | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/dcop/dcopidl/dcopidl_test.h b/dcop/dcopidl/dcopidl_test.h new file mode 100644 index 000000000..a902be4fd --- /dev/null +++ b/dcop/dcopidl/dcopidl_test.h @@ -0,0 +1,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 <qstring.h> + +typedef QMap<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 QValueList<QString> +{ + K_DCOP + +public: + struct Bar { + int i; + }; + class SomeForwardFooPrivate; + Test(); + Test() : DCOPObject("name") {} + ~Test(); + int getPageOfObj( int obj ); + void setCell( KSpreadTable *table, + const QPoint& 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 QString url(); + virtual QString 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 ); + QValueList<DCOPRef> getWindows(); + const QStringList 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 QMap<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 */ + + |