[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/dcop/dcopidl2cpp
From: Alexander Kellett <lypanov () kde ! org>
Date: 2003-04-19 17:57:26
[Download RAW message or body]
CVS commit by lypanov:
implement more of the tests
M +34 -8 dcopidl_test.h 1.4
--- kdelibs/dcop/dcopidl2cpp/dcopidl_test.h #1.3:1.4
@@ -1,2 +1,5 @@
+#include <klistview.h>
+#include "main.h"
+
#ifndef TEST_H
#define TEST_H
@@ -7,15 +10,8 @@
// - non "CLASS" main elements
// - namespacing stuff in skel
-// - no functions
-// - ASYNC
-// - lack of SUPER, is that even possible?, don't you *need* DCOPObject???
// - qual / const
// - does dispatcher cope with unnamed args?
// stub:
-// - INCLUDE's
-// - non "DCOPObject" SUPER
// - includes to super relationship, a bit much to test, needs multiple files?
-// stubimpl:
-// - isIntType return types / void return types
// test for k_dcop
@@ -27,4 +23,5 @@ class DefaultTest : public QObject, virt
public:
DefaultTest();
+ void nonDcopFunction( QString filename, QString url, QString text, QString address, QString icon );
k_dcop:
void noArgsTest();
@@ -32,6 +29,35 @@ k_dcop:
void unNamedArgsTest( QString, QString );
+ 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 );
+
+ ASYNC asyncTest( QString filename, QString text, QString address );
+};
+
+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 );
- void function2( QString filename, QString text, QString address );
+};
+
+class NoFunctions : public DCOPObject
+{
+ K_DCOP
+public:
+ NonDCOPObject();
+ void nonDcopFunction( QString filename, QString url, QString text, QString address, QString icon );
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic