[dali_2.3.34] Merge branch 'devel/master'
[platform/core/uifw/dali-csharp-binder.git] / dali-csharp-binder / dali-adaptor / watch-wrap.cpp
1 /*
2  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // EXTERNAL INCLUDES
19 #include <dali/public-api/watch/watch-time.h>
20 #include <dali/public-api/watch/watch-application.h>
21
22 // INTERNAL INCLUDES
23 #include <dali-csharp-binder/common/common.h>
24
25 /* Callback for returning strings to C# without leaking memory */
26 typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *);
27 extern SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback;
28
29
30 // keep argcs and argv so they're always available to DALi
31 int argWatchC = 1;
32 char **argWatchV = NULL;
33
34 SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_Dali_WatchTime_SS_const_SA__SP__Sg__Empty(Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > const *self){
35   return self->Empty();
36 }
37 SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_Dali_WatchTime_SS_const_SA__SP__Sg__GetConnectionCount(Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > const *self){
38   return self->GetConnectionCount();
39 }
40 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_Dali_WatchTime_SS_const_SA__SP__Sg__Connect(Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *self,void (*func)(Dali::Application &,Dali::WatchTime const &)){
41   self->Connect( func );
42 }
43 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_Dali_WatchTime_SS_const_SA__SP__Sg__Disconnect(Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *self,void (*func)(Dali::Application &,Dali::WatchTime const &)){
44   self->Disconnect( func );
45 }
46 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_Dali_WatchTime_SS_const_SA__SP__Sg__Emit(Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *self,Dali::Application &arg1,Dali::WatchTime const &arg2){
47   self->Emit( arg1, arg2 );
48 }
49
50 SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Empty(Dali::Signal< void (Dali::Application &,bool) > const *self){
51   return self->Empty();
52 }
53 SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__GetConnectionCount(Dali::Signal< void (Dali::Application &,bool) > const *self){
54   return self->GetConnectionCount();
55 }
56 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Connect(Dali::Signal< void (Dali::Application &,bool) > *self,void (*func)(Dali::Application &,bool)){
57   self->Connect( func );
58 }
59 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Disconnect(Dali::Signal< void (Dali::Application &,bool) > *self,void (*func)(Dali::Application &,bool)){
60   self->Disconnect( func );
61 }
62 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Emit(Dali::Signal< void (Dali::Application &,bool) > *self,Dali::Application &arg1,bool arg2){
63   self->Emit( arg1, arg2 );
64 }
65
66 #ifdef __cplusplus
67 extern "C" {
68 #endif
69
70 /*watch binding*/
71
72 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WatchTime() {
73   void * jresult ;
74   Dali::WatchTime *result = 0 ;
75
76   {
77     try {
78       result = (Dali::WatchTime *)new Dali::WatchTime();
79     } CALL_CATCH_EXCEPTION(0);
80   }
81   jresult = (void *)result;
82   return jresult;
83 }
84
85
86 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WatchTime(void * jarg1) {
87   Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
88
89   arg1 = (Dali::WatchTime *)jarg1;
90   {
91     try {
92       delete arg1;
93     } CALL_CATCH_EXCEPTION();
94   }
95 }
96
97
98 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetHour(void * jarg1) {
99   int jresult ;
100   Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
101   int result;
102
103   arg1 = (Dali::WatchTime *)jarg1;
104   {
105     try {
106       result = (int)((Dali::WatchTime const *)arg1)->GetHour();
107     } CALL_CATCH_EXCEPTION(0);
108   }
109   jresult = result;
110   return jresult;
111 }
112
113
114 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetHour24(void * jarg1) {
115   int jresult ;
116   Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
117   int result;
118
119   arg1 = (Dali::WatchTime *)jarg1;
120   {
121     try {
122       result = (int)((Dali::WatchTime const *)arg1)->GetHour24();
123     } CALL_CATCH_EXCEPTION(0);
124   }
125   jresult = result;
126   return jresult;
127 }
128
129
130 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetMinute(void * jarg1) {
131   int jresult ;
132   Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
133   int result;
134
135   arg1 = (Dali::WatchTime *)jarg1;
136   {
137     try {
138       result = (int)((Dali::WatchTime const *)arg1)->GetMinute();
139     } CALL_CATCH_EXCEPTION(0);
140   }
141   jresult = result;
142   return jresult;
143 }
144
145
146 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetSecond(void * jarg1) {
147   int jresult ;
148   Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
149   int result;
150
151   arg1 = (Dali::WatchTime *)jarg1;
152   {
153     try {
154       result = (int)((Dali::WatchTime const *)arg1)->GetSecond();
155     } CALL_CATCH_EXCEPTION(0);
156   }
157   jresult = result;
158   return jresult;
159 }
160
161
162 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetMillisecond(void * jarg1) {
163   int jresult ;
164   Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
165   int result;
166
167   arg1 = (Dali::WatchTime *)jarg1;
168   {
169     try {
170       result = (int)((Dali::WatchTime const *)arg1)->GetMillisecond();
171     } CALL_CATCH_EXCEPTION(0);
172   }
173   jresult = result;
174   return jresult;
175 }
176
177
178 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetYear(void * jarg1) {
179   int jresult ;
180   Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
181   int result;
182
183   arg1 = (Dali::WatchTime *)jarg1;
184   {
185     try {
186       result = (int)((Dali::WatchTime const *)arg1)->GetYear();
187     } CALL_CATCH_EXCEPTION(0);
188   }
189   jresult = result;
190   return jresult;
191 }
192
193
194 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetMonth(void * jarg1) {
195   int jresult ;
196   Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
197   int result;
198
199   arg1 = (Dali::WatchTime *)jarg1;
200   {
201     try {
202       result = (int)((Dali::WatchTime const *)arg1)->GetMonth();
203     } CALL_CATCH_EXCEPTION(0);
204   }
205   jresult = result;
206   return jresult;
207 }
208
209
210 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetDay(void * jarg1) {
211   int jresult ;
212   Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
213   int result;
214
215   arg1 = (Dali::WatchTime *)jarg1;
216   {
217     try {
218       result = (int)((Dali::WatchTime const *)arg1)->GetDay();
219     } CALL_CATCH_EXCEPTION(0);
220   }
221   jresult = result;
222   return jresult;
223 }
224
225
226 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetDayOfWeek(void * jarg1) {
227   int jresult ;
228   Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
229   int result;
230
231   arg1 = (Dali::WatchTime *)jarg1;
232   {
233     try {
234       result = (int)((Dali::WatchTime const *)arg1)->GetDayOfWeek();
235     } CALL_CATCH_EXCEPTION(0);
236   }
237   jresult = result;
238   return jresult;
239 }
240
241
242 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchTime_GetUtcTime(void * jarg1) {
243   void * jresult ;
244   Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
245   tm result;
246
247   arg1 = (Dali::WatchTime *)jarg1;
248   {
249     try {
250       result = ((Dali::WatchTime const *)arg1)->GetUtcTime();
251     } CALL_CATCH_EXCEPTION(0);
252   }
253   jresult = new tm((const tm &)result);
254   return jresult;
255 }
256
257
258 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchTime_GetUtcTimeStamp(void * jarg1) {
259   void * jresult ;
260   Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
261   time_t result;
262
263   arg1 = (Dali::WatchTime *)jarg1;
264   {
265     try {
266       result = ((Dali::WatchTime const *)arg1)->GetUtcTimeStamp();
267     } CALL_CATCH_EXCEPTION(0);
268   }
269   jresult = new time_t((const time_t &)result);
270   return jresult;
271 }
272
273
274 SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_WatchTime_GetTimeZone(void * jarg1) {
275   char * jresult ;
276   Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
277   char *result = 0 ;
278
279   arg1 = (Dali::WatchTime *)jarg1;
280   {
281     try {
282       result = (char *)((Dali::WatchTime const *)arg1)->GetTimeZone();
283     } CALL_CATCH_EXCEPTION(0);
284   }
285   jresult = SWIG_csharp_string_callback((const char *)result);
286   return jresult;
287 }
288
289
290 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WatchTime_GetDaylightSavingTimeStatus(void * jarg1) {
291   unsigned int jresult ;
292   Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
293   bool result;
294
295   arg1 = (Dali::WatchTime *)jarg1;
296   {
297     try {
298       result = (bool)((Dali::WatchTime const *)arg1)->GetDaylightSavingTimeStatus();
299     } CALL_CATCH_EXCEPTION(0);
300   }
301   jresult = result;
302   return jresult;
303 }
304
305
306 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_New__SWIG_0() {
307   void * jresult ;
308   Dali::WatchApplication result;
309
310   {
311     try {
312       result = Dali::WatchApplication::New();
313     } CALL_CATCH_EXCEPTION(0);
314   }
315   jresult = new Dali::WatchApplication((const Dali::WatchApplication &)result);
316   return jresult;
317 }
318
319
320 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_New__SWIG_1(int jarg1, char * jarg2) {
321   void * jresult ;
322   int *arg1 = (int *) 0 ;
323   char ***arg2 ;
324   Dali::WatchApplication result;
325   {
326     int index = 0;
327     int length = 0;
328     char *retPtr;
329     char *nextPtr;
330     argWatchC = jarg1;
331     argWatchV = new char*[jarg1 + 1];
332
333     retPtr = strtok_r(jarg2, " ", &nextPtr);
334     if( retPtr )
335     {
336       length = strlen(retPtr);
337     }
338     argWatchV[index] = new char[length + 1];
339     if( retPtr )
340     {
341       strncpy(argWatchV[index], retPtr, length);
342     }
343     argWatchV[index][length] = '\0';
344     index++;
345
346     while( index < jarg1 )
347     {
348       length = 0;
349       retPtr = strtok_r(NULL, " ", &nextPtr);
350       if( retPtr )
351       {
352         length = strlen(retPtr);
353       }
354       argWatchV[index] = new char[length + 1];
355       if( retPtr )
356       {
357         strncpy(argWatchV[index], retPtr, length);
358       }
359       argWatchV[index][length] = '\0';
360       index++;
361     }
362   }
363
364   argWatchV[jarg1] = NULL;
365
366   arg1 = &argWatchC;
367   arg2 = &argWatchV;
368   {
369     try {
370       result = Dali::WatchApplication::New(arg1,arg2);
371     } CALL_CATCH_EXCEPTION(0);
372   }
373   jresult = new Dali::WatchApplication((const Dali::WatchApplication &)result);
374   return jresult;
375 }
376
377
378 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_New__SWIG_2(int jarg1, char * jarg2, char * jarg3) {
379   void * jresult ;
380   int *arg1 = (int *) 0 ;
381   char ***arg2 ;
382   std::string *arg3 = 0 ;
383   Dali::WatchApplication result;
384   {
385     int index = 0;
386     int length = 0;
387     char *retPtr;
388     char *nextPtr;
389     argWatchC = jarg1;
390     argWatchV = new char*[jarg1 + 1];
391
392     retPtr = strtok_r(jarg2, " ", &nextPtr);
393     if( retPtr )
394     {
395       length = strlen(retPtr);
396     }
397     argWatchV[index] = new char[length + 1];
398     if( retPtr )
399     {
400       strncpy(argWatchV[index], retPtr, length);
401     }
402     argWatchV[index][length] = '\0';
403     index++;
404
405     while( index < jarg1 )
406     {
407       length = 0;
408       retPtr = strtok_r(NULL, " ", &nextPtr);
409       if( retPtr )
410       {
411         length = strlen(retPtr);
412       }
413       argWatchV[index] = new char[length + 1];
414       if( retPtr )
415       {
416         strncpy(argWatchV[index], retPtr, length);
417       }
418       argWatchV[index][length] = '\0';
419       index++;
420     }
421   }
422
423   argWatchV[jarg1] = NULL;
424
425   arg1 = &argWatchC;
426   arg2 = &argWatchV;
427   if (!jarg3) {
428     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
429     return 0;
430   }
431   std::string arg3_str(jarg3);
432   arg3 = &arg3_str;
433   {
434     try {
435       result = Dali::WatchApplication::New(arg1,arg2,(std::string const &)*arg3);
436     } CALL_CATCH_EXCEPTION(0);
437   }
438   jresult = new Dali::WatchApplication((const Dali::WatchApplication &)result);
439
440   //argout typemap for const std::string&
441
442   return jresult;
443 }
444
445
446
447
448 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WatchApplication__SWIG_1(void * jarg1) {
449   void * jresult ;
450   Dali::WatchApplication *arg1 = 0 ;
451   Dali::WatchApplication *result = 0 ;
452
453   arg1 = (Dali::WatchApplication *)jarg1;
454   if (!arg1) {
455     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WatchApplication const & type is null", 0);
456     return 0;
457   }
458   {
459     try {
460       result = (Dali::WatchApplication *)new Dali::WatchApplication((Dali::WatchApplication const &)*arg1);
461     } CALL_CATCH_EXCEPTION(0);
462   }
463   jresult = (void *)result;
464   return jresult;
465 }
466
467
468
469
470 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WatchApplication(void * jarg1) {
471   Dali::WatchApplication *arg1 = (Dali::WatchApplication *) 0 ;
472
473   arg1 = (Dali::WatchApplication *)jarg1;
474   {
475     try {
476       delete arg1;
477       if( argWatchV )
478       {
479         //free string data
480         for (int i=0; i<argWatchC+1; i++)
481         {
482           delete [] argWatchV[i];
483         }
484         delete [] argWatchV;
485       }
486     } CALL_CATCH_EXCEPTION();
487   }
488 }
489
490
491 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_TimeTickSignal(void * jarg1) {
492   void * jresult ;
493   Dali::WatchApplication *arg1 = (Dali::WatchApplication *) 0 ;
494   Dali::WatchApplication::WatchTimeSignal *result = 0 ;
495
496   arg1 = (Dali::WatchApplication *)jarg1;
497   {
498     try {
499       result = (Dali::WatchApplication::WatchTimeSignal *) &(arg1)->TimeTickSignal();
500     } CALL_CATCH_EXCEPTION(0);
501   }
502   jresult = (void *)result;
503   return jresult;
504 }
505
506
507 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_AmbientTickSignal(void * jarg1) {
508   void * jresult ;
509   Dali::WatchApplication *arg1 = (Dali::WatchApplication *) 0 ;
510   Dali::WatchApplication::WatchTimeSignal *result = 0 ;
511
512   arg1 = (Dali::WatchApplication *)jarg1;
513   {
514     try {
515       result = (Dali::WatchApplication::WatchTimeSignal *) &(arg1)->AmbientTickSignal();
516     } CALL_CATCH_EXCEPTION(0);
517   }
518   jresult = (void *)result;
519   return jresult;
520 }
521
522
523 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_AmbientChangedSignal(void * jarg1) {
524   void * jresult ;
525   Dali::WatchApplication *arg1 = (Dali::WatchApplication *) 0 ;
526   Dali::WatchApplication::WatchBoolSignal *result = 0 ;
527
528   arg1 = (Dali::WatchApplication *)jarg1;
529   {
530     try {
531       result = (Dali::WatchApplication::WatchBoolSignal *) &(arg1)->AmbientChangedSignal();
532     } CALL_CATCH_EXCEPTION(0);
533   }
534   jresult = (void *)result;
535   return jresult;
536 }
537
538
539 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WatchTimeSignal_Empty(void * jarg1) {
540   unsigned int jresult ;
541   Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
542   bool result;
543
544   arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
545   {
546     try {
547       result = (bool)Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_Dali_WatchTime_SS_const_SA__SP__Sg__Empty((Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > const *)arg1);
548     } CALL_CATCH_EXCEPTION(0);
549   }
550   jresult = result;
551   return jresult;
552 }
553
554
555 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_WatchTimeSignal_GetConnectionCount(void * jarg1) {
556   unsigned long jresult ;
557   Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
558   std::size_t result;
559
560   arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
561   {
562     try {
563       result = Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_Dali_WatchTime_SS_const_SA__SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > const *)arg1);
564     } CALL_CATCH_EXCEPTION(0);
565   }
566   jresult = (unsigned long)result;
567   return jresult;
568 }
569
570
571 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchTimeSignal_Connect(void * jarg1, void * jarg2) {
572   Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
573   void (*arg2)(Dali::Application &,Dali::WatchTime const &) = (void (*)(Dali::Application &,Dali::WatchTime const &)) 0 ;
574
575   arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
576   arg2 = (void (*)(Dali::Application &,Dali::WatchTime const &))jarg2;
577   {
578     try {
579       Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_Dali_WatchTime_SS_const_SA__SP__Sg__Connect(arg1,arg2);
580     } CALL_CATCH_EXCEPTION();
581   }
582 }
583
584
585 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchTimeSignal_Disconnect(void * jarg1, void * jarg2) {
586   Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
587   void (*arg2)(Dali::Application &,Dali::WatchTime const &) = (void (*)(Dali::Application &,Dali::WatchTime const &)) 0 ;
588
589   arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
590   arg2 = (void (*)(Dali::Application &,Dali::WatchTime const &))jarg2;
591   {
592     try {
593       Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_Dali_WatchTime_SS_const_SA__SP__Sg__Disconnect(arg1,arg2);
594     } CALL_CATCH_EXCEPTION();
595   }
596 }
597
598
599 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchTimeSignal_Emit(void * jarg1, void * jarg2, void * jarg3) {
600   Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
601   Dali::Application *arg2 = 0 ;
602   Dali::WatchTime *arg3 = 0 ;
603
604   arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
605   arg2 = (Dali::Application *)jarg2;
606   if (!arg2) {
607     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application & type is null", 0);
608     return ;
609   }
610   arg3 = (Dali::WatchTime *)jarg3;
611   if (!arg3) {
612     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WatchTime const & type is null", 0);
613     return ;
614   }
615   {
616     try {
617       Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_Dali_WatchTime_SS_const_SA__SP__Sg__Emit(arg1,*arg2,(Dali::WatchTime const &)*arg3);
618     } CALL_CATCH_EXCEPTION();
619   }
620 }
621
622
623 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WatchTimeSignal() {
624   void * jresult ;
625   Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *result = 0 ;
626
627   {
628     try {
629       result = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)new Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) >();
630     } CALL_CATCH_EXCEPTION(0);
631   }
632   jresult = (void *)result;
633   return jresult;
634 }
635
636
637 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WatchTimeSignal(void * jarg1) {
638   Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
639
640   arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
641   {
642     try {
643       delete arg1;
644     } CALL_CATCH_EXCEPTION();
645   }
646 }
647
648
649 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WatchBoolSignal_Empty(void * jarg1) {
650   unsigned int jresult ;
651   Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
652   bool result;
653
654   arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
655   {
656     try {
657       result = (bool)Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Empty((Dali::Signal< void (Dali::Application &,bool) > const *)arg1);
658     } CALL_CATCH_EXCEPTION(0);
659   }
660   jresult = result;
661   return jresult;
662 }
663
664
665 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_WatchBoolSignal_GetConnectionCount(void * jarg1) {
666   unsigned long jresult ;
667   Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
668   std::size_t result;
669
670   arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
671   {
672     try {
673       result = Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::Application &,bool) > const *)arg1);
674     } CALL_CATCH_EXCEPTION(0);
675   }
676   jresult = (unsigned long)result;
677   return jresult;
678 }
679
680
681 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchBoolSignal_Connect(void * jarg1, void * jarg2) {
682   Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
683   void (*arg2)(Dali::Application &,bool) = (void (*)(Dali::Application &,bool)) 0 ;
684
685   arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
686   arg2 = (void (*)(Dali::Application &,bool))jarg2;
687   {
688     try {
689       Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Connect(arg1,arg2);
690     } CALL_CATCH_EXCEPTION();
691   }
692 }
693
694
695 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchBoolSignal_Disconnect(void * jarg1, void * jarg2) {
696   Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
697   void (*arg2)(Dali::Application &,bool) = (void (*)(Dali::Application &,bool)) 0 ;
698
699   arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
700   arg2 = (void (*)(Dali::Application &,bool))jarg2;
701   {
702     try {
703       Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Disconnect(arg1,arg2);
704     } CALL_CATCH_EXCEPTION();
705   }
706 }
707
708
709 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchBoolSignal_Emit(void * jarg1, void * jarg2, unsigned int jarg3) {
710   Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
711   Dali::Application *arg2 = 0 ;
712   bool arg3 ;
713
714   arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
715   arg2 = (Dali::Application *)jarg2;
716   if (!arg2) {
717     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application & type is null", 0);
718     return ;
719   }
720   arg3 = jarg3 ? true : false;
721   {
722     try {
723       Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Emit(arg1,*arg2,arg3);
724     } CALL_CATCH_EXCEPTION();
725   }
726 }
727
728
729 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WatchBoolSignal() {
730   void * jresult ;
731   Dali::Signal< void (Dali::Application &,bool) > *result = 0 ;
732
733   {
734     try {
735       result = (Dali::Signal< void (Dali::Application &,bool) > *)new Dali::Signal< void (Dali::Application &,bool) >();
736     } CALL_CATCH_EXCEPTION(0);
737   }
738   jresult = (void *)result;
739   return jresult;
740 }
741
742
743 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WatchBoolSignal(void * jarg1) {
744   Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
745
746   arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
747   {
748     try {
749       delete arg1;
750     } CALL_CATCH_EXCEPTION();
751   }
752 }
753
754
755 #ifdef __cplusplus
756 }
757 #endif
758