d9244e8b960455e0238bdb0ca478f69c8e0b39ac
[platform/core/csapi/nui.git] / Tizen.NUI / src / internal / Application.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.9
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10
11 namespace Tizen.NUI\r
12 {
13
14     using System;
15     using System.Runtime.InteropServices;
16
17     /**
18       * @brief Event arguments that passed via NUIApplicationInit signal
19       *
20       */
21     public class NUIApplicationInitEventArgs : EventArgs
22     {\r
23         private Application _application;\r
24 \r
25         /**
26           * @brief Application - is the application that is being initialized
27           *
28           */\r
29         public Application Application\r
30         {\r
31             get\r
32             {\r
33                 return _application;\r
34             }\r
35             set\r
36             {\r
37                 _application = value;\r
38             }\r
39         }
40     }
41
42     /**
43       * @brief Event arguments that passed via NUIApplicationTerminate signal
44       *
45       */
46     public class NUIApplicationTerminateEventArgs : EventArgs
47     {\r
48         private Application _application;\r
49         /**
50           * @brief Application - is the application that is being Terminated
51           *
52           */\r
53         public Application Application\r
54         {\r
55             get\r
56             {\r
57                 return _application;\r
58             }\r
59             set\r
60             {\r
61                 _application = value;\r
62             }\r
63         }
64     }
65
66     /**
67       * @brief Event arguments that passed via NUIApplicationPause signal
68       *
69       */
70     public class NUIApplicationPauseEventArgs : EventArgs
71     {\r
72         private Application _application;\r
73         /**
74           * @brief Application - is the application that is being Paused
75           *
76           */\r
77         public Application Application\r
78         {\r
79             get\r
80             {\r
81                 return _application;\r
82             }\r
83             set\r
84             {\r
85                 _application = value;\r
86             }\r
87         }
88     }
89
90     /**
91       * @brief Event arguments that passed via NUIApplicationResume signal
92       *
93       */
94     public class NUIApplicationResumeEventArgs : EventArgs
95     {\r
96         private Application _application;\r
97         /**
98           * @brief Application - is the application that is being Resumed
99           *
100           */\r
101         public Application Application\r
102         {\r
103             get\r
104             {\r
105                 return _application;\r
106             }\r
107             set\r
108             {\r
109                 _application = value;\r
110             }\r
111         }
112     }
113
114     /**
115       * @brief Event arguments that passed via NUIApplicationReset signal
116       *
117       */
118     public class NUIApplicationResetEventArgs : EventArgs
119     {\r
120         private Application _application;\r
121         /**
122           * @brief Application - is the application that is being Reset
123           *
124           */\r
125         public Application Application\r
126         {\r
127             get\r
128             {\r
129                 return _application;\r
130             }\r
131             set\r
132             {\r
133                 _application = value;\r
134             }\r
135         }
136     }
137
138     /**
139       * @brief Event arguments that passed via NUIApplicationResize signal
140       *
141       */
142     public class NUIApplicationResizeEventArgs : EventArgs
143     {\r
144         private Application _application;\r
145         /**
146           * @brief Application - is the application that is being Resized
147           *
148           */\r
149         public Application Application\r
150         {\r
151             get\r
152             {\r
153                 return _application;\r
154             }\r
155             set\r
156             {\r
157                 _application = value;\r
158             }\r
159         }
160     }
161
162     /**
163       * @brief Event arguments that passed via NUIApplicationLanguageChanged signal
164       *
165       */
166     public class NUIApplicationLanguageChangedEventArgs : EventArgs
167     {\r
168         private Application _application;\r
169         /**
170           * @brief Application - is the application that is being affected with Device's language change
171           *
172           */\r
173         public Application Application\r
174         {\r
175             get\r
176             {\r
177                 return _application;\r
178             }\r
179             set\r
180             {\r
181                 _application = value;\r
182             }\r
183         }
184     }
185
186     /**
187       * @brief Event arguments that passed via NUIApplicationRegionChanged signal
188       *
189       */
190     public class NUIApplicationRegionChangedEventArgs : EventArgs
191     {\r
192         private Application _application;\r
193         /**
194           * @brief Application - is the application that is being affected with Device's region change
195           *
196           */\r
197         public Application Application\r
198         {\r
199             get\r
200             {\r
201                 return _application;\r
202             }\r
203             set\r
204             {\r
205                 _application = value;\r
206             }\r
207         }
208     }
209
210     /**
211       * @brief Event arguments that passed via NUIApplicationBatteryLow signal
212       *
213       */
214     public class NUIApplicationBatteryLowEventArgs : EventArgs
215     {\r
216         private Application _application;\r
217         /**
218           * @brief Application - is the application that is being affected when the battery level of the device is low
219           *
220           */\r
221         public Application Application\r
222         {\r
223             get\r
224             {\r
225                 return _application;\r
226             }\r
227             set\r
228             {\r
229                 _application = value;\r
230             }\r
231         }
232     }
233
234     /**
235       * @brief Event arguments that passed via NUIApplicationMemoryLow signal
236       *
237       */
238     public class NUIApplicationMemoryLowEventArgs : EventArgs
239     {\r
240         private Application _application;\r
241         /**
242           * @brief Application - is the application that is being affected when the memory level of the device is low
243           *
244           */\r
245         public Application Application\r
246         {\r
247             get\r
248             {\r
249                 return _application;\r
250             }\r
251             set\r
252             {\r
253                 _application = value;\r
254             }\r
255         }
256     }
257
258     /**
259       * @brief Event arguments that passed via NUIApplicationAppControl  signal
260       *
261       */
262     public class NUIApplicationAppControlEventArgs : EventArgs
263     {\r
264         private Application _application;\r
265         private IntPtr _voidp;\r
266         /**
267           * @brief Application - is the application that is receiving the launch request from another application
268           *
269           */\r
270         public Application Application\r
271         {\r
272             get\r
273             {\r
274                 return _application;\r
275             }\r
276             set\r
277             {\r
278                 _application = value;\r
279             }\r
280         }\r
281         /**
282           * @brief VoidP - contains the information about why the application is launched
283           *
284           */\r
285         public IntPtr VoidP\r
286         {\r
287             get\r
288             {\r
289                 return _voidp;\r
290             }\r
291             set\r
292             {\r
293                 _voidp = value;\r
294             }\r
295         }
296     }\r
297 \r
298     public class Application : BaseHandle\r
299     {\r
300         private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
301 \r
302         internal Application(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Application_SWIGUpcast(cPtr), cMemoryOwn)\r
303         {\r
304             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
305         }\r
306 \r
307         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Application obj)\r
308         {\r
309             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
310         }\r
311 \r
312         ~Application()\r
313         {\r
314             DisposeQueue.Instance.Add(this);\r
315         }\r
316 \r
317         public override void Dispose()\r
318         {\r
319             if (!Stage.IsInstalled())\r
320             {\r
321                 DisposeQueue.Instance.Add(this);\r
322                 return;\r
323             }\r
324 \r
325             lock (this)\r
326             {\r
327                 if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
328                 {\r
329                     if (swigCMemOwn)\r
330                     {\r
331                         swigCMemOwn = false;\r
332                         NDalicPINVOKE.delete_Application(swigCPtr);\r
333                     }\r
334                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
335                 }\r
336                 global::System.GC.SuppressFinalize(this);\r
337                 base.Dispose();\r
338             }\r
339         }\r
340 \r
341 \r
342         [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
343         private delegate void NUIApplicationInitEventCallbackDelegate(IntPtr application);\r
344         private DaliEventHandler<object, NUIApplicationInitEventArgs> _applicationInitEventHandler;\r
345         private NUIApplicationInitEventCallbackDelegate _applicationInitEventCallbackDelegate;\r
346 \r
347 \r
348         [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
349         private delegate void NUIApplicationTerminateEventCallbackDelegate(IntPtr application);\r
350         private DaliEventHandler<object, NUIApplicationTerminateEventArgs> _applicationTerminateEventHandler;\r
351         private NUIApplicationTerminateEventCallbackDelegate _applicationTerminateEventCallbackDelegate;\r
352 \r
353 \r
354         [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
355         private delegate void NUIApplicationPauseEventCallbackDelegate(IntPtr application);\r
356         private DaliEventHandler<object, NUIApplicationPauseEventArgs> _applicationPauseEventHandler;\r
357         private NUIApplicationPauseEventCallbackDelegate _applicationPauseEventCallbackDelegate;\r
358 \r
359         [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
360         private delegate void NUIApplicationResumeEventCallbackDelegate(IntPtr application);\r
361         private DaliEventHandler<object, NUIApplicationResumeEventArgs> _applicationResumeEventHandler;\r
362         private NUIApplicationResumeEventCallbackDelegate _applicationResumeEventCallbackDelegate;\r
363 \r
364         [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
365         private delegate void NUIApplicationResetEventCallbackDelegate(IntPtr application);\r
366         private DaliEventHandler<object, NUIApplicationResetEventArgs> _applicationResetEventHandler;\r
367         private NUIApplicationResetEventCallbackDelegate _applicationResetEventCallbackDelegate;\r
368 \r
369         [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
370         private delegate void NUIApplicationResizeEventCallbackDelegate(IntPtr application);\r
371         private DaliEventHandler<object, NUIApplicationResizeEventArgs> _applicationResizeEventHandler;\r
372         private NUIApplicationResizeEventCallbackDelegate _applicationResizeEventCallbackDelegate;\r
373 \r
374         [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
375         private delegate void NUIApplicationLanguageChangedEventCallbackDelegate(IntPtr application);\r
376         private DaliEventHandler<object, NUIApplicationLanguageChangedEventArgs> _applicationLanguageChangedEventHandler;\r
377         private NUIApplicationLanguageChangedEventCallbackDelegate _applicationLanguageChangedEventCallbackDelegate;\r
378 \r
379 \r
380         [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
381         private delegate void NUIApplicationRegionChangedEventCallbackDelegate(IntPtr application);\r
382         private DaliEventHandler<object, NUIApplicationRegionChangedEventArgs> _applicationRegionChangedEventHandler;\r
383         private NUIApplicationRegionChangedEventCallbackDelegate _applicationRegionChangedEventCallbackDelegate;\r
384 \r
385         [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
386         private delegate void NUIApplicationBatteryLowEventCallbackDelegate(IntPtr application);\r
387         private DaliEventHandler<object, NUIApplicationBatteryLowEventArgs> _applicationBatteryLowEventHandler;\r
388         private NUIApplicationBatteryLowEventCallbackDelegate _applicationBatteryLowEventCallbackDelegate;\r
389 \r
390         [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
391         private delegate void NUIApplicationMemoryLowEventCallbackDelegate(IntPtr application);\r
392         private DaliEventHandler<object, NUIApplicationMemoryLowEventArgs> _applicationMemoryLowEventHandler;\r
393         private NUIApplicationMemoryLowEventCallbackDelegate _applicationMemoryLowEventCallbackDelegate;\r
394 \r
395         [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
396         private delegate void NUIApplicationAppControlEventCallbackDelegate(IntPtr application, IntPtr voidp);\r
397         private DaliEventHandler<object, NUIApplicationAppControlEventArgs> _applicationAppControlEventHandler;\r
398         private NUIApplicationAppControlEventCallbackDelegate _applicationAppControlEventCallbackDelegate;\r
399 \r
400         /**
401           * @brief Event for Initialized signal which can be used to subscribe/unsubscribe the event handler
402           * (in the type of NUIApplicationInitEventHandler - DaliEventHandler<object,NUIApplicationInitEventArgs>)
403           *  provided by the user. Initialized signal is emitted when application is initialised
404           */\r
405         public event DaliEventHandler<object, NUIApplicationInitEventArgs> Initialized\r
406         {\r
407             add\r
408             {\r
409                 lock (this)\r
410                 {\r
411                     // Restricted to only one listener\r
412                     if (_applicationInitEventHandler == null)\r
413                     {\r
414                         _applicationInitEventHandler += value;\r
415 \r
416                         _applicationInitEventCallbackDelegate = new NUIApplicationInitEventCallbackDelegate(OnApplicationInit);\r
417                         this.InitSignal().Connect(_applicationInitEventCallbackDelegate);\r
418                     }\r
419                 }\r
420             }\r
421 \r
422             remove\r
423             {\r
424                 lock (this)\r
425                 {\r
426                     if (_applicationInitEventHandler != null)\r
427                     {\r
428                         this.InitSignal().Disconnect(_applicationInitEventCallbackDelegate);\r
429                     }\r
430 \r
431                     _applicationInitEventHandler -= value;\r
432                 }\r
433             }\r
434         }\r
435 \r
436         // Callback for Application InitSignal\r
437         private void OnApplicationInit(IntPtr data)\r
438         {\r
439             NUIApplicationInitEventArgs e = new NUIApplicationInitEventArgs();\r
440 \r
441             // Populate all members of "e" (NUIApplicationInitEventArgs) with real data\r
442             e.Application = Application.GetApplicationFromPtr(data);\r
443 \r
444             if (_applicationInitEventHandler != null)\r
445             {\r
446                 //here we send all data to user event handlers\r
447                 _applicationInitEventHandler(this, e);\r
448             }\r
449         }\r
450 \r
451         /**
452           * @brief Event for Terminated signal which can be used to subscribe/unsubscribe the event handler
453           * (in the type of NUIApplicationTerminateEventHandler-DaliEventHandler<object,NUIApplicationTerminateEventArgs>)
454           *  provided by the user. Terminated signal is emitted when application is terminated
455           */\r
456         public event DaliEventHandler<object, NUIApplicationTerminateEventArgs> Terminated\r
457         {\r
458             add\r
459             {\r
460                 lock (this)\r
461                 {\r
462                     // Restricted to only one listener\r
463                     if (_applicationTerminateEventHandler == null)\r
464                     {\r
465                         _applicationTerminateEventHandler += value;\r
466 \r
467                         _applicationTerminateEventCallbackDelegate = new NUIApplicationTerminateEventCallbackDelegate(OnNUIApplicationTerminate);\r
468                         this.TerminateSignal().Connect(_applicationTerminateEventCallbackDelegate);\r
469                     }\r
470                 }\r
471             }\r
472 \r
473             remove\r
474             {\r
475                 lock (this)\r
476                 {\r
477                     if (_applicationTerminateEventHandler != null)\r
478                     {\r
479                         this.TerminateSignal().Disconnect(_applicationTerminateEventCallbackDelegate);\r
480                     }\r
481 \r
482                     _applicationTerminateEventHandler -= value;\r
483                 }\r
484             }\r
485         }\r
486 \r
487         // Callback for Application TerminateSignal\r
488         private void OnNUIApplicationTerminate(IntPtr data)\r
489         {\r
490             NUIApplicationTerminateEventArgs e = new NUIApplicationTerminateEventArgs();\r
491 \r
492             // Populate all members of "e" (NUIApplicationTerminateEventArgs) with real data\r
493             e.Application = Application.GetApplicationFromPtr(data);\r
494 \r
495             if (_applicationTerminateEventHandler != null)\r
496             {\r
497                 //here we send all data to user event handlers\r
498                 _applicationTerminateEventHandler(this, e);\r
499             }\r
500         }\r
501 \r
502         /**
503           * @brief Event for Paused signal which can be used to subscribe/unsubscribe the event handler
504           * (in the type of NUIApplicationPauseEventHandler-DaliEventHandler<object,NUIApplicationPauseEventArgs>)
505           * provided by the user. Paused signal is emitted when application is paused
506           */\r
507         public event DaliEventHandler<object, NUIApplicationPauseEventArgs> Paused\r
508         {\r
509             add\r
510             {\r
511                 lock (this)\r
512                 {\r
513                     // Restricted to only one listener\r
514                     if (_applicationPauseEventHandler == null)\r
515                     {\r
516                         _applicationPauseEventHandler += value;\r
517 \r
518                         _applicationPauseEventCallbackDelegate = new NUIApplicationPauseEventCallbackDelegate(OnNUIApplicationPause);\r
519                         this.PauseSignal().Connect(_applicationPauseEventCallbackDelegate);\r
520                     }\r
521                 }\r
522             }\r
523 \r
524             remove\r
525             {\r
526                 lock (this)\r
527                 {\r
528                     if (_applicationPauseEventHandler != null)\r
529                     {\r
530                         this.PauseSignal().Disconnect(_applicationPauseEventCallbackDelegate);\r
531                     }\r
532 \r
533                     _applicationPauseEventHandler -= value;\r
534                 }\r
535             }\r
536         }\r
537 \r
538         // Callback for Application PauseSignal\r
539         private void OnNUIApplicationPause(IntPtr data)\r
540         {\r
541             NUIApplicationPauseEventArgs e = new NUIApplicationPauseEventArgs();\r
542 \r
543             // Populate all members of "e" (NUIApplicationPauseEventArgs) with real data\r
544             e.Application = Application.GetApplicationFromPtr(data);\r
545 \r
546             if (_applicationPauseEventHandler != null)\r
547             {\r
548                 //here we send all data to user event handlers\r
549                 _applicationPauseEventHandler(this, e);\r
550             }\r
551         }\r
552 \r
553         /**
554           * @brief Event for Resumed signal which can be used to subscribe/unsubscribe the event handler
555           * (in the type of NUIApplicationResumeEventHandler-DaliEventHandler<object,NUIApplicationResumeEventArgs>)
556           *  provided by the user. Resumed signal is emitted when application is resumed
557           */\r
558         public event DaliEventHandler<object, NUIApplicationResumeEventArgs> Resumed\r
559         {\r
560             add\r
561             {\r
562                 lock (this)\r
563                 {\r
564                     // Restricted to only one listener\r
565                     if (_applicationResumeEventHandler == null)\r
566                     {\r
567                         _applicationResumeEventHandler += value;\r
568 \r
569                         _applicationResumeEventCallbackDelegate = new NUIApplicationResumeEventCallbackDelegate(OnNUIApplicationResume);\r
570                         this.ResumeSignal().Connect(_applicationResumeEventCallbackDelegate);\r
571                     }\r
572                 }\r
573             }\r
574 \r
575             remove\r
576             {\r
577                 lock (this)\r
578                 {\r
579                     if (_applicationResumeEventHandler != null)\r
580                     {\r
581                         this.ResumeSignal().Disconnect(_applicationResumeEventCallbackDelegate);\r
582                     }\r
583 \r
584                     _applicationResumeEventHandler -= value;\r
585                 }\r
586             }\r
587         }\r
588 \r
589         // Callback for Application ResumeSignal\r
590         private void OnNUIApplicationResume(IntPtr data)\r
591         {\r
592             NUIApplicationResumeEventArgs e = new NUIApplicationResumeEventArgs();\r
593 \r
594             // Populate all members of "e" (NUIApplicationResumeEventArgs) with real data\r
595             e.Application = Application.GetApplicationFromPtr(data);\r
596 \r
597             if (_applicationResumeEventHandler != null)\r
598             {\r
599                 //here we send all data to user event handlers\r
600                 _applicationResumeEventHandler(this, e);\r
601             }\r
602         }\r
603 \r
604         /**
605           * @brief Event for Reset signal which can be used to subscribe/unsubscribe the event handler
606           * (in the type of NUIApplicationResetEventHandler-DaliEventHandler<object,NUIApplicationResetEventArgs>)
607           *  provided by the user. Reset signal is emitted when application is reset
608           */\r
609         public event DaliEventHandler<object, NUIApplicationResetEventArgs> Reset\r
610         {\r
611             add\r
612             {\r
613                 lock (this)\r
614                 {\r
615                     // Restricted to only one listener\r
616                     if (_applicationResetEventHandler == null)\r
617                     {\r
618                         _applicationResetEventHandler += value;\r
619 \r
620                         _applicationResetEventCallbackDelegate = new NUIApplicationResetEventCallbackDelegate(OnNUIApplicationReset);\r
621                         this.ResetSignal().Connect(_applicationResetEventCallbackDelegate);\r
622                     }\r
623                 }\r
624             }\r
625 \r
626             remove\r
627             {\r
628                 lock (this)\r
629                 {\r
630                     if (_applicationResetEventHandler != null)\r
631                     {\r
632                         this.ResetSignal().Disconnect(_applicationResetEventCallbackDelegate);\r
633                     }\r
634 \r
635                     _applicationResetEventHandler -= value;\r
636                 }\r
637             }\r
638         }\r
639 \r
640         // Callback for Application ResetSignal\r
641         private void OnNUIApplicationReset(IntPtr data)\r
642         {\r
643             NUIApplicationResetEventArgs e = new NUIApplicationResetEventArgs();\r
644 \r
645             // Populate all members of "e" (NUIApplicationResetEventArgs) with real data\r
646             e.Application = Application.GetApplicationFromPtr(data);\r
647 \r
648             if (_applicationResetEventHandler != null)\r
649             {\r
650                 //here we send all data to user event handlers\r
651                 _applicationResetEventHandler(this, e);\r
652             }\r
653         }\r
654 \r
655         /**
656           * @brief Event for Resized signal which can be used to subscribe/unsubscribe the event handler
657           * (in the type of NUIApplicationResizeEventHandler-DaliEventHandler<object,NUIApplicationResizeEventArgs>)
658           *  provided by the user. Resized signal is emitted when application is resized
659           */\r
660         public event DaliEventHandler<object, NUIApplicationResizeEventArgs> Resized\r
661         {\r
662             add\r
663             {\r
664                 lock (this)\r
665                 {\r
666                     // Restricted to only one listener\r
667                     if (_applicationResizeEventHandler == null)\r
668                     {\r
669                         _applicationResizeEventHandler += value;\r
670 \r
671                         _applicationResizeEventCallbackDelegate = new NUIApplicationResizeEventCallbackDelegate(OnNUIApplicationResize);\r
672                         this.ResizeSignal().Connect(_applicationResizeEventCallbackDelegate);\r
673                     }\r
674                 }\r
675             }\r
676 \r
677             remove\r
678             {\r
679                 lock (this)\r
680                 {\r
681                     if (_applicationResizeEventHandler != null)\r
682                     {\r
683                         this.ResizeSignal().Disconnect(_applicationResizeEventCallbackDelegate);\r
684                     }\r
685 \r
686                     _applicationResizeEventHandler -= value;\r
687                 }\r
688             }\r
689         }\r
690 \r
691         // Callback for Application ResizeSignal\r
692         private void OnNUIApplicationResize(IntPtr data)\r
693         {\r
694             NUIApplicationResizeEventArgs e = new NUIApplicationResizeEventArgs();\r
695 \r
696             // Populate all members of "e" (NUIApplicationResizeEventArgs) with real data\r
697             e.Application = Application.GetApplicationFromPtr(data);\r
698 \r
699             if (_applicationResizeEventHandler != null)\r
700             {\r
701                 //here we send all data to user event handlers\r
702                 _applicationResizeEventHandler(this, e);\r
703             }\r
704         }\r
705 \r
706         /**
707           * @brief Event for LanguageChanged signal which can be used to subscribe/unsubscribe the event handler
708           * (in the type of NUIApplicationLanguageChangedEventHandler-DaliEventHandler<object,NUIApplicationLanguageChangedEventArgs>)
709           *  provided by the user. LanguageChanged signal is emitted when the region of the device is changed.
710           */\r
711         public event DaliEventHandler<object, NUIApplicationLanguageChangedEventArgs> LanguageChanged\r
712         {\r
713             add\r
714             {\r
715                 lock (this)\r
716                 {\r
717                     // Restricted to only one listener\r
718                     if (_applicationLanguageChangedEventHandler == null)\r
719                     {\r
720                         _applicationLanguageChangedEventHandler += value;\r
721 \r
722                         _applicationLanguageChangedEventCallbackDelegate = new NUIApplicationLanguageChangedEventCallbackDelegate(OnNUIApplicationLanguageChanged);\r
723                         this.LanguageChangedSignal().Connect(_applicationLanguageChangedEventCallbackDelegate);\r
724                     }\r
725                 }\r
726             }\r
727 \r
728             remove\r
729             {\r
730                 lock (this)\r
731                 {\r
732                     if (_applicationLanguageChangedEventHandler != null)\r
733                     {\r
734                         this.LanguageChangedSignal().Disconnect(_applicationLanguageChangedEventCallbackDelegate);\r
735                     }\r
736 \r
737                     _applicationLanguageChangedEventHandler -= value;\r
738                 }\r
739             }\r
740         }\r
741 \r
742         // Callback for Application LanguageChangedSignal\r
743         private void OnNUIApplicationLanguageChanged(IntPtr data)\r
744         {\r
745             NUIApplicationLanguageChangedEventArgs e = new NUIApplicationLanguageChangedEventArgs();\r
746 \r
747             // Populate all members of "e" (NUIApplicationLanguageChangedEventArgs) with real data\r
748             e.Application = Application.GetApplicationFromPtr(data);\r
749 \r
750             if (_applicationLanguageChangedEventHandler != null)\r
751             {\r
752                 //here we send all data to user event handlers\r
753                 _applicationLanguageChangedEventHandler(this, e);\r
754             }\r
755         }\r
756 \r
757         /**
758           * @brief Event for RegionChanged signal which can be used to subscribe/unsubscribe the event handler
759           * (in the type of NUIApplicationRegionChangedEventHandler-DaliEventHandler<object,NUIApplicationRegionChangedEventArgs>)
760           *  provided by the user. RegionChanged signal is emitted when the region of the device is changed.
761           */\r
762         public event DaliEventHandler<object, NUIApplicationRegionChangedEventArgs> RegionChanged\r
763         {\r
764             add\r
765             {\r
766                 lock (this)\r
767                 {\r
768                     // Restricted to only one listener\r
769                     if (_applicationRegionChangedEventHandler == null)\r
770                     {\r
771                         _applicationRegionChangedEventHandler += value;\r
772 \r
773                         _applicationRegionChangedEventCallbackDelegate = new NUIApplicationRegionChangedEventCallbackDelegate(OnNUIApplicationRegionChanged);\r
774                         this.RegionChangedSignal().Connect(_applicationRegionChangedEventCallbackDelegate);\r
775                     }\r
776                 }\r
777             }\r
778 \r
779             remove\r
780             {\r
781                 lock (this)\r
782                 {\r
783                     if (_applicationRegionChangedEventHandler != null)\r
784                     {\r
785                         this.RegionChangedSignal().Disconnect(_applicationRegionChangedEventCallbackDelegate);\r
786                     }\r
787 \r
788                     _applicationRegionChangedEventHandler -= value;\r
789                 }\r
790             }\r
791         }\r
792 \r
793         // Callback for Application RegionChangedSignal\r
794         private void OnNUIApplicationRegionChanged(IntPtr data)\r
795         {\r
796             NUIApplicationRegionChangedEventArgs e = new NUIApplicationRegionChangedEventArgs();\r
797 \r
798             // Populate all members of "e" (NUIApplicationRegionChangedEventArgs) with real data\r
799             e.Application = Application.GetApplicationFromPtr(data);\r
800 \r
801             if (_applicationRegionChangedEventHandler != null)\r
802             {\r
803                 //here we send all data to user event handlers\r
804                 _applicationRegionChangedEventHandler(this, e);\r
805             }\r
806         }\r
807 \r
808         /**
809           * @brief Event for BatteryLow signal which can be used to subscribe/unsubscribe the event handler
810           * (in the type of NUIApplicationBatteryLowEventHandler-DaliEventHandler<object,NUIApplicationBatteryLowEventArgs>) 
811           * provided by the user. BatteryLow signal is emitted when the battery level of the device is low.
812           */\r
813         public event DaliEventHandler<object, NUIApplicationBatteryLowEventArgs> BatteryLow\r
814         {\r
815             add\r
816             {\r
817                 lock (this)\r
818                 {\r
819                     // Restricted to only one listener\r
820                     if (_applicationBatteryLowEventHandler == null)\r
821                     {\r
822                         _applicationBatteryLowEventHandler += value;\r
823 \r
824                         _applicationBatteryLowEventCallbackDelegate = new NUIApplicationBatteryLowEventCallbackDelegate(OnNUIApplicationBatteryLow);\r
825                         this.BatteryLowSignal().Connect(_applicationBatteryLowEventCallbackDelegate);\r
826                     }\r
827                 }\r
828             }\r
829 \r
830             remove\r
831             {\r
832                 lock (this)\r
833                 {\r
834                     if (_applicationBatteryLowEventHandler != null)\r
835                     {\r
836                         this.BatteryLowSignal().Disconnect(_applicationBatteryLowEventCallbackDelegate);\r
837                     }\r
838 \r
839                     _applicationBatteryLowEventHandler -= value;\r
840                 }\r
841             }\r
842         }\r
843 \r
844         // Callback for Application BatteryLowSignal\r
845         private void OnNUIApplicationBatteryLow(IntPtr data)\r
846         {\r
847             NUIApplicationBatteryLowEventArgs e = new NUIApplicationBatteryLowEventArgs();\r
848 \r
849             // Populate all members of "e" (NUIApplicationBatteryLowEventArgs) with real data\r
850             e.Application = Application.GetApplicationFromPtr(data);\r
851 \r
852             if (_applicationBatteryLowEventHandler != null)\r
853             {\r
854                 //here we send all data to user event handlers\r
855                 _applicationBatteryLowEventHandler(this, e);\r
856             }\r
857         }\r
858 \r
859         /**
860           * @brief Event for MemoryLow signal which can be used to subscribe/unsubscribe the event handler
861           * (in the type of NUIApplicationMemoryLowEventHandler-DaliEventHandler<object,NUIApplicationMemoryLowEventArgs>)
862           *  provided by the user. MemoryLow signal is emitted when the memory level of the device is low.
863           */\r
864         public event DaliEventHandler<object, NUIApplicationMemoryLowEventArgs> MemoryLow\r
865         {\r
866             add\r
867             {\r
868                 lock (this)\r
869                 {\r
870                     // Restricted to only one listener\r
871                     if (_applicationMemoryLowEventHandler == null)\r
872                     {\r
873                         _applicationMemoryLowEventHandler += value;\r
874 \r
875                         _applicationMemoryLowEventCallbackDelegate = new NUIApplicationMemoryLowEventCallbackDelegate(OnNUIApplicationMemoryLow);\r
876                         this.MemoryLowSignal().Connect(_applicationMemoryLowEventCallbackDelegate);\r
877                     }\r
878                 }\r
879             }\r
880 \r
881             remove\r
882             {\r
883                 lock (this)\r
884                 {\r
885                     if (_applicationMemoryLowEventHandler != null)\r
886                     {\r
887                         this.MemoryLowSignal().Disconnect(_applicationMemoryLowEventCallbackDelegate);\r
888                     }\r
889 \r
890                     _applicationMemoryLowEventHandler -= value;\r
891                 }\r
892             }\r
893         }\r
894 \r
895         // Callback for Application MemoryLowSignal\r
896         private void OnNUIApplicationMemoryLow(IntPtr data)\r
897         {\r
898             NUIApplicationMemoryLowEventArgs e = new NUIApplicationMemoryLowEventArgs();\r
899 \r
900             // Populate all members of "e" (NUIApplicationMemoryLowEventArgs) with real data\r
901             e.Application = Application.GetApplicationFromPtr(data);\r
902 \r
903             if (_applicationMemoryLowEventHandler != null)\r
904             {\r
905                 //here we send all data to user event handlers\r
906                 _applicationMemoryLowEventHandler(this, e);\r
907             }\r
908         }\r
909 \r
910         /**
911           * @brief Event for AppControl signal which can be used to subscribe/unsubscribe the event handler
912           * (in the type of NUIApplicationAppControlEventHandler-DaliEventHandler<object,NUIApplicationAppControlEventArgs>)
913           *  provided by the user. AppControl signal is emitted when another application sends a launch request to the application.
914           */\r
915         public event DaliEventHandler<object, NUIApplicationAppControlEventArgs> AppControl\r
916         {\r
917             add\r
918             {\r
919                 lock (this)\r
920                 {\r
921                     // Restricted to only one listener\r
922                     if (_applicationAppControlEventHandler == null)\r
923                     {\r
924                         _applicationAppControlEventHandler += value;\r
925 \r
926                         _applicationAppControlEventCallbackDelegate = new NUIApplicationAppControlEventCallbackDelegate(OnNUIApplicationAppControl);\r
927                         this.AppControlSignal().Connect(_applicationAppControlEventCallbackDelegate);\r
928                     }\r
929                 }\r
930             }\r
931 \r
932             remove\r
933             {\r
934                 lock (this)\r
935                 {\r
936                     if (_applicationAppControlEventHandler != null)\r
937                     {\r
938                         this.AppControlSignal().Disconnect(_applicationAppControlEventCallbackDelegate);\r
939                     }\r
940 \r
941                     _applicationAppControlEventHandler -= value;\r
942                 }\r
943             }\r
944         }\r
945 \r
946         // Callback for Application AppControlSignal\r
947         private void OnNUIApplicationAppControl(IntPtr application, IntPtr voidp)\r
948         {\r
949             NUIApplicationAppControlEventArgs e = new NUIApplicationAppControlEventArgs();\r
950 \r
951             // Populate all members of "e" (NUIApplicationAppControlEventArgs) with real data\r
952             e.Application = Application.GetApplicationFromPtr(application);\r
953             e.VoidP = voidp;\r
954 \r
955             if (_applicationAppControlEventHandler != null)\r
956             {\r
957                 //here we send all data to user event handlers\r
958                 _applicationAppControlEventHandler(this, e);\r
959             }\r
960         }\r
961 \r
962         private static Application _instance; // singleton\r
963 \r
964         public delegate void InitDelegate();\r
965 \r
966         public delegate void TerminateDelegate();\r
967 \r
968         public delegate void PauseDelegate();\r
969 \r
970         public delegate void ResumeDelegate();\r
971 \r
972         public delegate void ResizeDelegate();\r
973 \r
974         public delegate void AppControlDelegate();\r
975 \r
976         public delegate void LanguageChangedDelegate();\r
977 \r
978         public delegate void RegionChangedDelegate();\r
979 \r
980         public delegate void BatteryLowDelegate();\r
981 \r
982         public delegate void MemoryLowDelegate();\r
983 \r
984         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
985         internal delegate void InitDelegateInternal();\r
986 \r
987         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
988         internal delegate void TerminateDelegateInternal();\r
989 \r
990         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
991         internal delegate void PauseDelegateInternal();\r
992 \r
993         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
994         internal delegate void ResumeDelegateInternal();\r
995 \r
996         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
997         internal delegate void ResizeDelegateInternal();\r
998 \r
999         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
1000         internal delegate void AppControlDelegateInternal();\r
1001 \r
1002         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
1003         internal delegate void LanguageChangedDelegateInternal();\r
1004 \r
1005         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
1006         internal delegate void RegionChangedDelegateInternal();\r
1007 \r
1008         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
1009         internal delegate void BatteryLowDelegateInternal();\r
1010 \r
1011         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
1012         internal delegate void MemoryLowDelegateInternal();\r
1013 \r
1014         static void Initialize()\r
1015         {\r
1016             //  instance.InitDelegate();\r
1017         }\r
1018 \r
1019         public static Application Instance\r
1020         {\r
1021             get\r
1022             {\r
1023                 return _instance;\r
1024             }\r
1025         }\r
1026 \r
1027         public static Application GetApplicationFromPtr(global::System.IntPtr cPtr)\r
1028         {\r
1029             Application ret = new Application(cPtr, false);\r
1030             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1031             return ret;\r
1032         }\r
1033 \r
1034         internal void SetupDelegates()\r
1035         {\r
1036             InitDelegateInternal initializeCallback = new InitDelegateInternal(Initialize);\r
1037             System.Console.WriteLine("InitSignal connection count");\r
1038 \r
1039             this.InitSignal().Connect(initializeCallback);\r
1040             //Console.WriteLine( "InitSignal connection count = " + app.InitSignal().GetConnectionCount() );\r
1041         }\r
1042 \r
1043         public static Application NewApplication()\r
1044         {\r
1045             _instance = NewApplication("", Application.WINDOW_MODE.OPAQUE);\r
1046             return _instance;\r
1047         }\r
1048 \r
1049         public static Application NewApplication(string stylesheet)\r
1050         {\r
1051             _instance = NewApplication(stylesheet, Application.WINDOW_MODE.OPAQUE);\r
1052             return _instance;\r
1053         }\r
1054 \r
1055         public static Application NewApplication(string stylesheet, Application.WINDOW_MODE windowMode)\r
1056         {\r
1057 \r
1058             // register all Views with the type registry, so that can be created / styled via JSON\r
1059             ViewRegistryHelper.Initialize();\r
1060 \r
1061             Application ret = New(1, stylesheet, windowMode);\r
1062             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1063 \r
1064             // we've got an application now connect the signals\r
1065             ret.SetupDelegates();\r
1066             // set the singleton\r
1067             _instance = ret;\r
1068             return ret;\r
1069         }\r
1070 \r
1071         public bool AddIdle(System.Delegate func)\r
1072         {\r
1073             System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);\r
1074             System.IntPtr ip2 = NDalicManualPINVOKE.MakeCallback(new System.Runtime.InteropServices.HandleRef(this, ip));\r
1075 \r
1076             bool ret = NDalicPINVOKE.Application_AddIdle(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip2));\r
1077 \r
1078             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1079             return ret;\r
1080         }\r
1081 \r
1082 \r
1083 \r
1084         /**
1085         * Outer::outer_method(int)
1086         */\r
1087         public static Application New()\r
1088         {\r
1089             Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_0(), true);\r
1090             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1091             return ret;\r
1092         }\r
1093 \r
1094         public static Application New(int argc)\r
1095         {\r
1096             Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_1(argc), true);\r
1097             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1098             return ret;\r
1099         }\r
1100 \r
1101         public static Application New(int argc, string stylesheet)\r
1102         {\r
1103             Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_2(argc, stylesheet), true);\r
1104             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1105             return ret;\r
1106         }\r
1107 \r
1108         public static Application New(int argc, string stylesheet, Application.WINDOW_MODE windowMode)\r
1109         {\r
1110             Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_3(argc, stylesheet, (int)windowMode), true);\r
1111             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1112             return ret;\r
1113         }\r
1114 \r
1115         public Application() : this(NDalicPINVOKE.new_Application__SWIG_0(), true)\r
1116         {\r
1117             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1118         }\r
1119 \r
1120         public Application(Application application) : this(NDalicPINVOKE.new_Application__SWIG_1(Application.getCPtr(application)), true)\r
1121         {\r
1122             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1123         }\r
1124 \r
1125         public Application Assign(Application application)\r
1126         {\r
1127             Application ret = new Application(NDalicPINVOKE.Application_Assign(swigCPtr, Application.getCPtr(application)), false);\r
1128             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1129             return ret;\r
1130         }\r
1131 \r
1132         public void MainLoop()\r
1133         {\r
1134             NDalicPINVOKE.Application_MainLoop__SWIG_0(swigCPtr);\r
1135             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1136         }\r
1137 \r
1138         internal void MainLoop(SWIGTYPE_p_Configuration__ContextLoss configuration)\r
1139         {\r
1140             NDalicPINVOKE.Application_MainLoop__SWIG_1(swigCPtr, SWIGTYPE_p_Configuration__ContextLoss.getCPtr(configuration));\r
1141             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1142         }\r
1143 \r
1144         public void Lower()\r
1145         {\r
1146             NDalicPINVOKE.Application_Lower(swigCPtr);\r
1147             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1148         }\r
1149 \r
1150         public void Quit()\r
1151         {\r
1152             NDalicPINVOKE.Application_Quit(swigCPtr);\r
1153             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1154         }\r
1155 \r
1156         internal bool AddIdle(SWIGTYPE_p_Dali__CallbackBase callback)\r
1157         {\r
1158             bool ret = NDalicPINVOKE.Application_AddIdle(swigCPtr, SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback));\r
1159             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1160             return ret;\r
1161         }\r
1162 \r
1163         public Window GetWindow()\r
1164         {\r
1165             Window ret = new Window(NDalicPINVOKE.Application_GetWindow(swigCPtr), true);\r
1166             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1167             return ret;\r
1168         }\r
1169 \r
1170         public void ReplaceWindow(Rectangle windowPosition, string name)\r
1171         {\r
1172             NDalicPINVOKE.Application_ReplaceWindow(swigCPtr, Rectangle.getCPtr(windowPosition), name);\r
1173             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1174         }\r
1175 \r
1176         public static string GetResourcePath()\r
1177         {\r
1178             string ret = NDalicPINVOKE.Application_GetResourcePath();\r
1179             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1180             return ret;\r
1181         }\r
1182 \r
1183         internal void SetViewMode(ViewMode viewMode)\r
1184         {\r
1185             NDalicPINVOKE.Application_SetViewMode(swigCPtr, (int)viewMode);\r
1186             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1187         }\r
1188 \r
1189         internal ViewMode GetViewMode()\r
1190         {\r
1191             ViewMode ret = (ViewMode)NDalicPINVOKE.Application_GetViewMode(swigCPtr);\r
1192             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1193             return ret;\r
1194         }\r
1195 \r
1196         public void SetStereoBase(float stereoBase)\r
1197         {\r
1198             NDalicPINVOKE.Application_SetStereoBase(swigCPtr, stereoBase);\r
1199             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1200         }\r
1201 \r
1202         public float GetStereoBase()\r
1203         {\r
1204             float ret = NDalicPINVOKE.Application_GetStereoBase(swigCPtr);\r
1205             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1206             return ret;\r
1207         }\r
1208 \r
1209         internal ApplicationSignal InitSignal()\r
1210         {\r
1211             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_InitSignal(swigCPtr), false);\r
1212             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1213             return ret;\r
1214         }\r
1215 \r
1216         internal ApplicationSignal TerminateSignal()\r
1217         {\r
1218             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_TerminateSignal(swigCPtr), false);\r
1219             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1220             return ret;\r
1221         }\r
1222 \r
1223         internal ApplicationSignal PauseSignal()\r
1224         {\r
1225             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_PauseSignal(swigCPtr), false);\r
1226             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1227             return ret;\r
1228         }\r
1229 \r
1230         internal ApplicationSignal ResumeSignal()\r
1231         {\r
1232             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResumeSignal(swigCPtr), false);\r
1233             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1234             return ret;\r
1235         }\r
1236 \r
1237         internal ApplicationSignal ResetSignal()\r
1238         {\r
1239             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResetSignal(swigCPtr), false);\r
1240             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1241             return ret;\r
1242         }\r
1243 \r
1244         internal ApplicationSignal ResizeSignal()\r
1245         {\r
1246             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResizeSignal(swigCPtr), false);\r
1247             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1248             return ret;\r
1249         }\r
1250 \r
1251         internal ApplicationControlSignal AppControlSignal()\r
1252         {\r
1253             ApplicationControlSignal ret = new ApplicationControlSignal(NDalicPINVOKE.Application_AppControlSignal(swigCPtr), false);\r
1254             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1255             return ret;\r
1256         }\r
1257 \r
1258         internal ApplicationSignal LanguageChangedSignal()\r
1259         {\r
1260             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_LanguageChangedSignal(swigCPtr), false);\r
1261             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1262             return ret;\r
1263         }\r
1264 \r
1265         internal ApplicationSignal RegionChangedSignal()\r
1266         {\r
1267             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_RegionChangedSignal(swigCPtr), false);\r
1268             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1269             return ret;\r
1270         }\r
1271 \r
1272         internal ApplicationSignal BatteryLowSignal()\r
1273         {\r
1274             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_BatteryLowSignal(swigCPtr), false);\r
1275             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1276             return ret;\r
1277         }\r
1278 \r
1279         internal ApplicationSignal MemoryLowSignal()\r
1280         {\r
1281             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_MemoryLowSignal(swigCPtr), false);\r
1282             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1283             return ret;\r
1284         }\r
1285 \r
1286         public enum WINDOW_MODE\r
1287         {\r
1288             OPAQUE = 0,\r
1289             TRANSPARENT = 1\r
1290         }\r
1291 \r
1292     }
1293
1294 }