a9820fe6aba83c5e8687e9ffe3b28621a3b57897
[platform/core/csapi/nui.git] / Tizen.NUI / src / internal / TimerSignalType.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.9
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10
11 namespace Tizen.NUI\r
12 {\r
13 \r
14     public class TimerSignalType : global::System.IDisposable\r
15     {\r
16         private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
17         protected bool swigCMemOwn;\r
18 \r
19         internal TimerSignalType(global::System.IntPtr cPtr, bool cMemoryOwn)\r
20         {\r
21             swigCMemOwn = cMemoryOwn;\r
22             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
23         }\r
24 \r
25         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TimerSignalType obj)\r
26         {\r
27             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
28         }\r
29 \r
30         ~TimerSignalType()\r
31         {\r
32             Dispose();\r
33         }\r
34 \r
35         public virtual void Dispose()\r
36         {\r
37             lock (this)\r
38             {\r
39                 if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
40                 {\r
41                     if (swigCMemOwn)\r
42                     {\r
43                         swigCMemOwn = false;\r
44                         NDalicPINVOKE.delete_TimerSignalType(swigCPtr);\r
45                     }\r
46                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
47                 }\r
48                 global::System.GC.SuppressFinalize(this);\r
49             }\r
50         }\r
51 \r
52         public TimerSignalType() : this(NDalicPINVOKE.new_TimerSignalType(), true)\r
53         {\r
54             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
55         }\r
56 \r
57         public bool Empty()\r
58         {\r
59             bool ret = NDalicPINVOKE.TimerSignalType_Empty(swigCPtr);\r
60             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
61             return ret;\r
62         }\r
63 \r
64         public uint GetConnectionCount()\r
65         {\r
66             uint ret = NDalicPINVOKE.TimerSignalType_GetConnectionCount(swigCPtr);\r
67             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
68             return ret;\r
69         }\r
70 \r
71         public void Connect(SWIGTYPE_p_f___bool func)\r
72         {\r
73             NDalicPINVOKE.TimerSignalType_Connect__SWIG_0(swigCPtr, SWIGTYPE_p_f___bool.getCPtr(func));\r
74             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
75         }\r
76 \r
77         public void Disconnect(SWIGTYPE_p_f___bool func)\r
78         {\r
79             NDalicPINVOKE.TimerSignalType_Disconnect(swigCPtr, SWIGTYPE_p_f___bool.getCPtr(func));\r
80             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
81         }\r
82 \r
83         public void Connect(ConnectionTrackerInterface connectionTracker, SWIGTYPE_p_Dali__FunctorDelegate arg1)\r
84         {\r
85             NDalicPINVOKE.TimerSignalType_Connect__SWIG_4(swigCPtr, ConnectionTrackerInterface.getCPtr(connectionTracker), SWIGTYPE_p_Dali__FunctorDelegate.getCPtr(arg1));\r
86             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
87         }\r
88 \r
89         public bool Emit()\r
90         {\r
91             bool ret = NDalicPINVOKE.TimerSignalType_Emit(swigCPtr);\r
92             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
93             return ret;\r
94         }\r
95 \r
96 \r
97         public void Connect(System.Delegate func)\r
98         {\r
99             System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);\r
100             {\r
101                 NDalicPINVOKE.TimerSignalType_Connect__SWIG_0(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));\r
102                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
103             }\r
104         }\r
105 \r
106         public void Disconnect(System.Delegate func)\r
107         {\r
108             System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);\r
109             {\r
110                 NDalicPINVOKE.TimerSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));\r
111                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
112             }\r
113         }\r
114 \r
115 \r
116     }
117
118 }