1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
22 #include <dali/public-api/watch/watch-time.h>
23 #include <dali/public-api/watch/watch-application.h>
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;
30 // keep argcs and argv so they're always available to DALi
32 char **argWatchV = NULL;
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){
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();
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 );
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 );
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 );
50 SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Empty(Dali::Signal< void (Dali::Application &,bool) > const *self){
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();
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 );
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 );
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 );
72 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WatchTime() {
74 Dali::WatchTime *result = 0 ;
78 result = (Dali::WatchTime *)new Dali::WatchTime();
79 } catch (std::out_of_range& e) {
81 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
83 } catch (std::exception& e) {
85 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
87 } catch (Dali::DaliException e) {
89 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
93 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
97 jresult = (void *)result;
102 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WatchTime(void * jarg1) {
103 Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
105 arg1 = (Dali::WatchTime *)jarg1;
109 } catch (std::out_of_range& e) {
111 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
113 } catch (std::exception& e) {
115 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
117 } catch (Dali::DaliException e) {
119 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
123 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
130 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetHour(void * jarg1) {
132 Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
135 arg1 = (Dali::WatchTime *)jarg1;
138 result = (int)((Dali::WatchTime const *)arg1)->GetHour();
139 } catch (std::out_of_range& e) {
141 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
143 } catch (std::exception& e) {
145 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
147 } catch (Dali::DaliException e) {
149 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
153 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
162 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetHour24(void * jarg1) {
164 Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
167 arg1 = (Dali::WatchTime *)jarg1;
170 result = (int)((Dali::WatchTime const *)arg1)->GetHour24();
171 } catch (std::out_of_range& e) {
173 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
175 } catch (std::exception& e) {
177 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
179 } catch (Dali::DaliException e) {
181 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
185 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
194 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetMinute(void * jarg1) {
196 Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
199 arg1 = (Dali::WatchTime *)jarg1;
202 result = (int)((Dali::WatchTime const *)arg1)->GetMinute();
203 } catch (std::out_of_range& e) {
205 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
207 } catch (std::exception& e) {
209 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
211 } catch (Dali::DaliException e) {
213 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
217 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
226 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetSecond(void * jarg1) {
228 Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
231 arg1 = (Dali::WatchTime *)jarg1;
234 result = (int)((Dali::WatchTime const *)arg1)->GetSecond();
235 } catch (std::out_of_range& e) {
237 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
239 } catch (std::exception& e) {
241 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
243 } catch (Dali::DaliException e) {
245 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
249 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
258 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetMillisecond(void * jarg1) {
260 Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
263 arg1 = (Dali::WatchTime *)jarg1;
266 result = (int)((Dali::WatchTime const *)arg1)->GetMillisecond();
267 } catch (std::out_of_range& e) {
269 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
271 } catch (std::exception& e) {
273 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
275 } catch (Dali::DaliException e) {
277 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
281 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
290 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetYear(void * jarg1) {
292 Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
295 arg1 = (Dali::WatchTime *)jarg1;
298 result = (int)((Dali::WatchTime const *)arg1)->GetYear();
299 } catch (std::out_of_range& e) {
301 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
303 } catch (std::exception& e) {
305 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
307 } catch (Dali::DaliException e) {
309 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
313 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
322 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetMonth(void * jarg1) {
324 Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
327 arg1 = (Dali::WatchTime *)jarg1;
330 result = (int)((Dali::WatchTime const *)arg1)->GetMonth();
331 } catch (std::out_of_range& e) {
333 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
335 } catch (std::exception& e) {
337 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
339 } catch (Dali::DaliException e) {
341 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
345 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
354 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetDay(void * jarg1) {
356 Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
359 arg1 = (Dali::WatchTime *)jarg1;
362 result = (int)((Dali::WatchTime const *)arg1)->GetDay();
363 } catch (std::out_of_range& e) {
365 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
367 } catch (std::exception& e) {
369 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
371 } catch (Dali::DaliException e) {
373 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
377 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
386 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WatchTime_GetDayOfWeek(void * jarg1) {
388 Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
391 arg1 = (Dali::WatchTime *)jarg1;
394 result = (int)((Dali::WatchTime const *)arg1)->GetDayOfWeek();
395 } catch (std::out_of_range& e) {
397 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
399 } catch (std::exception& e) {
401 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
403 } catch (Dali::DaliException e) {
405 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
409 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
418 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchTime_GetUtcTime(void * jarg1) {
420 Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
423 arg1 = (Dali::WatchTime *)jarg1;
426 result = ((Dali::WatchTime const *)arg1)->GetUtcTime();
427 } catch (std::out_of_range& e) {
429 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
431 } catch (std::exception& e) {
433 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
435 } catch (Dali::DaliException e) {
437 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
441 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
445 jresult = new tm((const tm &)result);
450 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchTime_GetUtcTimeStamp(void * jarg1) {
452 Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
455 arg1 = (Dali::WatchTime *)jarg1;
458 result = ((Dali::WatchTime const *)arg1)->GetUtcTimeStamp();
459 } catch (std::out_of_range& e) {
461 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
463 } catch (std::exception& e) {
465 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
467 } catch (Dali::DaliException e) {
469 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
473 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
477 jresult = new time_t((const time_t &)result);
482 SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_WatchTime_GetTimeZone(void * jarg1) {
484 Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
487 arg1 = (Dali::WatchTime *)jarg1;
490 result = (char *)((Dali::WatchTime const *)arg1)->GetTimeZone();
491 } catch (std::out_of_range& e) {
493 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
495 } catch (std::exception& e) {
497 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
499 } catch (Dali::DaliException e) {
501 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
505 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
509 jresult = SWIG_csharp_string_callback((const char *)result);
514 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WatchTime_GetDaylightSavingTimeStatus(void * jarg1) {
515 unsigned int jresult ;
516 Dali::WatchTime *arg1 = (Dali::WatchTime *) 0 ;
519 arg1 = (Dali::WatchTime *)jarg1;
522 result = (bool)((Dali::WatchTime const *)arg1)->GetDaylightSavingTimeStatus();
523 } catch (std::out_of_range& e) {
525 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
527 } catch (std::exception& e) {
529 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
531 } catch (Dali::DaliException e) {
533 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
537 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
546 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_New__SWIG_0() {
548 Dali::WatchApplication result;
552 result = Dali::WatchApplication::New();
553 } catch (std::out_of_range& e) {
555 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
557 } catch (std::exception& e) {
559 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
561 } catch (Dali::DaliException e) {
563 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
567 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
571 jresult = new Dali::WatchApplication((const Dali::WatchApplication &)result);
576 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_New__SWIG_1(int jarg1, char * jarg2) {
578 int *arg1 = (int *) 0 ;
580 Dali::WatchApplication result;
587 argWatchV = new char*[jarg1 + 1];
589 retPtr = strtok_r(jarg2, " ", &nextPtr);
592 length = strlen(retPtr);
594 argWatchV[index] = new char[length + 1];
597 strncpy(argWatchV[index], retPtr, length);
599 argWatchV[index][length] = '\0';
602 while( index < jarg1 )
605 retPtr = strtok_r(NULL, " ", &nextPtr);
608 length = strlen(retPtr);
610 argWatchV[index] = new char[length + 1];
613 strncpy(argWatchV[index], retPtr, length);
615 argWatchV[index][length] = '\0';
620 argWatchV[jarg1] = NULL;
626 result = Dali::WatchApplication::New(arg1,arg2);
627 } catch (std::out_of_range& e) {
629 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
631 } catch (std::exception& e) {
633 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
635 } catch (Dali::DaliException e) {
637 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
641 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
645 jresult = new Dali::WatchApplication((const Dali::WatchApplication &)result);
650 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_New__SWIG_2(int jarg1, char * jarg2, char * jarg3) {
652 int *arg1 = (int *) 0 ;
654 std::string *arg3 = 0 ;
655 Dali::WatchApplication result;
662 argWatchV = new char*[jarg1 + 1];
664 retPtr = strtok_r(jarg2, " ", &nextPtr);
667 length = strlen(retPtr);
669 argWatchV[index] = new char[length + 1];
672 strncpy(argWatchV[index], retPtr, length);
674 argWatchV[index][length] = '\0';
677 while( index < jarg1 )
680 retPtr = strtok_r(NULL, " ", &nextPtr);
683 length = strlen(retPtr);
685 argWatchV[index] = new char[length + 1];
688 strncpy(argWatchV[index], retPtr, length);
690 argWatchV[index][length] = '\0';
695 argWatchV[jarg1] = NULL;
700 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
703 std::string arg3_str(jarg3);
707 result = Dali::WatchApplication::New(arg1,arg2,(std::string const &)*arg3);
708 } catch (std::out_of_range& e) {
710 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
712 } catch (std::exception& e) {
714 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
716 } catch (Dali::DaliException e) {
718 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
722 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
726 jresult = new Dali::WatchApplication((const Dali::WatchApplication &)result);
728 //argout typemap for const std::string&
734 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WatchApplication__SWIG_0() {
736 Dali::WatchApplication *result = 0 ;
740 result = (Dali::WatchApplication *)new Dali::WatchApplication();
741 } catch (std::out_of_range& e) {
743 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
745 } catch (std::exception& e) {
747 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
749 } catch (Dali::DaliException e) {
751 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
755 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
759 jresult = (void *)result;
764 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WatchApplication__SWIG_1(void * jarg1) {
766 Dali::WatchApplication *arg1 = 0 ;
767 Dali::WatchApplication *result = 0 ;
769 arg1 = (Dali::WatchApplication *)jarg1;
771 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WatchApplication const & type is null", 0);
776 result = (Dali::WatchApplication *)new Dali::WatchApplication((Dali::WatchApplication const &)*arg1);
777 } catch (std::out_of_range& e) {
779 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
781 } catch (std::exception& e) {
783 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
785 } catch (Dali::DaliException e) {
787 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
791 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
795 jresult = (void *)result;
800 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_Assign(void * jarg1, void * jarg2) {
802 Dali::WatchApplication *arg1 = (Dali::WatchApplication *) 0 ;
803 Dali::WatchApplication *arg2 = 0 ;
804 Dali::WatchApplication *result = 0 ;
806 arg1 = (Dali::WatchApplication *)jarg1;
807 arg2 = (Dali::WatchApplication *)jarg2;
809 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WatchApplication const & type is null", 0);
814 result = (Dali::WatchApplication *) &(arg1)->operator =((Dali::WatchApplication const &)*arg2);
815 } catch (std::out_of_range& e) {
817 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
819 } catch (std::exception& e) {
821 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
823 } catch (Dali::DaliException e) {
825 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
829 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
833 jresult = (void *)result;
838 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WatchApplication(void * jarg1) {
839 Dali::WatchApplication *arg1 = (Dali::WatchApplication *) 0 ;
841 arg1 = (Dali::WatchApplication *)jarg1;
848 for (int i=0; i<argWatchC+1; i++)
850 delete [] argWatchV[i];
854 } catch (std::out_of_range& e) {
856 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
858 } catch (std::exception& e) {
860 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
862 } catch (Dali::DaliException e) {
864 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
868 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
875 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_TimeTickSignal(void * jarg1) {
877 Dali::WatchApplication *arg1 = (Dali::WatchApplication *) 0 ;
878 Dali::WatchApplication::WatchTimeSignal *result = 0 ;
880 arg1 = (Dali::WatchApplication *)jarg1;
883 result = (Dali::WatchApplication::WatchTimeSignal *) &(arg1)->TimeTickSignal();
884 } catch (std::out_of_range& e) {
886 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
888 } catch (std::exception& e) {
890 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
892 } catch (Dali::DaliException e) {
894 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
898 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
902 jresult = (void *)result;
907 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_AmbientTickSignal(void * jarg1) {
909 Dali::WatchApplication *arg1 = (Dali::WatchApplication *) 0 ;
910 Dali::WatchApplication::WatchTimeSignal *result = 0 ;
912 arg1 = (Dali::WatchApplication *)jarg1;
915 result = (Dali::WatchApplication::WatchTimeSignal *) &(arg1)->AmbientTickSignal();
916 } catch (std::out_of_range& e) {
918 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
920 } catch (std::exception& e) {
922 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
924 } catch (Dali::DaliException e) {
926 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
930 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
934 jresult = (void *)result;
939 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WatchApplication_AmbientChangedSignal(void * jarg1) {
941 Dali::WatchApplication *arg1 = (Dali::WatchApplication *) 0 ;
942 Dali::WatchApplication::WatchBoolSignal *result = 0 ;
944 arg1 = (Dali::WatchApplication *)jarg1;
947 result = (Dali::WatchApplication::WatchBoolSignal *) &(arg1)->AmbientChangedSignal();
948 } catch (std::out_of_range& e) {
950 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
952 } catch (std::exception& e) {
954 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
956 } catch (Dali::DaliException e) {
958 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
962 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
966 jresult = (void *)result;
971 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WatchTimeSignal_Empty(void * jarg1) {
972 unsigned int jresult ;
973 Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
976 arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
979 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);
980 } catch (std::out_of_range& e) {
982 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
984 } catch (std::exception& e) {
986 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
988 } catch (Dali::DaliException e) {
990 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
994 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1003 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_WatchTimeSignal_GetConnectionCount(void * jarg1) {
1004 unsigned long jresult ;
1005 Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
1008 arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
1011 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);
1012 } catch (std::out_of_range& e) {
1014 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1016 } catch (std::exception& e) {
1018 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1020 } catch (Dali::DaliException e) {
1022 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1026 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1030 jresult = (unsigned long)result;
1035 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchTimeSignal_Connect(void * jarg1, void * jarg2) {
1036 Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
1037 void (*arg2)(Dali::Application &,Dali::WatchTime const &) = (void (*)(Dali::Application &,Dali::WatchTime const &)) 0 ;
1039 arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
1040 arg2 = (void (*)(Dali::Application &,Dali::WatchTime const &))jarg2;
1043 Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_Dali_WatchTime_SS_const_SA__SP__Sg__Connect(arg1,arg2);
1044 } catch (std::out_of_range& e) {
1046 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1048 } catch (std::exception& e) {
1050 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1052 } catch (Dali::DaliException e) {
1054 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1058 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1065 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchTimeSignal_Disconnect(void * jarg1, void * jarg2) {
1066 Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
1067 void (*arg2)(Dali::Application &,Dali::WatchTime const &) = (void (*)(Dali::Application &,Dali::WatchTime const &)) 0 ;
1069 arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
1070 arg2 = (void (*)(Dali::Application &,Dali::WatchTime const &))jarg2;
1073 Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_Dali_WatchTime_SS_const_SA__SP__Sg__Disconnect(arg1,arg2);
1074 } catch (std::out_of_range& e) {
1076 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1078 } catch (std::exception& e) {
1080 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1082 } catch (Dali::DaliException e) {
1084 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1088 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1095 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchTimeSignal_Emit(void * jarg1, void * jarg2, void * jarg3) {
1096 Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
1097 Dali::Application *arg2 = 0 ;
1098 Dali::WatchTime *arg3 = 0 ;
1100 arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
1101 arg2 = (Dali::Application *)jarg2;
1103 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application & type is null", 0);
1106 arg3 = (Dali::WatchTime *)jarg3;
1108 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WatchTime const & type is null", 0);
1113 Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_Dali_WatchTime_SS_const_SA__SP__Sg__Emit(arg1,*arg2,(Dali::WatchTime const &)*arg3);
1114 } catch (std::out_of_range& e) {
1116 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1118 } catch (std::exception& e) {
1120 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1122 } catch (Dali::DaliException e) {
1124 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1128 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1135 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WatchTimeSignal() {
1137 Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *result = 0 ;
1141 result = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)new Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) >();
1142 } catch (std::out_of_range& e) {
1144 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1146 } catch (std::exception& e) {
1148 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1150 } catch (Dali::DaliException e) {
1152 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1156 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1160 jresult = (void *)result;
1165 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WatchTimeSignal(void * jarg1) {
1166 Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *) 0 ;
1168 arg1 = (Dali::Signal< void (Dali::Application &,Dali::WatchTime const &) > *)jarg1;
1172 } catch (std::out_of_range& e) {
1174 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1176 } catch (std::exception& e) {
1178 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1180 } catch (Dali::DaliException e) {
1182 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1186 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1193 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WatchBoolSignal_Empty(void * jarg1) {
1194 unsigned int jresult ;
1195 Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
1198 arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
1201 result = (bool)Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Empty((Dali::Signal< void (Dali::Application &,bool) > const *)arg1);
1202 } catch (std::out_of_range& e) {
1204 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1206 } catch (std::exception& e) {
1208 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1210 } catch (Dali::DaliException e) {
1212 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1216 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1225 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_WatchBoolSignal_GetConnectionCount(void * jarg1) {
1226 unsigned long jresult ;
1227 Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
1230 arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
1233 result = Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::Application &,bool) > const *)arg1);
1234 } catch (std::out_of_range& e) {
1236 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1238 } catch (std::exception& e) {
1240 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1242 } catch (Dali::DaliException e) {
1244 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1248 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1252 jresult = (unsigned long)result;
1257 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchBoolSignal_Connect(void * jarg1, void * jarg2) {
1258 Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
1259 void (*arg2)(Dali::Application &,bool) = (void (*)(Dali::Application &,bool)) 0 ;
1261 arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
1262 arg2 = (void (*)(Dali::Application &,bool))jarg2;
1265 Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Connect(arg1,arg2);
1266 } catch (std::out_of_range& e) {
1268 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1270 } catch (std::exception& e) {
1272 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1274 } catch (Dali::DaliException e) {
1276 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1280 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1287 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchBoolSignal_Disconnect(void * jarg1, void * jarg2) {
1288 Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
1289 void (*arg2)(Dali::Application &,bool) = (void (*)(Dali::Application &,bool)) 0 ;
1291 arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
1292 arg2 = (void (*)(Dali::Application &,bool))jarg2;
1295 Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Disconnect(arg1,arg2);
1296 } catch (std::out_of_range& e) {
1298 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1300 } catch (std::exception& e) {
1302 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1304 } catch (Dali::DaliException e) {
1306 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1310 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1317 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WatchBoolSignal_Emit(void * jarg1, void * jarg2, unsigned int jarg3) {
1318 Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
1319 Dali::Application *arg2 = 0 ;
1322 arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
1323 arg2 = (Dali::Application *)jarg2;
1325 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application & type is null", 0);
1328 arg3 = jarg3 ? true : false;
1331 Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_bool_SP__Sg__Emit(arg1,*arg2,arg3);
1332 } catch (std::out_of_range& e) {
1334 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1336 } catch (std::exception& e) {
1338 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1340 } catch (Dali::DaliException e) {
1342 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1346 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1353 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WatchBoolSignal() {
1355 Dali::Signal< void (Dali::Application &,bool) > *result = 0 ;
1359 result = (Dali::Signal< void (Dali::Application &,bool) > *)new Dali::Signal< void (Dali::Application &,bool) >();
1360 } catch (std::out_of_range& e) {
1362 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1364 } catch (std::exception& e) {
1366 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1368 } catch (Dali::DaliException e) {
1370 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1374 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1378 jresult = (void *)result;
1383 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WatchBoolSignal(void * jarg1) {
1384 Dali::Signal< void (Dali::Application &,bool) > *arg1 = (Dali::Signal< void (Dali::Application &,bool) > *) 0 ;
1386 arg1 = (Dali::Signal< void (Dali::Application &,bool) > *)jarg1;
1390 } catch (std::out_of_range& e) {
1392 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1394 } catch (std::exception& e) {
1396 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1398 } catch (Dali::DaliException e) {
1400 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1404 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;