[Kde-bindings] playground/bindings/kimono
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Mon Jan 15 15:31:31 UTC 2007
SVN commit 623824 by rdale:
* Change the names of the methods that setup callbacks from
AddFoobar() to InstallFoobar(), where Foobar() is the callback
being setup.
CCMAIL: kde-bindings at kde.org
M +6 -0 ChangeLog
M +52 -52 SmokeInvocation.cs
M +15 -15 handlers.cpp
M +11 -11 qyoto.cpp
--- trunk/playground/bindings/kimono/ChangeLog #623823:623824
@@ -1,3 +1,9 @@
+2007-15-01 Richard Dale <rdale at foton.es>
+
+ * Change the names of the methods that setup callbacks from
+ AddFoobar() to InstallFoobar(), where Foobar() is the callback
+ being setup.
+
2007-14-01 Paolo Capriotti <paolo.capriotti at gmail.com>
* Ported most of the .NET 1.1 code to .NET 2.0
--- trunk/playground/bindings/kimono/SmokeInvocation.cs #623823:623824
@@ -121,82 +121,82 @@
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddFreeGCHandle(FromIntPtr callback);
+ static extern void InstallFreeGCHandle(FromIntPtr callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddGetSmokeObject(GetIntPtr callback);
+ static extern void InstallGetSmokeObject(GetIntPtr callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddSetSmokeObject(SetIntPtr callback);
+ static extern void InstallSetSmokeObject(SetIntPtr callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddMapPointer(SetIntPtr callback);
+ static extern void InstallMapPointer(SetIntPtr callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddUnmapPointer(FromIntPtr callback);
+ static extern void InstallUnmapPointer(FromIntPtr callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddGetPointerObject(GetIntPtr callback);
+ static extern void InstallGetPointerObject(GetIntPtr callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddCreateInstance(CreateInstanceFn callback);
+ static extern void InstallCreateInstance(CreateInstanceFn callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddInvokeCustomSlot(InvokeCustomSlotFn callback);
+ static extern void InstallInvokeCustomSlot(InvokeCustomSlotFn callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern bool AddIsSmokeClass(IsSmokeClassFn callback);
+ static extern bool InstallIsSmokeClass(IsSmokeClassFn callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddIntPtrToCharStarStar(GetIntPtr callback);
+ static extern void InstallIntPtrToCharStarStar(GetIntPtr callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddIntPtrToCharStar(GetStringFromIntPtr callback);
+ static extern void InstallIntPtrToCharStar(GetStringFromIntPtr callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddIntPtrFromCharStar(GetIntPtrFromString callback);
+ static extern void InstallIntPtrFromCharStar(GetIntPtrFromString callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddIntPtrToQString(GetIntPtr callback);
+ static extern void InstallIntPtrToQString(GetIntPtr callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddIntPtrFromQString(GetIntPtr callback);
+ static extern void InstallIntPtrFromQString(GetIntPtr callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddOverridenMethod(OverridenMethodFn callback);
+ static extern void InstallOverridenMethod(OverridenMethodFn callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddInvokeMethod(InvokeMethodFn callback);
+ static extern void InstallInvokeMethod(InvokeMethodFn callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern IntPtr AddConstructArrayList(NoArgs callback);
+ static extern IntPtr InstallConstructArrayList(NoArgs callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern IntPtr AddArrayListToQStringList(GetIntPtr callback);
+ static extern IntPtr InstallArrayListToQStringList(GetIntPtr callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern IntPtr AddArrayListToPointerList(GetIntPtr callback);
+ static extern IntPtr InstallArrayListToPointerList(GetIntPtr callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern IntPtr AddArrayListToQListInt(GetIntPtr callback);
+ static extern IntPtr InstallArrayListToQListInt(GetIntPtr callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddAddIntPtrToArrayList(SetIntPtr callback);
+ static extern void InstallAddIntPtrToArrayList(SetIntPtr callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddAddIntToArrayList(AddInt callback);
+ static extern void InstallAddIntToArrayList(AddInt callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern IntPtr AddConstructHashtable(NoArgs callback);
+ static extern IntPtr InstallConstructHashtable(NoArgs callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddAddObjectObjectToHashtable(InvokeMethodFn callback);
+ static extern void InstallAddObjectObjectToHashtable(InvokeMethodFn callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddAddIntObjectToHashtable(AddIntObject callback);
+ static extern void InstallAddIntObjectToHashtable(AddIntObject callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
- static extern void AddHashtableToQMap(HashToMap callback);
+ static extern void InstallHashtableToQMap(HashToMap callback);
[DllImport("libqyoto", CharSet=CharSet.Ansi)]
static extern int qt_metacall(IntPtr obj, int _c, int _id, IntPtr a);
@@ -714,38 +714,38 @@
static private IsSmokeClassFn isSmokeClass = new IsSmokeClassFn(Qyoto.IsSmokeClass);
static SmokeInvocation() {
- AddFreeGCHandle(freeGCHandle);
+ InstallFreeGCHandle(freeGCHandle);
- AddGetSmokeObject(getSmokeObject);
- AddSetSmokeObject(setSmokeObject);
+ InstallGetSmokeObject(getSmokeObject);
+ InstallSetSmokeObject(setSmokeObject);
- AddMapPointer(mapPointer);
- AddUnmapPointer(unmapPointer);
- AddGetPointerObject(getPointerObject);
+ InstallMapPointer(mapPointer);
+ InstallUnmapPointer(unmapPointer);
+ InstallGetPointerObject(getPointerObject);
- AddIntPtrToCharStarStar(intPtrToCharStarStar);
- AddIntPtrToCharStar(intPtrToString);
- AddIntPtrFromCharStar(intPtrFromString);
- AddIntPtrToQString(intPtrToQString);
- AddIntPtrFromQString(intPtrFromQString);
- AddConstructArrayList(constructArrayList);
- AddArrayListToQStringList(arrayListToQStringList);
- AddArrayListToPointerList(arrayListToPointerList);
- AddArrayListToQListInt(arrayListToQListInt);
- AddAddIntPtrToArrayList(addIntPtrToArrayList);
- AddAddIntToArrayList(addIntToArrayList);
+ InstallIntPtrToCharStarStar(intPtrToCharStarStar);
+ InstallIntPtrToCharStar(intPtrToString);
+ InstallIntPtrFromCharStar(intPtrFromString);
+ InstallIntPtrToQString(intPtrToQString);
+ InstallIntPtrFromQString(intPtrFromQString);
+ InstallConstructArrayList(constructArrayList);
+ InstallArrayListToQStringList(arrayListToQStringList);
+ InstallArrayListToPointerList(arrayListToPointerList);
+ InstallArrayListToQListInt(arrayListToQListInt);
+ InstallAddIntPtrToArrayList(addIntPtrToArrayList);
+ InstallAddIntToArrayList(addIntToArrayList);
- AddConstructHashtable(constructHashtable);
- AddAddObjectObjectToHashtable(addObjectObjectToHashtable);
- AddAddIntObjectToHashtable(addIntObjectToHashtable);
- AddHashtableToQMap(hashtableToQMap);
+ InstallConstructHashtable(constructHashtable);
+ InstallAddObjectObjectToHashtable(addObjectObjectToHashtable);
+ InstallAddIntObjectToHashtable(addIntObjectToHashtable);
+ InstallHashtableToQMap(hashtableToQMap);
- AddOverridenMethod(overridenMethod);
- AddInvokeMethod(invokeMethod);
+ InstallOverridenMethod(overridenMethod);
+ InstallInvokeMethod(invokeMethod);
- AddCreateInstance(createInstance);
- AddInvokeCustomSlot(invokeCustomSlot);
- AddIsSmokeClass(isSmokeClass);
+ InstallCreateInstance(createInstance);
+ InstallInvokeCustomSlot(invokeCustomSlot);
+ InstallIsSmokeClass(isSmokeClass);
}
private Type _classToProxy;
--- trunk/playground/bindings/kimono/handlers.cpp #623823:623824
@@ -75,77 +75,77 @@
static AddIntObject AddIntObjectToHashtable;
static HashToMap HashtableToQMap;
-void AddIntPtrToCharStarStar(GetIntPtr callback)
+void InstallIntPtrToCharStarStar(GetIntPtr callback)
{
IntPtrToCharStarStar = callback;
}
-void AddIntPtrToCharStar(GetCharStarFromIntPtr callback)
+void InstallIntPtrToCharStar(GetCharStarFromIntPtr callback)
{
IntPtrToCharStar = callback;
}
-void AddIntPtrFromCharStar(GetIntPtrFromCharStar callback)
+void InstallIntPtrFromCharStar(GetIntPtrFromCharStar callback)
{
IntPtrFromCharStar = callback;
}
-void AddIntPtrToQString(GetIntPtr callback)
+void InstallIntPtrToQString(GetIntPtr callback)
{
IntPtrToQString = callback;
}
-void AddIntPtrFromQString(GetIntPtr callback)
+void InstallIntPtrFromQString(GetIntPtr callback)
{
IntPtrFromQString = callback;
}
-void AddArrayListToQStringList(GetIntPtr callback)
+void InstallArrayListToQStringList(GetIntPtr callback)
{
ArrayListToQStringList = callback;
}
-void AddArrayListToPointerList(GetIntPtr callback)
+void InstallArrayListToPointerList(GetIntPtr callback)
{
ArrayListToPointerList = callback;
}
-void AddArrayListToQListInt(GetIntPtr callback)
+void InstallArrayListToQListInt(GetIntPtr callback)
{
ArrayListToQListInt = callback;
}
-void AddConstructArrayList(NoArgs callback)
+void InstallConstructArrayList(NoArgs callback)
{
ConstructArrayList = callback;
}
-void AddAddIntPtrToArrayList(SetIntPtr callback)
+void InstallAddIntPtrToArrayList(SetIntPtr callback)
{
AddIntPtrToArrayList = callback;
}
-void AddAddIntToArrayList(AddInt callback)
+void InstallAddIntToArrayList(AddInt callback)
{
AddIntToArrayList = callback;
}
-void AddConstructHashtable(NoArgs callback)
+void InstallConstructHashtable(NoArgs callback)
{
ConstructHashtable = callback;
}
-void AddAddObjectObjectToHashtable(InvokeMethodFn callback)
+void InstallAddObjectObjectToHashtable(InvokeMethodFn callback)
{
AddObjectObjectToHashtable = callback;
}
-void AddAddIntObjectToHashtable(AddIntObject callback)
+void InstallAddIntObjectToHashtable(AddIntObject callback)
{
AddIntObjectToHashtable = callback;
}
-void AddHashtableToQMap(HashToMap callback)
+void InstallHashtableToQMap(HashToMap callback)
{
HashtableToQMap = callback;
}
--- trunk/playground/bindings/kimono/qyoto.cpp #623823:623824
@@ -925,67 +925,67 @@
}
void
-AddFreeGCHandle(FromIntPtr callback)
+InstallFreeGCHandle(FromIntPtr callback)
{
FreeGCHandle = callback;
}
void
-AddGetSmokeObject(GetIntPtr callback)
+InstallGetSmokeObject(GetIntPtr callback)
{
GetSmokeObject = callback;
}
void
-AddSetSmokeObject(SetIntPtr callback)
+InstallSetSmokeObject(SetIntPtr callback)
{
SetSmokeObject = callback;
}
void
-AddMapPointer(SetIntPtr callback)
+InstallMapPointer(SetIntPtr callback)
{
MapPointer = callback;
}
void
-AddUnmapPointer(FromIntPtr callback)
+InstallUnmapPointer(FromIntPtr callback)
{
UnmapPointer = callback;
}
void
-AddGetPointerObject(GetIntPtr callback)
+InstallGetPointerObject(GetIntPtr callback)
{
GetPointerObject = callback;
}
void
-AddOverridenMethod(OverridenMethodFn callback)
+InstallOverridenMethod(OverridenMethodFn callback)
{
OverridenMethod = callback;
}
void
-AddInvokeMethod(InvokeMethodFn callback)
+InstallInvokeMethod(InvokeMethodFn callback)
{
InvokeMethod = callback;
}
void
-AddCreateInstance(CreateInstanceFn callback)
+InstallCreateInstance(CreateInstanceFn callback)
{
CreateInstance = callback;
}
void
-AddInvokeCustomSlot(InvokeCustomSlotFn callback)
+InstallInvokeCustomSlot(InvokeCustomSlotFn callback)
{
InvokeCustomSlot = callback;
}
void
-AddIsSmokeClass(IsSmokeClassFn callback)
+InstallIsSmokeClass(IsSmokeClassFn callback)
{
IsSmokeClass = callback;
}
More information about the Kde-bindings
mailing list