Manual merge for nui v0.2.34
[platform/core/csapi/tizenfx.git] / src / 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 {
12
13     internal class TimerSignalType : global::System.IDisposable
14     {
15         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
16         protected bool swigCMemOwn;
17
18   internal TimerSignalType(global::System.IntPtr cPtr, bool cMemoryOwn) {
19     swigCMemOwn = cMemoryOwn;
20     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
21   }
22
23   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TimerSignalType obj) {
24     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
25   }
26
27   ~TimerSignalType() {
28     DisposeQueue.Instance.Add(this);
29   }
30
31   public virtual void Dispose() {
32     if (!Stage.IsInstalled()) {
33       DisposeQueue.Instance.Add(this);
34       return;
35     }
36     lock(this) {
37       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
38         if (swigCMemOwn) {
39           swigCMemOwn = false;
40           NDalicPINVOKE.delete_TimerSignalType(swigCPtr);
41         }
42         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
43       }
44       global::System.GC.SuppressFinalize(this);
45     }
46   }
47
48   public bool Empty() {
49     bool ret = NDalicPINVOKE.TimerSignalType_Empty(swigCPtr);
50     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
51     return ret;
52   }
53
54   public uint GetConnectionCount() {
55     uint ret = NDalicPINVOKE.TimerSignalType_GetConnectionCount(swigCPtr);
56     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
57     return ret;
58   }
59
60   public void Connect(System.Delegate func) {
61 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); 
62     {
63       NDalicPINVOKE.TimerSignalType_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
64       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
65     }
66   }
67
68   public void Disconnect(System.Delegate func) {
69 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); 
70     {
71       NDalicPINVOKE.TimerSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
72       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
73     }
74   }
75
76   public bool Emit() {
77     bool ret = NDalicPINVOKE.TimerSignalType_Emit(swigCPtr);
78     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
79     return ret;
80   }
81
82   public TimerSignalType() : this(NDalicPINVOKE.new_TimerSignalType(), true) {
83     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
84   }
85
86 }
87
88 }