Bind AnimatedVectorImageVisual action : SET_DYNAMIC_PROPERTY
[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 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WatchApplication__SWIG_0() {
447   void * jresult ;
448   Dali::WatchApplication *result = 0 ;
449
450   {
451     try {
452       result = (Dali::WatchApplication *)new Dali::WatchApplication();
453     } CALL_CATCH_EXCEPTION(0);
454   }
455   jresult = (void *)result;
456   return jresult;
457 }
458
459
460 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WatchApplication__SWIG_1(void * jarg1) {
461   void * jresult ;
462   Dali::WatchApplication *arg1 = 0 ;
463   Dali::WatchApplication *result = 0 ;
464
465   arg1 = (Dali::WatchApplication *)jarg1;
466   if (!arg1) {
467     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WatchApplication const & type is null", 0);
468     return 0;
469   }
470   {
471     try {
472       result = (Dali::WatchApplication *)new Dali::WatchApplication((Dali::WatchApplication const &)*arg1);
473     } CALL_CATCH_EXCEPTION(0);
474   }
475   jresult = (void *)result;
476   return jresult;
477 }
478
479
480 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_Assign(void * jarg1, void * jarg2) {
481   void * jresult ;
482   Dali::WatchApplication *arg1 = (Dali::WatchApplication *) 0 ;
483   Dali::WatchApplication *arg2 = 0 ;
484   Dali::WatchApplication *result = 0 ;
485
486   arg1 = (Dali::WatchApplication *)jarg1;
487   arg2 = (Dali::WatchApplication *)jarg2;
488   if (!arg2) {
489     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WatchApplication const & type is null", 0);
490     return 0;
491   }
492   {
493     try {
494       result = (Dali::WatchApplication *) &(arg1)->operator =((Dali::WatchApplication const &)*arg2);
495     } CALL_CATCH_EXCEPTION(0);
496   }
497   jresult = (void *)result;
498   return jresult;
499 }
500
501
502 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WatchApplication(void * jarg1) {
503   Dali::WatchApplication *arg1 = (Dali::WatchApplication *) 0 ;
504
505   arg1 = (Dali::WatchApplication *)jarg1;
506   {
507     try {
508       delete arg1;
509       if( argWatchV )
510       {
511         //free string data
512         for (int i=0; i<argWatchC+1; i++)
513         {
514           delete [] argWatchV[i];
515         }
516         delete [] argWatchV;
517       }
518     } CALL_CATCH_EXCEPTION();
519   }
520 }
521
522
523 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_TimeTickSignal(void * jarg1) {
524   void * jresult ;
525   Dali::WatchApplication *arg1 = (Dali::WatchApplication *) 0 ;
526   Dali::WatchApplication::WatchTimeSignal *result = 0 ;
527
528   arg1 = (Dali::WatchApplication *)jarg1;
529   {
530     try {
531       result = (Dali::WatchApplication::WatchTimeSignal *) &(arg1)->TimeTickSignal();
532     } CALL_CATCH_EXCEPTION(0);
533   }
534   jresult = (void *)result;
535   return jresult;
536 }
537
538
539 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_AmbientTickSignal(void * jarg1) {
540   void * jresult ;
541   Dali::WatchApplication *arg1 = (Dali::WatchApplication *) 0 ;
542   Dali::WatchApplication::WatchTimeSignal *result = 0 ;
543
544   arg1 = (Dali::WatchApplication *)jarg1;
545   {
546     try {
547       result = (Dali::WatchApplication::WatchTimeSignal *) &(arg1)->AmbientTickSignal();
548     } CALL_CATCH_EXCEPTION(0);
549   }
550   jresult = (void *)result;
551   return jresult;
552 }
553
554
555 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_AmbientChangedSignal(void * jarg1) {
556   void * jresult ;
557   Dali::WatchApplication *arg1 = (Dali::WatchApplication *) 0 ;
558   Dali::WatchApplication::WatchBoolSignal *result = 0 ;
559
560   arg1 = (Dali::WatchApplication *)jarg1;
561   {
562     try {
563       result = (Dali::WatchApplication::WatchBoolSignal *) &(arg1)->AmbientChangedSignal();
564     } CALL_CATCH_EXCEPTION(0);
565   }
566   jresult = (void *)result;
567   return jresult;
568 }
569
570
571 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WatchTimeSignal_Empty(void * jarg1) {
572   unsigned int jresult ;
573   Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
574   bool result;
575
576   arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
577   {
578     try {
579       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);
580     } CALL_CATCH_EXCEPTION(0);
581   }
582   jresult = result;
583   return jresult;
584 }
585
586
587 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_WatchTimeSignal_GetConnectionCount(void * jarg1) {
588   unsigned long jresult ;
589   Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
590   std::size_t result;
591
592   arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
593   {
594     try {
595       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);
596     } CALL_CATCH_EXCEPTION(0);
597   }
598   jresult = (unsigned long)result;
599   return jresult;
600 }
601
602
603 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchTimeSignal_Connect(void * jarg1, void * jarg2) {
604   Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
605   void (*arg2)(Dali::Application &,Dali::WatchTime const &) = (void (*)(Dali::Application &,Dali::WatchTime const &)) 0 ;
606
607   arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
608   arg2 = (void (*)(Dali::Application &,Dali::WatchTime const &))jarg2;
609   {
610     try {
611       Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_Dali_WatchTime_SS_const_SA__SP__Sg__Connect(arg1,arg2);
612     } CALL_CATCH_EXCEPTION();
613   }
614 }
615
616
617 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchTimeSignal_Disconnect(void * jarg1, void * jarg2) {
618   Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
619   void (*arg2)(Dali::Application &,Dali::WatchTime const &) = (void (*)(Dali::Application &,Dali::WatchTime const &)) 0 ;
620
621   arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
622   arg2 = (void (*)(Dali::Application &,Dali::WatchTime const &))jarg2;
623   {
624     try {
625       Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_Dali_WatchTime_SS_const_SA__SP__Sg__Disconnect(arg1,arg2);
626     } CALL_CATCH_EXCEPTION();
627   }
628 }
629
630
631 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchTimeSignal_Emit(void * jarg1, void * jarg2, void * jarg3) {
632   Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
633   Dali::Application *arg2 = 0 ;
634   Dali::WatchTime *arg3 = 0 ;
635
636   arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
637   arg2 = (Dali::Application *)jarg2;
638   if (!arg2) {
639     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application & type is null", 0);
640     return ;
641   }
642   arg3 = (Dali::WatchTime *)jarg3;
643   if (!arg3) {
644     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WatchTime const & type is null", 0);
645     return ;
646   }
647   {
648     try {
649       Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_Dali_WatchTime_SS_const_SA__SP__Sg__Emit(arg1,*arg2,(Dali::WatchTime const &)*arg3);
650     } CALL_CATCH_EXCEPTION();
651   }
652 }
653
654
655 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WatchTimeSignal() {
656   void * jresult ;
657   Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *result = 0 ;
658
659   {
660     try {
661       result = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)new Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) >();
662     } CALL_CATCH_EXCEPTION(0);
663   }
664   jresult = (void *)result;
665   return jresult;
666 }
667
668
669 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WatchTimeSignal(void * jarg1) {
670   Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
671
672   arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
673   {
674     try {
675       delete arg1;
676     } CALL_CATCH_EXCEPTION();
677   }
678 }
679
680
681 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WatchBoolSignal_Empty(void * jarg1) {
682   unsigned int jresult ;
683   Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
684   bool result;
685
686   arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
687   {
688     try {
689       result = (bool)Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Empty((Dali::Signal< void (Dali::Application &,bool) > const *)arg1);
690     } CALL_CATCH_EXCEPTION(0);
691   }
692   jresult = result;
693   return jresult;
694 }
695
696
697 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_WatchBoolSignal_GetConnectionCount(void * jarg1) {
698   unsigned long jresult ;
699   Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
700   std::size_t result;
701
702   arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
703   {
704     try {
705       result = Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::Application &,bool) > const *)arg1);
706     } CALL_CATCH_EXCEPTION(0);
707   }
708   jresult = (unsigned long)result;
709   return jresult;
710 }
711
712
713 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchBoolSignal_Connect(void * jarg1, void * jarg2) {
714   Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
715   void (*arg2)(Dali::Application &,bool) = (void (*)(Dali::Application &,bool)) 0 ;
716
717   arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
718   arg2 = (void (*)(Dali::Application &,bool))jarg2;
719   {
720     try {
721       Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Connect(arg1,arg2);
722     } CALL_CATCH_EXCEPTION();
723   }
724 }
725
726
727 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchBoolSignal_Disconnect(void * jarg1, void * jarg2) {
728   Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
729   void (*arg2)(Dali::Application &,bool) = (void (*)(Dali::Application &,bool)) 0 ;
730
731   arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
732   arg2 = (void (*)(Dali::Application &,bool))jarg2;
733   {
734     try {
735       Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Disconnect(arg1,arg2);
736     } CALL_CATCH_EXCEPTION();
737   }
738 }
739
740
741 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchBoolSignal_Emit(void * jarg1, void * jarg2, unsigned int jarg3) {
742   Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
743   Dali::Application *arg2 = 0 ;
744   bool arg3 ;
745
746   arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
747   arg2 = (Dali::Application *)jarg2;
748   if (!arg2) {
749     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application & type is null", 0);
750     return ;
751   }
752   arg3 = jarg3 ? true : false;
753   {
754     try {
755       Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Emit(arg1,*arg2,arg3);
756     } CALL_CATCH_EXCEPTION();
757   }
758 }
759
760
761 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WatchBoolSignal() {
762   void * jresult ;
763   Dali::Signal< void (Dali::Application &,bool) > *result = 0 ;
764
765   {
766     try {
767       result = (Dali::Signal< void (Dali::Application &,bool) > *)new Dali::Signal< void (Dali::Application &,bool) >();
768     } CALL_CATCH_EXCEPTION(0);
769   }
770   jresult = (void *)result;
771   return jresult;
772 }
773
774
775 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WatchBoolSignal(void * jarg1) {
776   Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
777
778   arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
779   {
780     try {
781       delete arg1;
782     } CALL_CATCH_EXCEPTION();
783   }
784 }
785
786
787 #ifdef __cplusplus
788 }
789 #endif
790