1 /** Copyright (c) 2019 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.
17 #ifndef CSHARP_APPLICATION
18 #define CSHARP_APPLICATION
23 #include <dali/public-api/adaptor-framework/application.h>
24 #include <dali/devel-api/adaptor-framework/application-devel.h>
25 #include <dali/integration-api/adaptor-framework/adaptor.h>
27 /* Callback for returning strings to C# without leaking memory */
28 typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *);
29 extern SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback;
33 // keep argcs and argv so they're always available to DALi
35 char** gArgV = nullptr;
36 } // unnamed namespace
38 SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__Empty(Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > const *self){
41 SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__GetConnectionCount(Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > const *self){
42 return self->GetConnectionCount();
44 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__Connect(Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *self,void (*func)(Dali::DeviceStatus::Battery::Status)){
45 self->Connect( func );
47 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__Disconnect(Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *self,void (*func)(Dali::DeviceStatus::Battery::Status)){
48 self->Disconnect( func );
50 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__Emit(Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *self,Dali::DeviceStatus::Battery::Status arg){
53 SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__Empty(Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > const *self){
56 SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__GetConnectionCount(Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > const *self){
57 return self->GetConnectionCount();
59 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__Connect(Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *self,void (*func)(Dali::DeviceStatus::Memory::Status)){
60 self->Connect( func );
62 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__Disconnect(Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *self,void (*func)(Dali::DeviceStatus::Memory::Status)){
63 self->Disconnect( func );
65 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__Emit(Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *self,Dali::DeviceStatus::Memory::Status arg){
69 SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Empty(Dali::Signal< void (Dali::Application &) > const *self){
72 SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__GetConnectionCount(Dali::Signal< void (Dali::Application &) > const *self){
73 return self->GetConnectionCount();
75 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Connect(Dali::Signal< void (Dali::Application &) > *self,void (*func)(Dali::Application &)){
76 self->Connect( func );
78 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Disconnect(Dali::Signal< void (Dali::Application &) > *self,void (*func)(Dali::Application &)){
79 self->Disconnect( func );
81 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Emit(Dali::Signal< void (Dali::Application &) > *self,Dali::Application &arg){
85 SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Empty(Dali::Signal< void (Dali::Application &,void *) > const *self){
88 SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__GetConnectionCount(Dali::Signal< void (Dali::Application &,void *) > const *self){
89 return self->GetConnectionCount();
91 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Connect(Dali::Signal< void (Dali::Application &,void *) > *self,void (*func)(Dali::Application &,void *)){
92 self->Connect( func );
94 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Disconnect(Dali::Signal< void (Dali::Application &,void *) > *self,void (*func)(Dali::Application &,void *)){
95 self->Disconnect( func );
97 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Emit(Dali::Signal< void (Dali::Application &,void *) > *self,Dali::Application &arg1,void *arg2){
98 self->Emit( arg1, arg2 );
105 /*Application binding*/
106 SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_Application_SWIGUpcast(Dali::Application *jarg1) {
107 return (Dali::BaseHandle *)jarg1;
110 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_0() {
112 Dali::Application result;
116 result = Dali::Application::New();
117 } catch (std::out_of_range& e) {
119 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
121 } catch (std::exception& e) {
123 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
125 } catch (Dali::DaliException e) {
127 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
131 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
136 jresult = new Dali::Application((const Dali::Application &)result);
141 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_1(int jarg1) {
144 Dali::Application result;
146 std::string app_name = "dali-csharp-app";
147 int stringLength = app_name.length();
149 gArgV = new char*[gArgC + 1];
150 gArgV[0] = new char[stringLength + 1];
152 strncpy(gArgV[0], app_name.c_str(), stringLength);
153 gArgV[0][stringLength] = '\0';
158 result = Dali::Application::New( &gArgC, &gArgV );
159 } catch (std::out_of_range& e) {
161 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
163 } catch (std::exception& e) {
165 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
167 } catch (Dali::DaliException e) {
169 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
173 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
178 jresult = new Dali::Application((const Dali::Application &)result);
183 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_2(int jarg1, char * jarg3) {
185 std::string *arg3 = 0;
187 Dali::Application result;
189 std::string app_name = "dali-csharp-app";
190 int stringLength = app_name.length();
192 gArgV = new char*[gArgC + 1];
193 gArgV[0] = new char[stringLength + 1];
195 strncpy(gArgV[0], app_name.c_str(), stringLength);
196 gArgV[0][stringLength] = '\0';
200 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
206 std::string arg3_str(jarg3);
210 result = Dali::Application::New( &gArgC, &gArgV, (std::string const &)*arg3 );
211 } catch (std::out_of_range& e) {
213 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
215 } catch (std::exception& e) {
217 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
219 } catch (Dali::DaliException e) {
221 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
225 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
230 jresult = new Dali::Application((const Dali::Application &)result);
232 //argout typemap for const std::string&
238 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_3(int jarg1, char * jarg3, int jarg4) {
240 Dali::Application::WINDOW_MODE arg4;
242 Dali::Application result;
244 std::string app_name = "dali-csharp-app";
245 int stringLength = app_name.length();
247 gArgV = new char*[gArgC + 1];
248 gArgV[0] = new char[stringLength + 1];
250 strncpy(gArgV[0], app_name.c_str(), stringLength);
251 gArgV[0][stringLength] = '\0';
255 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
261 std::string arg3(jarg3);
262 arg4 = (Dali::Application::WINDOW_MODE)jarg4;
265 result = Dali::Application::New( &gArgC, &gArgV, arg3, arg4 );
266 } catch (std::out_of_range& e) {
268 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
270 } catch (std::exception& e) {
272 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
274 } catch (Dali::DaliException e) {
276 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
280 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
285 jresult = new Dali::Application((const Dali::Application &)result);
287 //argout typemap for const std::string&
293 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__MANUAL_4(int jarg1, char * jarg2, char * jarg3, int jarg4) {
295 int *arg1 = (int *) 0 ;
297 Dali::Application::WINDOW_MODE arg4 ;
298 Dali::Application result;
300 // Todo generate argv data from the C# args
306 gArgV = new char*[jarg1 + 1];
308 for(retPtr = strtok_r(jarg2, " ", &nextPtr);
309 retPtr != NULL && index < jarg1;
310 retPtr = strtok_r(NULL, " ", &nextPtr))
313 length = strlen(retPtr);
314 gArgV[ index ] = new char[ length + 1 ];
315 strncpy( gArgV[ index ], retPtr, length );
316 gArgV[ index ][ length ] = '\0';
320 while( index < jarg1 )
322 //if jarg1 - index >1, maybe cause error.
334 std::string arg3(jarg3);
335 arg4 = (Dali::Application::WINDOW_MODE)jarg4;
338 result = Dali::Application::New( arg1, arg2, arg3, arg4);
339 } catch (std::out_of_range& e) {
341 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
343 } catch (std::exception& e) {
345 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
347 } catch (Dali::DaliException e) {
349 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
353 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
357 jresult = new Dali::Application((const Dali::Application &)result);
361 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Application__SWIG_0() {
363 Dali::Application *result = 0 ;
367 result = (Dali::Application *)new Dali::Application();
368 } catch (std::out_of_range& e) {
370 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
372 } catch (std::exception& e) {
374 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
376 } catch (Dali::DaliException e) {
378 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
382 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
387 jresult = (void *)result;
392 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Application__SWIG_1(void * jarg1) {
394 Dali::Application *arg1 = 0 ;
395 Dali::Application *result = 0 ;
397 arg1 = (Dali::Application *)jarg1;
399 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application const & type is null", 0);
404 result = (Dali::Application *)new Dali::Application((Dali::Application const &)*arg1);
405 } catch (std::out_of_range& e) {
407 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
409 } catch (std::exception& e) {
411 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
413 } catch (Dali::DaliException e) {
415 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
419 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
424 jresult = (void *)result;
429 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_Assign(void * jarg1, void * jarg2) {
431 Dali::Application *arg1 = (Dali::Application *) 0 ;
432 Dali::Application *arg2 = 0 ;
433 Dali::Application *result = 0 ;
435 arg1 = (Dali::Application *)jarg1;
436 arg2 = (Dali::Application *)jarg2;
438 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application const & type is null", 0);
443 result = (Dali::Application *) &(arg1)->operator =((Dali::Application const &)*arg2);
444 } catch (std::out_of_range& e) {
446 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
448 } catch (std::exception& e) {
450 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
452 } catch (Dali::DaliException e) {
454 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
458 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
463 jresult = (void *)result;
468 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Application(void * jarg1) {
469 Dali::Application *arg1 = (Dali::Application *) 0 ;
471 arg1 = (Dali::Application *)jarg1;
478 for( int i=0; i < gArgC+1; i++)
484 } catch (std::out_of_range& e) {
486 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
488 } catch (std::exception& e) {
490 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
492 } catch (Dali::DaliException e) {
494 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
498 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
506 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_MainLoop__SWIG_0(void * jarg1) {
507 Dali::Application *arg1 = (Dali::Application *) 0 ;
509 arg1 = (Dali::Application *)jarg1;
513 } catch (std::out_of_range& e) {
515 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
517 } catch (std::exception& e) {
519 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
521 } catch (Dali::DaliException e) {
523 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
527 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
535 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_MainLoop__SWIG_1(void * jarg1, void * jarg2) {
536 Dali::Application *arg1 = (Dali::Application *) 0 ;
537 Dali::Configuration::ContextLoss arg2 ;
538 Dali::Configuration::ContextLoss *argp2 ;
540 arg1 = (Dali::Application *)jarg1;
541 argp2 = (Dali::Configuration::ContextLoss *)jarg2;
543 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Configuration::ContextLoss", 0);
549 (arg1)->MainLoop(arg2);
550 } catch (std::out_of_range& e) {
552 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
554 } catch (std::exception& e) {
556 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
558 } catch (Dali::DaliException e) {
560 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
564 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
572 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_Lower(void * jarg1) {
573 Dali::Application *arg1 = (Dali::Application *) 0 ;
575 arg1 = (Dali::Application *)jarg1;
579 } catch (std::out_of_range& e) {
581 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
583 } catch (std::exception& e) {
585 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
587 } catch (Dali::DaliException e) {
589 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
593 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
601 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_Quit(void * jarg1) {
602 Dali::Application *arg1 = (Dali::Application *) 0 ;
604 arg1 = (Dali::Application *)jarg1;
608 } catch (std::out_of_range& e) {
610 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
612 } catch (std::exception& e) {
614 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
616 } catch (Dali::DaliException e) {
618 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
622 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
630 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Application_AddIdle(void * jarg1, void * jarg2) {
631 unsigned int jresult ;
632 Dali::Application *arg1 = (Dali::Application *) 0 ;
633 Dali::CallbackBase *arg2 = (Dali::CallbackBase *) 0 ;
636 arg1 = (Dali::Application *)jarg1;
637 arg2 = (Dali::CallbackBase *)jarg2;
640 result = (bool)(arg1)->AddIdle(arg2);
641 } catch (std::out_of_range& e) {
643 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
645 } catch (std::exception& e) {
647 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
649 } catch (Dali::DaliException e) {
651 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
655 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
665 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_GetWindow(void * jarg1) {
667 Dali::Application *arg1 = (Dali::Application *) 0 ;
670 arg1 = (Dali::Application *)jarg1;
673 result = (arg1)->GetWindow();
674 } catch (std::out_of_range& e) {
676 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
678 } catch (std::exception& e) {
680 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
682 } catch (Dali::DaliException e) {
684 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
688 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
693 jresult = new Dali::Window((const Dali::Window &)result);
697 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Application_GetWindowsListSize() {
698 unsigned int jresult ;
699 Dali::WindowContainer result;
702 result = Dali::Adaptor::Get().GetWindows();
703 jresult = result.size();
704 } catch (std::out_of_range& e) {
706 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
708 } catch (std::exception& e) {
710 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
712 } catch (Dali::DaliException e) {
714 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
718 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
725 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_GetWindowsFromList(uint jarg1) {
728 Dali::WindowContainer result;
732 result = Dali::Adaptor::Get().GetWindows();
733 } catch (std::out_of_range& e) {
735 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
737 } catch (std::exception& e) {
739 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
741 } catch (Dali::DaliException e) {
743 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
747 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
751 jresult = new Dali::Window((const Dali::Window &)result[index]);
755 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_ReplaceWindow(void * jarg1, void * jarg2, char * jarg3) {
756 Dali::Application *arg1 = (Dali::Application *) 0 ;
757 Dali::PositionSize arg2 ;
758 std::string *arg3 = 0 ;
759 Dali::PositionSize *argp2 ;
761 arg1 = (Dali::Application *)jarg1;
762 argp2 = (Dali::PositionSize *)jarg2;
764 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::PositionSize", 0);
769 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
772 std::string arg3_str(jarg3);
776 (arg1)->ReplaceWindow(arg2,(std::string const &)*arg3);
777 } catch (std::out_of_range& e) {
779 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
781 } catch (std::exception& e) {
783 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
785 } catch (Dali::DaliException e) {
787 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
791 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
797 //argout typemap for const std::string&
802 SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Application_GetResourcePath() {
808 result = Dali::Application::GetResourcePath();
809 } catch (std::out_of_range& e) {
811 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
813 } catch (std::exception& e) {
815 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
817 } catch (Dali::DaliException e) {
819 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
823 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
828 jresult = SWIG_csharp_string_callback((&result)->c_str());
832 SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Application_GetRegion(void * jarg1) {
834 Dali::Application *arg1 = (Dali::Application *) 0 ;
837 arg1 = (Dali::Application *)jarg1;
840 result = (arg1)->GetRegion();
841 } catch (std::out_of_range& e) {
843 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
845 } catch (std::exception& e) {
847 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
849 } catch (Dali::DaliException e) {
851 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
855 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
859 jresult = SWIG_csharp_string_callback((&result)->c_str());
864 SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Application_GetLanguage(void * jarg1) {
866 Dali::Application *arg1 = (Dali::Application *) 0 ;
869 arg1 = (Dali::Application *)jarg1;
872 result = (arg1)->GetLanguage();
873 } catch (std::out_of_range& e) {
875 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
877 } catch (std::exception& e) {
879 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
881 } catch (Dali::DaliException e) {
883 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
887 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
891 jresult = SWIG_csharp_string_callback((&result)->c_str());
895 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_SetViewMode(void * jarg1, int jarg2) {
896 Dali::Application *arg1 = (Dali::Application *) 0 ;
897 Dali::ViewMode arg2 ;
899 arg1 = (Dali::Application *)jarg1;
900 arg2 = (Dali::ViewMode)jarg2;
903 (arg1)->SetViewMode(arg2);
904 } catch (std::out_of_range& e) {
906 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
908 } catch (std::exception& e) {
910 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
912 } catch (Dali::DaliException e) {
914 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
918 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
926 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Application_GetViewMode(void * jarg1) {
928 Dali::Application *arg1 = (Dali::Application *) 0 ;
929 Dali::ViewMode result;
931 arg1 = (Dali::Application *)jarg1;
934 result = (Dali::ViewMode)((Dali::Application const *)arg1)->GetViewMode();
935 } catch (std::out_of_range& e) {
937 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
939 } catch (std::exception& e) {
941 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
943 } catch (Dali::DaliException e) {
945 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
949 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
954 jresult = (int)result;
959 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_SetStereoBase(void * jarg1, float jarg2) {
960 Dali::Application *arg1 = (Dali::Application *) 0 ;
963 arg1 = (Dali::Application *)jarg1;
967 (arg1)->SetStereoBase(arg2);
968 } catch (std::out_of_range& e) {
970 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
972 } catch (std::exception& e) {
974 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
976 } catch (Dali::DaliException e) {
978 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
982 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
990 SWIGEXPORT float SWIGSTDCALL CSharp_Dali_Application_GetStereoBase(void * jarg1) {
992 Dali::Application *arg1 = (Dali::Application *) 0 ;
995 arg1 = (Dali::Application *)jarg1;
998 result = (float)((Dali::Application const *)arg1)->GetStereoBase();
999 } catch (std::out_of_range& e) {
1001 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1003 } catch (std::exception& e) {
1005 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1007 } catch (Dali::DaliException e) {
1009 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1013 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1023 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_InitSignal(void * jarg1) {
1025 Dali::Application *arg1 = (Dali::Application *) 0 ;
1026 Dali::Application::AppSignalType *result = 0 ;
1028 arg1 = (Dali::Application *)jarg1;
1031 result = (Dali::Application::AppSignalType *) &(arg1)->InitSignal();
1032 } catch (std::out_of_range& e) {
1034 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1036 } catch (std::exception& e) {
1038 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1040 } catch (Dali::DaliException e) {
1042 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1046 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1051 jresult = (void *)result;
1056 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_TerminateSignal(void * jarg1) {
1058 Dali::Application *arg1 = (Dali::Application *) 0 ;
1059 Dali::Application::AppSignalType *result = 0 ;
1061 arg1 = (Dali::Application *)jarg1;
1064 result = (Dali::Application::AppSignalType *) &(arg1)->TerminateSignal();
1065 } catch (std::out_of_range& e) {
1067 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1069 } catch (std::exception& e) {
1071 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1073 } catch (Dali::DaliException e) {
1075 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1079 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1084 jresult = (void *)result;
1089 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_PauseSignal(void * jarg1) {
1091 Dali::Application *arg1 = (Dali::Application *) 0 ;
1092 Dali::Application::AppSignalType *result = 0 ;
1094 arg1 = (Dali::Application *)jarg1;
1097 result = (Dali::Application::AppSignalType *) &(arg1)->PauseSignal();
1098 } catch (std::out_of_range& e) {
1100 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1102 } catch (std::exception& e) {
1104 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1106 } catch (Dali::DaliException e) {
1108 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1112 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1117 jresult = (void *)result;
1122 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_ResumeSignal(void * jarg1) {
1124 Dali::Application *arg1 = (Dali::Application *) 0 ;
1125 Dali::Application::AppSignalType *result = 0 ;
1127 arg1 = (Dali::Application *)jarg1;
1130 result = (Dali::Application::AppSignalType *) &(arg1)->ResumeSignal();
1131 } catch (std::out_of_range& e) {
1133 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1135 } catch (std::exception& e) {
1137 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1139 } catch (Dali::DaliException e) {
1141 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1145 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1150 jresult = (void *)result;
1155 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_ResetSignal(void * jarg1) {
1157 Dali::Application *arg1 = (Dali::Application *) 0 ;
1158 Dali::Application::AppSignalType *result = 0 ;
1160 arg1 = (Dali::Application *)jarg1;
1163 result = (Dali::Application::AppSignalType *) &(arg1)->ResetSignal();
1164 } catch (std::out_of_range& e) {
1166 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1168 } catch (std::exception& e) {
1170 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1172 } catch (Dali::DaliException e) {
1174 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1178 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1183 jresult = (void *)result;
1188 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_ResizeSignal(void * jarg1) {
1190 Dali::Application *arg1 = (Dali::Application *) 0 ;
1191 Dali::Application::AppSignalType *result = 0 ;
1193 arg1 = (Dali::Application *)jarg1;
1196 result = (Dali::Application::AppSignalType *) &(arg1)->ResizeSignal();
1197 } catch (std::out_of_range& e) {
1199 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1201 } catch (std::exception& e) {
1203 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1205 } catch (Dali::DaliException e) {
1207 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1211 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1216 jresult = (void *)result;
1221 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_AppControlSignal(void * jarg1) {
1223 Dali::Application *arg1 = (Dali::Application *) 0 ;
1224 Dali::Application::AppControlSignalType *result = 0 ;
1226 arg1 = (Dali::Application *)jarg1;
1229 result = (Dali::Application::AppControlSignalType *) &(arg1)->AppControlSignal();
1230 } catch (std::out_of_range& e) {
1232 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1234 } catch (std::exception& e) {
1236 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1238 } catch (Dali::DaliException e) {
1240 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1244 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1249 jresult = (void *)result;
1254 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_LanguageChangedSignal(void * jarg1) {
1256 Dali::Application *arg1 = (Dali::Application *) 0 ;
1257 Dali::Application::AppSignalType *result = 0 ;
1259 arg1 = (Dali::Application *)jarg1;
1262 result = (Dali::Application::AppSignalType *) &(arg1)->LanguageChangedSignal();
1263 } catch (std::out_of_range& e) {
1265 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1267 } catch (std::exception& e) {
1269 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1271 } catch (Dali::DaliException e) {
1273 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1277 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1282 jresult = (void *)result;
1287 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_RegionChangedSignal(void * jarg1) {
1289 Dali::Application *arg1 = (Dali::Application *) 0 ;
1290 Dali::Application::AppSignalType *result = 0 ;
1292 arg1 = (Dali::Application *)jarg1;
1295 result = (Dali::Application::AppSignalType *) &(arg1)->RegionChangedSignal();
1296 } catch (std::out_of_range& e) {
1298 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1300 } catch (std::exception& e) {
1302 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1304 } catch (Dali::DaliException e) {
1306 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1310 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1315 jresult = (void *)result;
1319 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_LowBatterySignal(void * jarg1) {
1321 Dali::Application *arg1 = (Dali::Application *) 0 ;
1322 Dali::Application::LowBatterySignalType *result = 0 ;
1324 arg1 = (Dali::Application *)jarg1;
1327 result = (Dali::Application::LowBatterySignalType *) &(arg1)->LowBatterySignal();
1328 } catch (std::out_of_range& e) {
1330 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1332 } catch (std::exception& e) {
1334 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1336 } catch (Dali::DaliException e) {
1338 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1342 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1347 jresult = (void *)result;
1352 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_LowMemorySignal(void * jarg1) {
1354 Dali::Application *arg1 = (Dali::Application *) 0 ;
1355 Dali::Application::LowMemorySignalType *result = 0 ;
1357 arg1 = (Dali::Application *)jarg1;
1360 result = (Dali::Application::LowMemorySignalType *) &(arg1)->LowMemorySignal();
1361 } catch (std::out_of_range& e) {
1363 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1365 } catch (std::exception& e) {
1367 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1369 } catch (Dali::DaliException e) {
1371 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1375 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1379 jresult = (void *)result;
1384 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Application_LowBatterySignalType_Empty(void * jarg1) {
1385 unsigned int jresult ;
1386 Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *) 0 ;
1389 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *)jarg1;
1392 result = (bool)Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__Empty((Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > const *)arg1);
1393 } catch (std::out_of_range& e) {
1395 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1397 } catch (std::exception& e) {
1399 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1401 } catch (Dali::DaliException e) {
1403 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1407 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1417 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_Application_LowBatterySignalType_GetConnectionCount(void * jarg1) {
1418 unsigned long jresult ;
1419 Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *) 0 ;
1422 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *)jarg1;
1425 result = Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > const *)arg1);
1426 } catch (std::out_of_range& e) {
1428 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1430 } catch (std::exception& e) {
1432 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1434 } catch (Dali::DaliException e) {
1436 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1440 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1444 jresult = (unsigned long)result;
1449 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_LowBatterySignalType_Connect(void * jarg1, void * jarg2) {
1450 Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *) 0 ;
1451 void (*arg2)(Dali::DeviceStatus::Battery::Status) = (void (*)(Dali::DeviceStatus::Battery::Status)) 0 ;
1453 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *)jarg1;
1454 arg2 = (void (*)(Dali::DeviceStatus::Battery::Status))jarg2;
1457 Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__Connect(arg1,arg2);
1458 } catch (std::out_of_range& e) {
1460 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1462 } catch (std::exception& e) {
1464 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1466 } catch (Dali::DaliException e) {
1468 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1472 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1479 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_LowBatterySignalType_Disconnect(void * jarg1, void * jarg2) {
1480 Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *) 0 ;
1481 void (*arg2)(Dali::DeviceStatus::Battery::Status) = (void (*)(Dali::DeviceStatus::Battery::Status)) 0 ;
1483 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *)jarg1;
1484 arg2 = (void (*)(Dali::DeviceStatus::Battery::Status))jarg2;
1487 Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__Disconnect(arg1,arg2);
1488 } catch (std::out_of_range& e) {
1490 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1492 } catch (std::exception& e) {
1494 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1496 } catch (Dali::DaliException e) {
1498 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1502 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1509 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_LowBatterySignalType_Emit(void * jarg1, void * jarg2) {
1510 Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *) 0 ;
1511 Dali::DeviceStatus::Battery::Status arg2 ;
1512 Dali::DeviceStatus::Battery::Status *argp2 ;
1514 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *)jarg1;
1515 argp2 = (Dali::DeviceStatus::Battery::Status *)jarg2;
1517 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::DeviceStatus::Battery::Status", 0);
1523 Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__Emit(arg1,arg2);
1524 } catch (std::out_of_range& e) {
1526 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1528 } catch (std::exception& e) {
1530 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1532 } catch (Dali::DaliException e) {
1534 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1538 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1545 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_new_LowBatterySignalType() {
1547 Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *result = 0 ;
1551 result = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *)new Dali::Signal< void (Dali::DeviceStatus::Battery::Status) >();
1552 } catch (std::out_of_range& e) {
1554 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1556 } catch (std::exception& e) {
1558 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1560 } catch (Dali::DaliException e) {
1562 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1566 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1571 jresult = (void *)result;
1576 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_delete_LowBatterySignalType(void * jarg1) {
1577 Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *) 0 ;
1579 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *)jarg1;
1583 } catch (std::out_of_range& e) {
1585 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1587 } catch (std::exception& e) {
1589 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1591 } catch (Dali::DaliException e) {
1593 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1597 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1604 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Application_LowMemorySignalType_Empty(void * jarg1) {
1605 unsigned int jresult ;
1606 Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *) 0 ;
1609 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *)jarg1;
1612 result = (bool)Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__Empty((Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > const *)arg1);
1613 } catch (std::out_of_range& e) {
1615 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1617 } catch (std::exception& e) {
1619 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1621 } catch (Dali::DaliException e) {
1623 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1627 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1636 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_Application_LowMemorySignalType_GetConnectionCount(void * jarg1) {
1637 unsigned long jresult ;
1638 Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *) 0 ;
1641 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *)jarg1;
1644 result = Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > const *)arg1);
1645 } catch (std::out_of_range& e) {
1647 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1649 } catch (std::exception& e) {
1651 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1653 } catch (Dali::DaliException e) {
1655 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1659 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1663 jresult = (unsigned long)result;
1668 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_LowMemorySignalType_Connect(void * jarg1, void * jarg2) {
1669 Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *) 0 ;
1670 void (*arg2)(Dali::DeviceStatus::Memory::Status) = (void (*)(Dali::DeviceStatus::Memory::Status)) 0 ;
1672 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *)jarg1;
1673 arg2 = (void (*)(Dali::DeviceStatus::Memory::Status))jarg2;
1676 Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__Connect(arg1,arg2);
1677 } catch (std::out_of_range& e) {
1679 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1681 } catch (std::exception& e) {
1683 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1685 } catch (Dali::DaliException e) {
1687 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1691 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1698 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_LowMemorySignalType_Disconnect(void * jarg1, void * jarg2) {
1699 Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *) 0 ;
1700 void (*arg2)(Dali::DeviceStatus::Memory::Status) = (void (*)(Dali::DeviceStatus::Memory::Status)) 0 ;
1702 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *)jarg1;
1703 arg2 = (void (*)(Dali::DeviceStatus::Memory::Status))jarg2;
1706 Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__Disconnect(arg1,arg2);
1707 } catch (std::out_of_range& e) {
1709 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1711 } catch (std::exception& e) {
1713 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1715 } catch (Dali::DaliException e) {
1717 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1721 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1728 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_LowMemorySignalType_Emit(void * jarg1, void * jarg2) {
1729 Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *) 0 ;
1730 Dali::DeviceStatus::Memory::Status arg2 ;
1731 Dali::DeviceStatus::Memory::Status *argp2 ;
1733 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *)jarg1;
1734 argp2 = (Dali::DeviceStatus::Memory::Status *)jarg2;
1736 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::DeviceStatus::Memory::Status", 0);
1742 Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__Emit(arg1,arg2);
1743 } catch (std::out_of_range& e) {
1745 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1747 } catch (std::exception& e) {
1749 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1751 } catch (Dali::DaliException e) {
1753 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1757 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1764 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_new_LowMemorySignalType() {
1766 Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *result = 0 ;
1770 result = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *)new Dali::Signal< void (Dali::DeviceStatus::Memory::Status) >();
1771 } catch (std::out_of_range& e) {
1773 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1775 } catch (std::exception& e) {
1777 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1779 } catch (Dali::DaliException e) {
1781 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1785 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1789 jresult = (void *)result;
1794 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_delete_LowMemorySignalType(void * jarg1) {
1795 Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *) 0 ;
1797 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *)jarg1;
1801 } catch (std::out_of_range& e) {
1803 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1805 } catch (std::exception& e) {
1807 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1809 } catch (Dali::DaliException e) {
1811 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1815 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1822 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ApplicationSignal_Empty(void * jarg1) {
1823 unsigned int jresult ;
1824 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
1827 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
1830 result = (bool)Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Empty((Dali::Signal< void (Dali::Application &) > const *)arg1);
1831 } catch (std::out_of_range& e) {
1833 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1835 } catch (std::exception& e) {
1837 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1839 } catch (Dali::DaliException e) {
1841 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1845 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1855 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_ApplicationSignal_GetConnectionCount(void * jarg1) {
1856 unsigned long jresult ;
1857 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
1860 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
1863 result = Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::Application &) > const *)arg1);
1864 } catch (std::out_of_range& e) {
1866 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1868 } catch (std::exception& e) {
1870 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1872 } catch (Dali::DaliException e) {
1874 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1878 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1883 jresult = (unsigned long)result;
1888 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationSignal_Connect(void * jarg1, void * jarg2) {
1889 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
1890 void (*arg2)(Dali::Application &) = (void (*)(Dali::Application &)) 0 ;
1892 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
1893 arg2 = (void (*)(Dali::Application &))jarg2;
1896 Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Connect(arg1,arg2);
1897 } catch (std::out_of_range& e) {
1899 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1901 } catch (std::exception& e) {
1903 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1905 } catch (Dali::DaliException e) {
1907 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1911 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1919 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationSignal_Disconnect(void * jarg1, void * jarg2) {
1920 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
1921 void (*arg2)(Dali::Application &) = (void (*)(Dali::Application &)) 0 ;
1923 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
1924 arg2 = (void (*)(Dali::Application &))jarg2;
1927 Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Disconnect(arg1,arg2);
1928 } catch (std::out_of_range& e) {
1930 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1932 } catch (std::exception& e) {
1934 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1936 } catch (Dali::DaliException e) {
1938 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1942 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1950 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationSignal_Emit(void * jarg1, void * jarg2) {
1951 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
1952 Dali::Application *arg2 = 0 ;
1954 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
1955 arg2 = (Dali::Application *)jarg2;
1957 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application & type is null", 0);
1962 Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Emit(arg1,*arg2);
1963 } catch (std::out_of_range& e) {
1965 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1967 } catch (std::exception& e) {
1969 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1971 } catch (Dali::DaliException e) {
1973 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1977 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1985 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ApplicationSignal() {
1987 Dali::Signal< void (Dali::Application &) > *result = 0 ;
1991 result = (Dali::Signal< void (Dali::Application &) > *)new Dali::Signal< void (Dali::Application &) >();
1992 } catch (std::out_of_range& e) {
1994 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1996 } catch (std::exception& e) {
1998 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2000 } catch (Dali::DaliException e) {
2002 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2006 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2011 jresult = (void *)result;
2016 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ApplicationSignal(void * jarg1) {
2017 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
2019 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
2023 } catch (std::out_of_range& e) {
2025 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2027 } catch (std::exception& e) {
2029 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2031 } catch (Dali::DaliException e) {
2033 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2037 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2045 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ApplicationControlSignal_Empty(void * jarg1) {
2046 unsigned int jresult ;
2047 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
2050 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
2053 result = (bool)Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Empty((Dali::Signal< void (Dali::Application &,void *) > const *)arg1);
2054 } catch (std::out_of_range& e) {
2056 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2058 } catch (std::exception& e) {
2060 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2062 } catch (Dali::DaliException e) {
2064 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2068 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2078 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_ApplicationControlSignal_GetConnectionCount(void * jarg1) {
2079 unsigned long jresult ;
2080 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
2083 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
2086 result = Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::Application &,void *) > const *)arg1);
2087 } catch (std::out_of_range& e) {
2089 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2091 } catch (std::exception& e) {
2093 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2095 } catch (Dali::DaliException e) {
2097 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2101 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2106 jresult = (unsigned long)result;
2111 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationControlSignal_Connect(void * jarg1, void * jarg2) {
2112 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
2113 void (*arg2)(Dali::Application &,void *) = (void (*)(Dali::Application &,void *)) 0 ;
2115 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
2116 arg2 = (void (*)(Dali::Application &,void *))jarg2;
2119 Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Connect(arg1,arg2);
2120 } catch (std::out_of_range& e) {
2122 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2124 } catch (std::exception& e) {
2126 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2128 } catch (Dali::DaliException e) {
2130 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2134 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2142 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationControlSignal_Disconnect(void * jarg1, void * jarg2) {
2143 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
2144 void (*arg2)(Dali::Application &,void *) = (void (*)(Dali::Application &,void *)) 0 ;
2146 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
2147 arg2 = (void (*)(Dali::Application &,void *))jarg2;
2150 Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Disconnect(arg1,arg2);
2151 } catch (std::out_of_range& e) {
2153 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2155 } catch (std::exception& e) {
2157 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2159 } catch (Dali::DaliException e) {
2161 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2165 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2173 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationControlSignal_Emit(void * jarg1, void * jarg2, void * jarg3) {
2174 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
2175 Dali::Application *arg2 = 0 ;
2176 void *arg3 = (void *) 0 ;
2178 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
2179 arg2 = (Dali::Application *)jarg2;
2181 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application & type is null", 0);
2187 Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Emit(arg1,*arg2,arg3);
2188 } catch (std::out_of_range& e) {
2190 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2192 } catch (std::exception& e) {
2194 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2196 } catch (Dali::DaliException e) {
2198 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2202 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2210 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ApplicationControlSignal() {
2212 Dali::Signal< void (Dali::Application &,void *) > *result = 0 ;
2216 result = (Dali::Signal< void (Dali::Application &,void *) > *)new Dali::Signal< void (Dali::Application &,void *) >();
2217 } catch (std::out_of_range& e) {
2219 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2221 } catch (std::exception& e) {
2223 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2225 } catch (Dali::DaliException e) {
2227 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2231 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2236 jresult = (void *)result;
2241 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ApplicationControlSignal(void * jarg1) {
2242 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
2244 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
2248 } catch (std::out_of_range& e) {
2250 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2252 } catch (std::exception& e) {
2254 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2256 } catch (Dali::DaliException e) {
2258 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2262 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2270 /*application-devel binding*/
2272 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_4(int jarg1, char * jarg3, int jarg4, void * jarg5) {
2274 int *arg1 = (int *) 0 ;
2276 Dali::Application::WINDOW_MODE arg4 ;
2277 Dali::PositionSize arg5 ;
2278 Dali::PositionSize *argp5 ;
2279 Dali::Application result;
2282 // Todo generate argv data from the C# args
2283 char **array; // two dimensional array
2284 int numStrings = 1; // number of strings
2285 int stringLength = 30; // max string length.
2286 array = (char **)malloc( (numStrings + 1 )* sizeof(char *) );
2288 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "array is null", 0);
2293 // allocate the string data
2294 for( int i=0; i < numStrings; i++)
2296 array[i]=(char *)malloc( stringLength * sizeof(char) );
2298 array[ numStrings ] = NULL; // we allocated +1 for hold the NULL part
2300 std::string temp = "dali-csharp-app";
2303 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "array[0] is null", 0);
2306 array[0][temp.copy(array[0], strlen(array[0])-1)] = '\0';
2312 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
2315 std::string arg3(jarg3);
2316 arg4 = (Dali::Application::WINDOW_MODE)jarg4;
2317 argp5 = (Dali::PositionSize *)jarg5;
2319 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::PositionSize", 0);
2325 result = Dali::Application::New( arg1, arg2, arg3, arg4, arg5 );
2326 } catch (std::out_of_range& e) {
2328 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2330 } catch (std::exception& e) {
2332 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2334 } catch (Dali::DaliException e) {
2336 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2340 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2345 jresult = new Dali::Application((const Dali::Application &)result);
2351 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New_WithWindowSizePosition(int jarg1, char * jarg2, char * jarg3, int jarg4, void * jarg5) {
2353 int *arg1 = (int *) 0 ;
2355 Dali::Application::WINDOW_MODE arg4 ;
2356 Dali::PositionSize arg5 ;
2357 Dali::PositionSize *argp5 ;
2358 Dali::Application result;
2362 char *retPtr = NULL;
2365 gArgV = new char*[jarg1 + 1];
2367 for(retPtr = strtok_r(jarg2, " ", &nextPtr);
2368 retPtr != NULL && index < jarg1;
2369 retPtr = strtok_r(NULL, " ", &nextPtr))
2372 length = strlen(retPtr);
2373 gArgV[ index ] = new char[ length + 1 ];
2374 strncpy( gArgV[ index ], retPtr, length );
2375 gArgV[ index ][ length ] = '\0';
2379 while( index < jarg1 )
2381 //if jarg1 - index >1, maybe cause error.
2382 gArgV[index] = NULL;
2386 gArgV[jarg1] = NULL;
2393 std::string arg3(jarg3);
2394 arg4 = (Dali::Application::WINDOW_MODE)jarg4;
2395 argp5 = (Dali::PositionSize *)jarg5;
2397 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::PositionSize", 0);
2403 result = Dali::Application::New( arg1, arg2, arg3, arg4, arg5 );
2404 } catch (std::out_of_range& e) {
2406 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2408 } catch (std::exception& e) {
2410 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2412 } catch (Dali::DaliException e) {
2414 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2418 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2422 jresult = new Dali::Application((const Dali::Application &)result);