X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Fdali-swig%2FSWIG%2Fdali-adaptor.i;h=3ce308e965f39731753fce86b73ff14968364440;hb=6372d0a99afb85f510d114f76573296a4b2f387b;hp=ddd74c344b9ef719808bfad222af0ba54b23f383;hpb=85affa07d97fb47fd8a244247710efc077cfd096;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/plugins/dali-swig/SWIG/dali-adaptor.i b/plugins/dali-swig/SWIG/dali-adaptor.i old mode 100644 new mode 100755 index ddd74c3..3ce308e --- a/plugins/dali-swig/SWIG/dali-adaptor.i +++ b/plugins/dali-swig/SWIG/dali-adaptor.i @@ -25,6 +25,7 @@ %include %include %include +%include %include #if defined(SWIGCSHARP) @@ -74,92 +75,6 @@ */ public"; -%typemap(cscode) Dali::Application %{ - - private static Application instance; // singleton - - public delegate void InitDelegate(); - - public delegate void TerminateDelegate(); - - public delegate void PauseDelegate(); - - public delegate void ResumeDelegate(); - - public delegate void ResizeDelegate(); - - public delegate void AppControlDelegate(); - - public delegate void LanguageChangedDelegate(); - - public delegate void RegionChangedDelegate(); - - public delegate void BatteryLowDelegate(); - - public delegate void MemoryLowDelegate(); - - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)] - internal delegate void InitDelegateInternal(); - - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)] - internal delegate void TerminateDelegateInternal(); - - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)] - internal delegate void PauseDelegateInternal(); - - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)] - internal delegate void ResumeDelegateInternal(); - - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)] - internal delegate void ResizeDelegateInternal(); - - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)] - internal delegate void AppControlDelegateInternal(); - - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)] - internal delegate void LanguageChangedDelegateInternal(); - - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)] - internal delegate void RegionChangedDelegateInternal(); - - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)] - internal delegate void BatteryLowDelegateInternal(); - - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)] - internal delegate void MemoryLowDelegateInternal(); - - static void Initialize() - { - // instance.InitDelegate(); - } - - public static Application ApplicationFromPtr(global::System.IntPtr cPtr) { - Application ret = new Application(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal void SetupDelegates() { - InitDelegateInternal initializeCallback = new InitDelegateInternal( Initialize ); - System.Console.WriteLine( "InitSignal connection count"); - - this.InitSignal().Connect( initializeCallback ); - //Console.WriteLine( "InitSignal connection count = " + app.InitSignal().GetConnectionCount() ); - } - - public static Application NewApplication() { - Application ret = New(1); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - - // we've got an application now connect the signals - ret.SetupDelegates(); - // set the singleton - - return ret; - } - -%} - %typemap(in) ( int* argc, char **argv[] ) { // Todo generate argv data from the C# args