1 //------------------------------------------------------------------------------
4 // This file was automatically generated by SWIG (http://www.swig.org).
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
14 using System.Runtime.InteropServices;
17 * @brief Event arguments that passed via AUIApplicationInit signal
20 public class AUIApplicationInitEventArgs : EventArgs
22 private Application _application;
25 * @brief Application - is the application that is being initialized
28 public Application Application
42 * @brief Event arguments that passed via AUIApplicationTerminate signal
45 public class AUIApplicationTerminateEventArgs : EventArgs
47 private Application _application;
49 * @brief Application - is the application that is being Terminated
52 public Application Application
66 * @brief Event arguments that passed via AUIApplicationPause signal
69 public class AUIApplicationPauseEventArgs : EventArgs
71 private Application _application;
73 * @brief Application - is the application that is being Paused
76 public Application Application
90 * @brief Event arguments that passed via AUIApplicationResume signal
93 public class AUIApplicationResumeEventArgs : EventArgs
95 private Application _application;
97 * @brief Application - is the application that is being Resumed
100 public Application Application
108 _application = value;
114 * @brief Event arguments that passed via AUIApplicationReset signal
117 public class AUIApplicationResetEventArgs : EventArgs
119 private Application _application;
121 * @brief Application - is the application that is being Reset
124 public Application Application
132 _application = value;
138 * @brief Event arguments that passed via AUIApplicationResize signal
141 public class AUIApplicationResizeEventArgs : EventArgs
143 private Application _application;
145 * @brief Application - is the application that is being Resized
148 public Application Application
156 _application = value;
162 * @brief Event arguments that passed via AUIApplicationLanguageChanged signal
165 public class AUIApplicationLanguageChangedEventArgs : EventArgs
167 private Application _application;
169 * @brief Application - is the application that is being affected with Device's language change
172 public Application Application
180 _application = value;
186 * @brief Event arguments that passed via AUIApplicationRegionChanged signal
189 public class AUIApplicationRegionChangedEventArgs : EventArgs
191 private Application _application;
193 * @brief Application - is the application that is being affected with Device's region change
196 public Application Application
204 _application = value;
210 * @brief Event arguments that passed via AUIApplicationBatteryLow signal
213 public class AUIApplicationBatteryLowEventArgs : EventArgs
215 private Application _application;
217 * @brief Application - is the application that is being affected when the battery level of the device is low
220 public Application Application
228 _application = value;
234 * @brief Event arguments that passed via AUIApplicationMemoryLow signal
237 public class AUIApplicationMemoryLowEventArgs : EventArgs
239 private Application _application;
241 * @brief Application - is the application that is being affected when the memory level of the device is low
244 public Application Application
252 _application = value;
258 * @brief Event arguments that passed via AUIApplicationAppControl signal
261 public class AUIApplicationAppControlEventArgs : EventArgs
263 private Application _application;
264 private IntPtr _voidp;
266 * @brief Application - is the application that is receiving the launch request from another application
269 public Application Application
277 _application = value;
281 * @brief VoidP - contains the information about why the application is launched
297 public class Application : BaseHandle {
298 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
300 internal Application(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Application_SWIGUpcast(cPtr), cMemoryOwn) {
301 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
304 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Application obj) {
305 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
312 public override void Dispose() {
314 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
317 NDalicPINVOKE.delete_Application(swigCPtr);
319 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
321 global::System.GC.SuppressFinalize(this);
326 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
327 private delegate void AUIApplicationInitEventCallbackDelegate(IntPtr application);
328 private DaliEventHandler<object,AUIApplicationInitEventArgs> _applicationInitEventHandler;
329 private AUIApplicationInitEventCallbackDelegate _applicationInitEventCallbackDelegate;
332 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
333 private delegate void AUIApplicationTerminateEventCallbackDelegate(IntPtr application);
334 private DaliEventHandler<object,AUIApplicationTerminateEventArgs> _applicationTerminateEventHandler;
335 private AUIApplicationTerminateEventCallbackDelegate _applicationTerminateEventCallbackDelegate;
338 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
339 private delegate void AUIApplicationPauseEventCallbackDelegate(IntPtr application);
340 private DaliEventHandler<object,AUIApplicationPauseEventArgs> _applicationPauseEventHandler;
341 private AUIApplicationPauseEventCallbackDelegate _applicationPauseEventCallbackDelegate;
343 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
344 private delegate void AUIApplicationResumeEventCallbackDelegate(IntPtr application);
345 private DaliEventHandler<object,AUIApplicationResumeEventArgs> _applicationResumeEventHandler;
346 private AUIApplicationResumeEventCallbackDelegate _applicationResumeEventCallbackDelegate;
348 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
349 private delegate void AUIApplicationResetEventCallbackDelegate(IntPtr application);
350 private DaliEventHandler<object,AUIApplicationResetEventArgs> _applicationResetEventHandler;
351 private AUIApplicationResetEventCallbackDelegate _applicationResetEventCallbackDelegate;
353 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
354 private delegate void AUIApplicationResizeEventCallbackDelegate(IntPtr application);
355 private DaliEventHandler<object,AUIApplicationResizeEventArgs> _applicationResizeEventHandler;
356 private AUIApplicationResizeEventCallbackDelegate _applicationResizeEventCallbackDelegate;
358 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
359 private delegate void AUIApplicationLanguageChangedEventCallbackDelegate(IntPtr application);
360 private DaliEventHandler<object,AUIApplicationLanguageChangedEventArgs> _applicationLanguageChangedEventHandler;
361 private AUIApplicationLanguageChangedEventCallbackDelegate _applicationLanguageChangedEventCallbackDelegate;
364 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
365 private delegate void AUIApplicationRegionChangedEventCallbackDelegate(IntPtr application);
366 private DaliEventHandler<object,AUIApplicationRegionChangedEventArgs> _applicationRegionChangedEventHandler;
367 private AUIApplicationRegionChangedEventCallbackDelegate _applicationRegionChangedEventCallbackDelegate;
369 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
370 private delegate void AUIApplicationBatteryLowEventCallbackDelegate(IntPtr application);
371 private DaliEventHandler<object,AUIApplicationBatteryLowEventArgs> _applicationBatteryLowEventHandler;
372 private AUIApplicationBatteryLowEventCallbackDelegate _applicationBatteryLowEventCallbackDelegate;
374 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
375 private delegate void AUIApplicationMemoryLowEventCallbackDelegate(IntPtr application);
376 private DaliEventHandler<object,AUIApplicationMemoryLowEventArgs> _applicationMemoryLowEventHandler;
377 private AUIApplicationMemoryLowEventCallbackDelegate _applicationMemoryLowEventCallbackDelegate;
379 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
380 private delegate void AUIApplicationAppControlEventCallbackDelegate(IntPtr application, IntPtr voidp);
381 private DaliEventHandler<object,AUIApplicationAppControlEventArgs> _applicationAppControlEventHandler;
382 private AUIApplicationAppControlEventCallbackDelegate _applicationAppControlEventCallbackDelegate;
385 * @brief Event for Initialized signal which can be used to subscribe/unsubscribe the event handler
386 * (in the type of AUIApplicationInitEventHandler - DaliEventHandler<object,AUIApplicationInitEventArgs>)
387 * provided by the user. Initialized signal is emitted when application is initialised
389 public event DaliEventHandler<object,AUIApplicationInitEventArgs> Initialized
395 // Restricted to only one listener
396 if (_applicationInitEventHandler == null)
398 _applicationInitEventHandler += value;
400 _applicationInitEventCallbackDelegate = new AUIApplicationInitEventCallbackDelegate(OnApplicationInit);
401 this.InitSignal().Connect(_applicationInitEventCallbackDelegate);
410 if (_applicationInitEventHandler != null)
412 this.InitSignal().Disconnect(_applicationInitEventCallbackDelegate);
415 _applicationInitEventHandler -= value;
420 // Callback for Application InitSignal
421 private void OnApplicationInit(IntPtr data)
423 AUIApplicationInitEventArgs e = new AUIApplicationInitEventArgs();
425 // Populate all members of "e" (AUIApplicationInitEventArgs) with real data
426 e.Application = Application.GetApplicationFromPtr(data);
428 if (_applicationInitEventHandler != null)
430 //here we send all data to user event handlers
431 _applicationInitEventHandler(this, e);
436 * @brief Event for Terminated signal which can be used to subscribe/unsubscribe the event handler
437 * (in the type of AUIApplicationTerminateEventHandler-DaliEventHandler<object,AUIApplicationTerminateEventArgs>)
438 * provided by the user. Terminated signal is emitted when application is terminated
440 public event DaliEventHandler<object,AUIApplicationTerminateEventArgs> Terminated
446 // Restricted to only one listener
447 if (_applicationTerminateEventHandler == null)
449 _applicationTerminateEventHandler += value;
451 _applicationTerminateEventCallbackDelegate = new AUIApplicationTerminateEventCallbackDelegate(OnAUIApplicationTerminate);
452 this.TerminateSignal().Connect(_applicationTerminateEventCallbackDelegate);
461 if (_applicationTerminateEventHandler != null)
463 this.TerminateSignal().Disconnect(_applicationTerminateEventCallbackDelegate);
466 _applicationTerminateEventHandler -= value;
471 // Callback for Application TerminateSignal
472 private void OnAUIApplicationTerminate(IntPtr data)
474 AUIApplicationTerminateEventArgs e = new AUIApplicationTerminateEventArgs();
476 // Populate all members of "e" (AUIApplicationTerminateEventArgs) with real data
477 e.Application = Application.GetApplicationFromPtr(data);
479 if (_applicationTerminateEventHandler != null)
481 //here we send all data to user event handlers
482 _applicationTerminateEventHandler(this, e);
487 * @brief Event for Paused signal which can be used to subscribe/unsubscribe the event handler
488 * (in the type of AUIApplicationPauseEventHandler-DaliEventHandler<object,AUIApplicationPauseEventArgs>)
489 * provided by the user. Paused signal is emitted when application is paused
491 public event DaliEventHandler<object,AUIApplicationPauseEventArgs> Paused
497 // Restricted to only one listener
498 if (_applicationPauseEventHandler == null)
500 _applicationPauseEventHandler += value;
502 _applicationPauseEventCallbackDelegate = new AUIApplicationPauseEventCallbackDelegate(OnAUIApplicationPause);
503 this.PauseSignal().Connect(_applicationPauseEventCallbackDelegate);
512 if (_applicationPauseEventHandler != null)
514 this.PauseSignal().Disconnect(_applicationPauseEventCallbackDelegate);
517 _applicationPauseEventHandler -= value;
522 // Callback for Application PauseSignal
523 private void OnAUIApplicationPause(IntPtr data)
525 AUIApplicationPauseEventArgs e = new AUIApplicationPauseEventArgs();
527 // Populate all members of "e" (AUIApplicationPauseEventArgs) with real data
528 e.Application = Application.GetApplicationFromPtr(data);
530 if (_applicationPauseEventHandler != null)
532 //here we send all data to user event handlers
533 _applicationPauseEventHandler(this, e);
538 * @brief Event for Resumed signal which can be used to subscribe/unsubscribe the event handler
539 * (in the type of AUIApplicationResumeEventHandler-DaliEventHandler<object,AUIApplicationResumeEventArgs>)
540 * provided by the user. Resumed signal is emitted when application is resumed
542 public event DaliEventHandler<object,AUIApplicationResumeEventArgs> Resumed
548 // Restricted to only one listener
549 if (_applicationResumeEventHandler == null)
551 _applicationResumeEventHandler += value;
553 _applicationResumeEventCallbackDelegate = new AUIApplicationResumeEventCallbackDelegate(OnAUIApplicationResume);
554 this.ResumeSignal().Connect(_applicationResumeEventCallbackDelegate);
563 if (_applicationResumeEventHandler != null)
565 this.ResumeSignal().Disconnect(_applicationResumeEventCallbackDelegate);
568 _applicationResumeEventHandler -= value;
573 // Callback for Application ResumeSignal
574 private void OnAUIApplicationResume(IntPtr data)
576 AUIApplicationResumeEventArgs e = new AUIApplicationResumeEventArgs();
578 // Populate all members of "e" (AUIApplicationResumeEventArgs) with real data
579 e.Application = Application.GetApplicationFromPtr(data);
581 if (_applicationResumeEventHandler != null)
583 //here we send all data to user event handlers
584 _applicationResumeEventHandler(this, e);
589 * @brief Event for Reset signal which can be used to subscribe/unsubscribe the event handler
590 * (in the type of AUIApplicationResetEventHandler-DaliEventHandler<object,AUIApplicationResetEventArgs>)
591 * provided by the user. Reset signal is emitted when application is reset
593 public event DaliEventHandler<object,AUIApplicationResetEventArgs> Reset
599 // Restricted to only one listener
600 if (_applicationResetEventHandler == null)
602 _applicationResetEventHandler += value;
604 _applicationResetEventCallbackDelegate = new AUIApplicationResetEventCallbackDelegate(OnAUIApplicationReset);
605 this.ResetSignal().Connect(_applicationResetEventCallbackDelegate);
614 if (_applicationResetEventHandler != null)
616 this.ResetSignal().Disconnect(_applicationResetEventCallbackDelegate);
619 _applicationResetEventHandler -= value;
624 // Callback for Application ResetSignal
625 private void OnAUIApplicationReset(IntPtr data)
627 AUIApplicationResetEventArgs e = new AUIApplicationResetEventArgs();
629 // Populate all members of "e" (AUIApplicationResetEventArgs) with real data
630 e.Application = Application.GetApplicationFromPtr(data);
632 if (_applicationResetEventHandler != null)
634 //here we send all data to user event handlers
635 _applicationResetEventHandler(this, e);
640 * @brief Event for Resized signal which can be used to subscribe/unsubscribe the event handler
641 * (in the type of AUIApplicationResizeEventHandler-DaliEventHandler<object,AUIApplicationResizeEventArgs>)
642 * provided by the user. Resized signal is emitted when application is resized
644 public event DaliEventHandler<object,AUIApplicationResizeEventArgs> Resized
650 // Restricted to only one listener
651 if (_applicationResizeEventHandler == null)
653 _applicationResizeEventHandler += value;
655 _applicationResizeEventCallbackDelegate = new AUIApplicationResizeEventCallbackDelegate(OnAUIApplicationResize);
656 this.ResizeSignal().Connect(_applicationResizeEventCallbackDelegate);
665 if (_applicationResizeEventHandler != null)
667 this.ResizeSignal().Disconnect(_applicationResizeEventCallbackDelegate);
670 _applicationResizeEventHandler -= value;
675 // Callback for Application ResizeSignal
676 private void OnAUIApplicationResize(IntPtr data)
678 AUIApplicationResizeEventArgs e = new AUIApplicationResizeEventArgs();
680 // Populate all members of "e" (AUIApplicationResizeEventArgs) with real data
681 e.Application = Application.GetApplicationFromPtr(data);
683 if (_applicationResizeEventHandler != null)
685 //here we send all data to user event handlers
686 _applicationResizeEventHandler(this, e);
691 * @brief Event for LanguageChanged signal which can be used to subscribe/unsubscribe the event handler
692 * (in the type of AUIApplicationLanguageChangedEventHandler-DaliEventHandler<object,AUIApplicationLanguageChangedEventArgs>)
693 * provided by the user. LanguageChanged signal is emitted when the region of the device is changed.
695 public event DaliEventHandler<object,AUIApplicationLanguageChangedEventArgs> LanguageChanged
701 // Restricted to only one listener
702 if (_applicationLanguageChangedEventHandler == null)
704 _applicationLanguageChangedEventHandler += value;
706 _applicationLanguageChangedEventCallbackDelegate = new AUIApplicationLanguageChangedEventCallbackDelegate(OnAUIApplicationLanguageChanged);
707 this.LanguageChangedSignal().Connect(_applicationLanguageChangedEventCallbackDelegate);
716 if (_applicationLanguageChangedEventHandler != null)
718 this.LanguageChangedSignal().Disconnect(_applicationLanguageChangedEventCallbackDelegate);
721 _applicationLanguageChangedEventHandler -= value;
726 // Callback for Application LanguageChangedSignal
727 private void OnAUIApplicationLanguageChanged(IntPtr data)
729 AUIApplicationLanguageChangedEventArgs e = new AUIApplicationLanguageChangedEventArgs();
731 // Populate all members of "e" (AUIApplicationLanguageChangedEventArgs) with real data
732 e.Application = Application.GetApplicationFromPtr(data);
734 if (_applicationLanguageChangedEventHandler != null)
736 //here we send all data to user event handlers
737 _applicationLanguageChangedEventHandler(this, e);
742 * @brief Event for RegionChanged signal which can be used to subscribe/unsubscribe the event handler
743 * (in the type of AUIApplicationRegionChangedEventHandler-DaliEventHandler<object,AUIApplicationRegionChangedEventArgs>)
744 * provided by the user. RegionChanged signal is emitted when the region of the device is changed.
746 public event DaliEventHandler<object,AUIApplicationRegionChangedEventArgs> RegionChanged
752 // Restricted to only one listener
753 if (_applicationRegionChangedEventHandler == null)
755 _applicationRegionChangedEventHandler += value;
757 _applicationRegionChangedEventCallbackDelegate = new AUIApplicationRegionChangedEventCallbackDelegate(OnAUIApplicationRegionChanged);
758 this.RegionChangedSignal().Connect(_applicationRegionChangedEventCallbackDelegate);
767 if (_applicationRegionChangedEventHandler != null)
769 this.RegionChangedSignal().Disconnect(_applicationRegionChangedEventCallbackDelegate);
772 _applicationRegionChangedEventHandler -= value;
777 // Callback for Application RegionChangedSignal
778 private void OnAUIApplicationRegionChanged(IntPtr data)
780 AUIApplicationRegionChangedEventArgs e = new AUIApplicationRegionChangedEventArgs();
782 // Populate all members of "e" (AUIApplicationRegionChangedEventArgs) with real data
783 e.Application = Application.GetApplicationFromPtr(data);
785 if (_applicationRegionChangedEventHandler != null)
787 //here we send all data to user event handlers
788 _applicationRegionChangedEventHandler(this, e);
793 * @brief Event for BatteryLow signal which can be used to subscribe/unsubscribe the event handler
794 * (in the type of AUIApplicationBatteryLowEventHandler-DaliEventHandler<object,AUIApplicationBatteryLowEventArgs>)
795 * provided by the user. BatteryLow signal is emitted when the battery level of the device is low.
797 public event DaliEventHandler<object,AUIApplicationBatteryLowEventArgs> BatteryLow
803 // Restricted to only one listener
804 if (_applicationBatteryLowEventHandler == null)
806 _applicationBatteryLowEventHandler += value;
808 _applicationBatteryLowEventCallbackDelegate = new AUIApplicationBatteryLowEventCallbackDelegate(OnAUIApplicationBatteryLow);
809 this.BatteryLowSignal().Connect(_applicationBatteryLowEventCallbackDelegate);
818 if (_applicationBatteryLowEventHandler != null)
820 this.BatteryLowSignal().Disconnect(_applicationBatteryLowEventCallbackDelegate);
823 _applicationBatteryLowEventHandler -= value;
828 // Callback for Application BatteryLowSignal
829 private void OnAUIApplicationBatteryLow(IntPtr data)
831 AUIApplicationBatteryLowEventArgs e = new AUIApplicationBatteryLowEventArgs();
833 // Populate all members of "e" (AUIApplicationBatteryLowEventArgs) with real data
834 e.Application = Application.GetApplicationFromPtr(data);
836 if (_applicationBatteryLowEventHandler != null)
838 //here we send all data to user event handlers
839 _applicationBatteryLowEventHandler(this, e);
844 * @brief Event for MemoryLow signal which can be used to subscribe/unsubscribe the event handler
845 * (in the type of AUIApplicationMemoryLowEventHandler-DaliEventHandler<object,AUIApplicationMemoryLowEventArgs>)
846 * provided by the user. MemoryLow signal is emitted when the memory level of the device is low.
848 public event DaliEventHandler<object,AUIApplicationMemoryLowEventArgs> MemoryLow
854 // Restricted to only one listener
855 if (_applicationMemoryLowEventHandler == null)
857 _applicationMemoryLowEventHandler += value;
859 _applicationMemoryLowEventCallbackDelegate = new AUIApplicationMemoryLowEventCallbackDelegate(OnAUIApplicationMemoryLow);
860 this.MemoryLowSignal().Connect(_applicationMemoryLowEventCallbackDelegate);
869 if (_applicationMemoryLowEventHandler != null)
871 this.MemoryLowSignal().Disconnect(_applicationMemoryLowEventCallbackDelegate);
874 _applicationMemoryLowEventHandler -= value;
879 // Callback for Application MemoryLowSignal
880 private void OnAUIApplicationMemoryLow(IntPtr data)
882 AUIApplicationMemoryLowEventArgs e = new AUIApplicationMemoryLowEventArgs();
884 // Populate all members of "e" (AUIApplicationMemoryLowEventArgs) with real data
885 e.Application = Application.GetApplicationFromPtr(data);
887 if (_applicationMemoryLowEventHandler != null)
889 //here we send all data to user event handlers
890 _applicationMemoryLowEventHandler(this, e);
895 * @brief Event for AppControl signal which can be used to subscribe/unsubscribe the event handler
896 * (in the type of AUIApplicationAppControlEventHandler-DaliEventHandler<object,AUIApplicationAppControlEventArgs>)
897 * provided by the user. AppControl signal is emitted when another application sends a launch request to the application.
899 public event DaliEventHandler<object,AUIApplicationAppControlEventArgs> AppControl
905 // Restricted to only one listener
906 if (_applicationAppControlEventHandler == null)
908 _applicationAppControlEventHandler += value;
910 _applicationAppControlEventCallbackDelegate = new AUIApplicationAppControlEventCallbackDelegate(OnAUIApplicationAppControl);
911 this.AppControlSignal().Connect(_applicationAppControlEventCallbackDelegate);
920 if (_applicationAppControlEventHandler != null)
922 this.AppControlSignal().Disconnect(_applicationAppControlEventCallbackDelegate);
925 _applicationAppControlEventHandler -= value;
930 // Callback for Application AppControlSignal
931 private void OnAUIApplicationAppControl(IntPtr application, IntPtr voidp)
933 AUIApplicationAppControlEventArgs e = new AUIApplicationAppControlEventArgs();
935 // Populate all members of "e" (AUIApplicationAppControlEventArgs) with real data
936 e.Application = Application.GetApplicationFromPtr(application);
939 if (_applicationAppControlEventHandler != null)
941 //here we send all data to user event handlers
942 _applicationAppControlEventHandler(this, e);
946 private static Application instance; // singleton
948 public delegate void InitDelegate();
950 public delegate void TerminateDelegate();
952 public delegate void PauseDelegate();
954 public delegate void ResumeDelegate();
956 public delegate void ResizeDelegate();
958 public delegate void AppControlDelegate();
960 public delegate void LanguageChangedDelegate();
962 public delegate void RegionChangedDelegate();
964 public delegate void BatteryLowDelegate();
966 public delegate void MemoryLowDelegate();
968 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
969 internal delegate void InitDelegateInternal();
971 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
972 internal delegate void TerminateDelegateInternal();
974 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
975 internal delegate void PauseDelegateInternal();
977 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
978 internal delegate void ResumeDelegateInternal();
980 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
981 internal delegate void ResizeDelegateInternal();
983 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
984 internal delegate void AppControlDelegateInternal();
986 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
987 internal delegate void LanguageChangedDelegateInternal();
989 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
990 internal delegate void RegionChangedDelegateInternal();
992 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
993 internal delegate void BatteryLowDelegateInternal();
995 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
996 internal delegate void MemoryLowDelegateInternal();
998 static void Initialize()
1000 // instance.InitDelegate();
1003 public static Application GetApplicationFromPtr(global::System.IntPtr cPtr) {
1004 Application ret = new Application(cPtr, false);
1005 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1009 internal void SetupDelegates() {
1010 InitDelegateInternal initializeCallback = new InitDelegateInternal( Initialize );
1011 System.Console.WriteLine( "InitSignal connection count");
1013 this.InitSignal().Connect( initializeCallback );
1014 //Console.WriteLine( "InitSignal connection count = " + app.InitSignal().GetConnectionCount() );
1017 public static Application NewApplication() {
1018 return NewApplication("",Application.WINDOW_MODE.OPAQUE);
1021 public static Application NewApplication(string stylesheet) {
1022 return NewApplication(stylesheet, Application.WINDOW_MODE.OPAQUE);
1025 public static Application NewApplication(string stylesheet, Application.WINDOW_MODE windowMode) {
1027 Application ret = New(1, stylesheet, windowMode);
1028 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1030 // we've got an application now connect the signals
1031 ret.SetupDelegates();
1032 // set the singleton
1041 * Outer::outer_method(int)
1043 public static Application New() {
1044 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_0(), true);
1045 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1049 public static Application New(int argc) {
1050 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_1(argc), true);
1051 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1055 public static Application New(int argc, string stylesheet) {
1056 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_2(argc, stylesheet), true);
1057 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1061 public static Application New(int argc, string stylesheet, Application.WINDOW_MODE windowMode) {
1062 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_3(argc, stylesheet, (int)windowMode), true);
1063 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1067 public Application() : this(NDalicPINVOKE.new_Application__SWIG_0(), true) {
1068 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1071 public Application(Application application) : this(NDalicPINVOKE.new_Application__SWIG_1(Application.getCPtr(application)), true) {
1072 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1075 public Application Assign(Application application) {
1076 Application ret = new Application(NDalicPINVOKE.Application_Assign(swigCPtr, Application.getCPtr(application)), false);
1077 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1081 public void MainLoop() {
1082 NDalicPINVOKE.Application_MainLoop__SWIG_0(swigCPtr);
1083 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1086 public void MainLoop(SWIGTYPE_p_Configuration__ContextLoss configuration) {
1087 NDalicPINVOKE.Application_MainLoop__SWIG_1(swigCPtr, SWIGTYPE_p_Configuration__ContextLoss.getCPtr(configuration));
1088 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1091 public void Lower() {
1092 NDalicPINVOKE.Application_Lower(swigCPtr);
1093 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1096 public void Quit() {
1097 NDalicPINVOKE.Application_Quit(swigCPtr);
1098 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1101 public bool AddIdle(SWIGTYPE_p_Dali__CallbackBase callback) {
1102 bool ret = NDalicPINVOKE.Application_AddIdle(swigCPtr, SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback));
1103 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1107 public Window GetWindow() {
1108 Window ret = new Window(NDalicPINVOKE.Application_GetWindow(swigCPtr), true);
1109 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1113 public void ReplaceWindow(RectInteger windowPosition, string name) {
1114 NDalicPINVOKE.Application_ReplaceWindow(swigCPtr, RectInteger.getCPtr(windowPosition), name);
1115 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1118 public static string GetResourcePath() {
1119 string ret = NDalicPINVOKE.Application_GetResourcePath();
1120 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1124 public void SetViewMode(ViewMode viewMode) {
1125 NDalicPINVOKE.Application_SetViewMode(swigCPtr, (int)viewMode);
1126 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1129 public ViewMode GetViewMode() {
1130 ViewMode ret = (ViewMode)NDalicPINVOKE.Application_GetViewMode(swigCPtr);
1131 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1135 public void SetStereoBase(float stereoBase) {
1136 NDalicPINVOKE.Application_SetStereoBase(swigCPtr, stereoBase);
1137 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1140 public float GetStereoBase() {
1141 float ret = NDalicPINVOKE.Application_GetStereoBase(swigCPtr);
1142 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1146 public ApplicationSignal InitSignal() {
1147 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_InitSignal(swigCPtr), false);
1148 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1152 public ApplicationSignal TerminateSignal() {
1153 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_TerminateSignal(swigCPtr), false);
1154 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1158 public ApplicationSignal PauseSignal() {
1159 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_PauseSignal(swigCPtr), false);
1160 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1164 public ApplicationSignal ResumeSignal() {
1165 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResumeSignal(swigCPtr), false);
1166 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1170 public ApplicationSignal ResetSignal() {
1171 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResetSignal(swigCPtr), false);
1172 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1176 public ApplicationSignal ResizeSignal() {
1177 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResizeSignal(swigCPtr), false);
1178 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1182 public ApplicationControlSignal AppControlSignal() {
1183 ApplicationControlSignal ret = new ApplicationControlSignal(NDalicPINVOKE.Application_AppControlSignal(swigCPtr), false);
1184 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1188 public ApplicationSignal LanguageChangedSignal() {
1189 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_LanguageChangedSignal(swigCPtr), false);
1190 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1194 public ApplicationSignal RegionChangedSignal() {
1195 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_RegionChangedSignal(swigCPtr), false);
1196 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1200 public ApplicationSignal BatteryLowSignal() {
1201 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_BatteryLowSignal(swigCPtr), false);
1202 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1206 public ApplicationSignal MemoryLowSignal() {
1207 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_MemoryLowSignal(swigCPtr), false);
1208 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1212 public enum WINDOW_MODE {