summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/libqtsharp
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit90825e2392b2d70e43c7a25b8a3752299a933894 (patch)
treee33aa27f02b74604afbfd0ea4f1cfca8833d882a /qtsharp/src/libqtsharp
downloadtdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz
tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.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/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtsharp/src/libqtsharp')
-rw-r--r--qtsharp/src/libqtsharp/Makefile.am12
-rw-r--r--qtsharp/src/libqtsharp/customslot.cpp254
-rw-r--r--qtsharp/src/libqtsharp/customslot.h120
-rw-r--r--qtsharp/src/libqtsharp/qtsharp.cpp291
-rw-r--r--qtsharp/src/libqtsharp/qtsharp.h67
5 files changed, 744 insertions, 0 deletions
diff --git a/qtsharp/src/libqtsharp/Makefile.am b/qtsharp/src/libqtsharp/Makefile.am
new file mode 100644
index 00000000..387c6bfa
--- /dev/null
+++ b/qtsharp/src/libqtsharp/Makefile.am
@@ -0,0 +1,12 @@
+
+lib_LTLIBRARIES = libqtsharp.la
+libqtsharp_la_SOURCES = customslot.cpp qtsharp.cpp
+
+libqtsharp_la_LDFLAGS = $(QT_LDFLAGS) $(LIB_QT) -no-undefined -version-info 0:0:0 $(all_libraries) ../../../qtc/clib/qtc/libqtc.la
+
+KDE_OPTIONS = qtonly
+
+INCLUDES= $(all_includes)
+
+libqtsharp_la_METASOURCES = AUTO
+
diff --git a/qtsharp/src/libqtsharp/customslot.cpp b/qtsharp/src/libqtsharp/customslot.cpp
new file mode 100644
index 00000000..f23b9cee
--- /dev/null
+++ b/qtsharp/src/libqtsharp/customslot.cpp
@@ -0,0 +1,254 @@
+
+#include "customslot.h"
+
+CustomSlot::CustomSlot (void (*ptr)(void), QObject *parent, const char *name): QObject (parent, name)
+{
+ p0 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(bool), QObject *parent, const char *name): QObject (parent, name)
+{
+ p1 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(short), QObject *parent, const char *name): QObject (parent, name)
+{
+ p2 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(int), QObject *parent, const char *name): QObject (parent, name)
+{
+ p3 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(long), QObject *parent, const char *name): QObject (parent, name)
+{
+ p4 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(float), QObject *parent, const char *name): QObject (parent, name)
+{
+ p5 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(double), QObject *parent, const char *name): QObject (parent, name)
+{
+ p6 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(QDockWindow*), QObject *parent, const char *name): QObject (parent, name)
+{
+ p7 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(QDropEvent*), QObject *parent, const char *name): QObject (parent, name)
+{
+ p8 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(QDropEvent*,QListViewItem*), QObject *parent, const char *name): QObject (parent, name)
+{
+ p9 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(QIconViewItem*), QObject *parent, const char *name): QObject (parent, name)
+{
+ p10 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(QListBoxItem*), QObject *parent, const char *name): QObject (parent, name)
+{
+ p11 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(QListViewItem*), QObject *parent, const char *name): QObject (parent, name)
+{
+ p12 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(QListViewItem*,QListViewItem*), QObject *parent, const char *name): QObject (parent, name)
+{
+ p13 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(QListViewItem*,QListViewItem*,QListViewItem*), QObject *parent, const char *name): QObject (parent, name)
+{
+ p14 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(QNetworkOperation*), QObject *parent, const char *name): QObject (parent, name)
+{
+ p15 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(QObject*), QObject *parent, const char *name): QObject (parent, name)
+{
+ p16 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(QToolBar*), QObject *parent, const char *name): QObject (parent, name)
+{
+ p17 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(QWidget*), QObject *parent, const char *name): QObject (parent, name)
+{
+ p18 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(int,QIconViewItem*), QObject *parent, const char *name): QObject (parent, name)
+{
+ p19 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(int,QListBoxItem*), QObject *parent, const char *name): QObject (parent, name)
+{
+ p20 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(int,bool), QObject *parent, const char *name): QObject (parent, name)
+{
+ p21 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(int,int), QObject *parent, const char *name): QObject (parent, name)
+{
+ p22 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(int,int,int), QObject *parent, const char *name): QObject (parent, name)
+{
+ p23 = ptr;
+}
+
+CustomSlot::CustomSlot (void (*ptr)(const QString&), QObject *parent, const char *name): QObject (parent, name)
+{
+ p24 = ptr;
+}
+
+void CustomSlot::callback (void)
+{
+ p0 ();
+}
+
+void CustomSlot::callback (bool value0)
+{
+ p1 (value0);
+}
+
+void CustomSlot::callback (short value0)
+{
+ p2 (value0);
+}
+
+void CustomSlot::callback (int value0)
+{
+ p3 (value0);
+}
+
+void CustomSlot::callback (long value0)
+{
+ p4 (value0);
+}
+
+void CustomSlot::callback (float value0)
+{
+ p5 (value0);
+}
+
+void CustomSlot::callback (double value0)
+{
+ p6 (value0);
+}
+
+void CustomSlot::callback (QDockWindow* value0)
+{
+ p7 (value0);
+}
+
+void CustomSlot::callback (QDropEvent* value0)
+{
+ p8 (value0);
+}
+
+void CustomSlot::callback (QDropEvent* value0, QListViewItem* value1)
+{
+ p9 (value0, value1);
+}
+
+void CustomSlot::callback (QIconViewItem* value0)
+{
+ p10 (value0);
+}
+
+void CustomSlot::callback (QListBoxItem* value0)
+{
+ p11 (value0);
+}
+
+void CustomSlot::callback (QListViewItem* value0)
+{
+ p12 (value0);
+}
+
+void CustomSlot::callback (QListViewItem* value0, QListViewItem* value1)
+{
+ p13 (value0, value1);
+}
+
+void CustomSlot::callback (QListViewItem* value0, QListViewItem* value1, QListViewItem* value2)
+{
+ p14 (value0, value1, value2);
+}
+
+void CustomSlot::callback (QNetworkOperation* value0)
+{
+ p15 (value0);
+}
+
+void CustomSlot::callback (QObject* value0)
+{
+ p16 (value0);
+}
+
+void CustomSlot::callback (QToolBar* value0)
+{
+ p17 (value0);
+}
+
+void CustomSlot::callback (QWidget* value0)
+{
+ p18 (value0);
+}
+
+void CustomSlot::callback (int value0, QIconViewItem* value1)
+{
+ p19 (value0, value1);
+}
+
+void CustomSlot::callback (int value0, QListBoxItem* value1)
+{
+ p20 (value0, value1);
+}
+
+void CustomSlot::callback (int value0, bool value1)
+{
+ p21 (value0, value1);
+}
+
+void CustomSlot::callback (int value0, int value1)
+{
+ p22 (value0, value1);
+}
+
+void CustomSlot::callback (int value0, int value1, int value2)
+{
+ p23 (value0, value1, value2);
+}
+
+void CustomSlot::callback( const QString& value0 )
+{
+ p24 (value0);
+}
+
+#include "customslot.moc"
diff --git a/qtsharp/src/libqtsharp/customslot.h b/qtsharp/src/libqtsharp/customslot.h
new file mode 100644
index 00000000..5182f354
--- /dev/null
+++ b/qtsharp/src/libqtsharp/customslot.h
@@ -0,0 +1,120 @@
+#ifndef _CUSTOMSLOT_H_
+#define _CUSTOMSLOT_H_
+
+#include <iostream>
+#include <qnamespace.h>
+#include <qobject.h>
+#include <qaction.h>
+#include <qdockwindow.h>
+#include <qlistview.h>
+#include <qiconview.h>
+#include <qpoint.h>
+#include <qlist.h>
+#include <qlistbox.h>
+#include <qnetworkprotocol.h>
+#include <qobject.h>
+#include <qtoolbar.h>
+#include <qwidget.h>
+#include <qcolor.h>
+#include <qdatetime.h>
+#include <qfont.h>
+#include <qrect.h>
+#include <qsize.h>
+#include <qstringlist.h>
+#include <qstring.h>
+#include <qlibrary.h>
+#include <qurlinfo.h>
+#include <qvaluelist.h>
+#include <qvariant.h>
+#include <qevent.h>
+#include <qfiledialog.h>
+#include <qmenudata.h>
+
+class CustomSlot: public QObject
+{
+ Q_OBJECT
+
+public:
+
+ CustomSlot (void (*ptr)(void), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(bool), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(short), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(int), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(long), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(float), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(double), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(const QString&), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(QDockWindow*), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(QDropEvent*), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(QDropEvent*,QListViewItem*), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(QIconViewItem*), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(QListBoxItem*), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(QListViewItem*), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(QListViewItem*,QListViewItem*), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(QListViewItem*,QListViewItem*,QListViewItem*), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(QNetworkOperation*), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(QObject*), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(QToolBar*), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(QWidget*), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(int,QIconViewItem*), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(int,QListBoxItem*), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(int,bool), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(int,int), QObject *parent, const char *name=0);
+ CustomSlot (void (*ptr)(int,int,int), QObject *parent, const char *name=0);
+
+public slots:
+ void callback (void);
+ void callback (bool);
+ void callback (short);
+ void callback (int);
+ void callback (long);
+ void callback (float);
+ void callback (double);
+ void callback (const QString&);
+ void callback (QDockWindow*);
+ void callback (QDropEvent*);
+ void callback (QDropEvent*,QListViewItem*);
+ void callback (QIconViewItem*);
+ void callback (QListBoxItem*);
+ void callback (QListViewItem*);
+ void callback (QListViewItem*,QListViewItem*);
+ void callback (QListViewItem*,QListViewItem*,QListViewItem*);
+ void callback (QNetworkOperation*);
+ void callback (QObject*);
+ void callback (QToolBar*);
+ void callback (QWidget*);
+ void callback (int,QIconViewItem*);
+ void callback (int,QListBoxItem*);
+ void callback (int,bool);
+ void callback (int,int);
+ void callback (int,int,int);
+
+private:
+ void (*p0)(void);
+ void (*p1)(bool);
+ void (*p2)(short);
+ void (*p3)(int);
+ void (*p4)(long);
+ void (*p5)(float);
+ void (*p6)(double);
+ void (*p7)(QDockWindow*);
+ void (*p8)(QDropEvent*);
+ void (*p9)(QDropEvent*,QListViewItem*);
+ void (*p10)(QIconViewItem*);
+ void (*p11)(QListBoxItem*);
+ void (*p12)(QListViewItem*);
+ void (*p13)(QListViewItem*,QListViewItem*);
+ void (*p14)(QListViewItem*,QListViewItem*,QListViewItem*);
+ void (*p15)(QNetworkOperation*);
+ void (*p16)(QObject*);
+ void (*p17)(QToolBar*);
+ void (*p18)(QWidget*);
+ void (*p19)(int,QIconViewItem*);
+ void (*p20)(int,QListBoxItem*);
+ void (*p21)(int,bool);
+ void (*p22)(int,int);
+ void (*p23)(int,int,int);
+ void (*p24)(const QString&);
+};
+
+#endif // _CUSTOMSLOT_H_
diff --git a/qtsharp/src/libqtsharp/qtsharp.cpp b/qtsharp/src/libqtsharp/qtsharp.cpp
new file mode 100644
index 00000000..903e89c0
--- /dev/null
+++ b/qtsharp/src/libqtsharp/qtsharp.cpp
@@ -0,0 +1,291 @@
+#include "qtsharp.h"
+#include <cstdio>
+
+static qtsharp_EventDelegate QtSharp_EventDelegate = 0;
+
+static int qtsharp_delegateBridge (void *arg1, char *arg2, void *arg3, char *arg4)
+{
+ if (QtSharp_EventDelegate)
+ (*QtSharp_EventDelegate)(arg1, arg2, arg3, arg4);
+
+ return 0;
+}
+
+extern "C"
+void qtsharp_QObject_registerEventDelegate (qtsharp_EventDelegate delegate)
+{
+ QtSharp_EventDelegate = delegate;
+ qt_QObject_registerEventDelegate (qtsharp_delegateBridge);
+ return;
+}
+
+QObject *csharp_connect_void (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(void))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (void)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_item_void (QMenuData *instance, int id, QObject *receiver, void (*ptr)(void))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! instance->connectItem (id, cs, SLOT (callback (void)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_bool (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(bool))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (bool)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_short (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(short))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (short)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_int (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (int)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_item_int (QMenuData *instance, int id, QObject *receiver, void (*ptr)(int))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! instance->connectItem (id, cs, SLOT (callback (int)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_long (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(long))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (long)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_float (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(float))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (float)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_double (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(double))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (double)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_QString (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(const QString&))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (const QString&)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_QDockWindow (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QDockWindow*))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (QDockWindow*)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_QDropEvent (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QDropEvent*))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (QDropEvent*)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_QDropEventQListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QDropEvent*,QListViewItem*))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (QDropEvent*,QListViewItem*)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_QIconViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QIconViewItem*))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (QIconViewItem*)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_QListBoxItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListBoxItem*))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (QListBoxItem*)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_QListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListViewItem*))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (QListViewItem*)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_QListViewItemQListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListViewItem*,QListViewItem*))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (QListViewItem*,QListViewItem*)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_QListViewItemQListViewItemQListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListViewItem*,QListViewItem*,QListViewItem*))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (QListViewItem*,QListViewItem*,QListViewItem*)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_QNetworkOperation (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QNetworkOperation*))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (QNetworkOperation*)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_QObject (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QObject*))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (QObject*)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_QToolBar (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QToolBar*))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (QToolBar*)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_QWidget (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QWidget*))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (QWidget*)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_intQIconViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,QIconViewItem*))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (int,QIconViewItem*)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_intQListBoxItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,QListBoxItem*))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (int,QListBoxItem*)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_intbool (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,bool))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (int,bool)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_intint (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,int))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (int,int)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
+QObject *csharp_connect_intintint (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,int,int))
+{
+ CustomSlot *cs = new CustomSlot (ptr, receiver);
+ if (! QObject::connect (sender, signal, cs, SLOT (callback (int,int,int)))) {
+ delete cs;
+ cs = 0L;
+ }
+ return (QObject *)cs;
+}
+
diff --git a/qtsharp/src/libqtsharp/qtsharp.h b/qtsharp/src/libqtsharp/qtsharp.h
new file mode 100644
index 00000000..26321fb1
--- /dev/null
+++ b/qtsharp/src/libqtsharp/qtsharp.h
@@ -0,0 +1,67 @@
+#ifndef _QTSHARP_H_
+#define _QTSHARP_H_
+
+#include "customslot.h"
+
+extern "C" {
+
+typedef void (*qtsharp_EventDelegate)(void *, char *, void *, char *);
+typedef int (*qt_EventDelegate)(void *, char *, void *, char *);
+
+void qt_QObject_registerEventDelegate (qt_EventDelegate delegate);
+
+QObject *csharp_connect_void (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(void));
+QObject *csharp_connect_item_void (QMenuData *instance, int id, QObject *receiver, void (*ptr)(void));
+
+QObject *csharp_connect_bool (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(bool));
+
+QObject *csharp_connect_short (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(short));
+
+QObject *csharp_connect_int (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int));
+QObject *csharp_connect_item_int (QMenuData *instance, int id, QObject *receiver, void (*ptr)(int));
+
+QObject *csharp_connect_long (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(long));
+
+QObject *csharp_connect_float (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(float));
+
+QObject *csharp_connect_double (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(double));
+
+QObject *csharp_connect_QString (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(const QString&));
+
+QObject *csharp_connect_QDockWindow (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QDockWindow*));
+
+QObject *csharp_connect_QDropEvent (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QDropEvent*));
+
+QObject *csharp_connect_QDropEventQListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QDropEvent*,QListViewItem*));
+
+QObject *csharp_connect_QIconViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QIconViewItem*));
+
+QObject *csharp_connect_QListBoxItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListBoxItem*));
+
+QObject *csharp_connect_QListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListViewItem*));
+
+QObject *csharp_connect_QListViewItemQListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListViewItem*,QListViewItem*));
+
+QObject *csharp_connect_QListViewItemQListViewItemQListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListViewItem*,QListViewItem*,QListViewItem*));
+
+QObject *csharp_connect_QNetworkOperation (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QNetworkOperation*));
+
+QObject *csharp_connect_QObject (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QObject*));
+
+QObject *csharp_connect_QToolBar (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QToolBar*));
+
+QObject *csharp_connect_QWidget (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QWidget*));
+
+QObject *csharp_connect_intQIconViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,QIconViewItem*));
+
+QObject *csharp_connect_intQListBoxItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,QListBoxItem*));
+
+QObject *csharp_connect_intbool (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,bool));
+
+QObject *csharp_connect_intint (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,int));
+
+QObject *csharp_connect_intintint (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,int,int));
+
+} // extern "C"
+
+#endif // _QTSHARP_H_