[NUI] remove "_" and refactoring naming to pascal case.
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / KeyboardTypeSignalType.cs
1 /*
2  * Copyright(c) 2019 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 using System;
19 using System.ComponentModel;
20
21 namespace Tizen.NUI
22 {
23     /// <summary>
24     /// KeyboardTypeSignalType
25     /// </summary>
26     /// <since_tizen> 4 </since_tizen>
27     [Obsolete("Deprecated in API6, Will be removed in API9, " +
28         "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
29     [EditorBrowsable(EditorBrowsableState.Never)]
30     public class KeyboardTypeSignalType : Disposable
31     {
32
33         internal KeyboardTypeSignalType(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
34         {
35         }
36
37
38         /// This will be public opened.
39         [EditorBrowsable(EditorBrowsableState.Never)]
40         protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
41         {
42             Interop.KeyboardTypeSignalType.DeleteKeyboardTypeSignalType(swigCPtr);
43         }
44
45         /// <summary>
46         /// Queries whether there are any connected slots.
47         /// </summary>
48         /// <returns>True if there are any slots connected to the signal</returns>
49         /// <since_tizen> 4 </since_tizen>
50         [Obsolete("Deprecated in API6, Will be removed in API9, " +
51             "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
52         [EditorBrowsable(EditorBrowsableState.Never)]
53         public bool Empty()
54         {
55             bool ret = Interop.KeyboardTypeSignalType.Empty(swigCPtr);
56             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
57             return ret;
58         }
59
60         /// <summary>
61         /// Queries the number of slots.
62         /// </summary>
63         /// <returns>The number of slots connected to this signal</returns>
64         /// <since_tizen> 4 </since_tizen>
65         [Obsolete("Deprecated in API6, Will be removed in API9, " +
66             "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
67         [EditorBrowsable(EditorBrowsableState.Never)]
68         public uint GetConnectionCount()
69         {
70             uint ret = Interop.KeyboardTypeSignalType.GetConnectionCount(swigCPtr);
71             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
72             return ret;
73         }
74
75         /// <summary>
76         /// Connects a function.
77         /// </summary>
78         /// <param name="func">The function to connect</param>
79         /// <since_tizen> 4 </since_tizen>
80         [Obsolete("Deprecated in API6, Will be removed in API9, " +
81             "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
82         [EditorBrowsable(EditorBrowsableState.Never)]
83         public void Connect(System.Delegate func)
84         {
85             System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
86             {
87                 Interop.KeyboardTypeSignalType.Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
88                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
89             }
90         }
91
92         /// <summary>
93         /// Disconnects a function.
94         /// </summary>
95         /// <param name="func">The function to disconnect</param>
96         /// <since_tizen> 4 </since_tizen>
97         [Obsolete("Deprecated in API6, Will be removed in API9, " +
98             "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
99         [EditorBrowsable(EditorBrowsableState.Never)]
100         public void Disconnect(System.Delegate func)
101         {
102             System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
103             {
104                 Interop.KeyboardTypeSignalType.Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
105                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
106             }
107         }
108
109         /// <summary>
110         /// Connects a member function.
111         /// </summary>
112         /// <param name="arg">The member function to connect</param>
113         /// <since_tizen> 5 </since_tizen>
114         [Obsolete("Deprecated in API6, Will be removed in API9, " +
115             "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
116         [EditorBrowsable(EditorBrowsableState.Never)]
117         public void Emit(InputMethodContext.KeyboardType arg)
118         {
119             Interop.KeyboardTypeSignalType.Emit(swigCPtr, (int)arg);
120             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
121         }
122
123         /// <summary>
124         /// The contructor.
125         /// </summary>
126         /// <since_tizen> 4 </since_tizen>
127         [Obsolete("Deprecated in API6, Will be removed in API9, " +
128             "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
129         [EditorBrowsable(EditorBrowsableState.Never)]
130         public KeyboardTypeSignalType() : this(Interop.KeyboardTypeSignalType.NewKeyboardTypeSignalType(), true)
131         {
132             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
133         }
134     }
135 }