X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.NUI%2Fsrc%2Finternal%2FStatusSignalType.cs;h=9ded1909c40f9d0520e18ef3dd7758ccc2206f7f;hb=fc16884c591d4161bce1d0fdc979fc25706feb54;hp=8eaed335d58f9572addc9531cf84b3d455e1f8e9;hpb=f278b216d1a1b4e206cdf3b84cac33c2869aeafc;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git
diff --git a/src/Tizen.NUI/src/internal/StatusSignalType.cs b/src/Tizen.NUI/src/internal/StatusSignalType.cs
index 8eaed33..9ded190 100755
--- a/src/Tizen.NUI/src/internal/StatusSignalType.cs
+++ b/src/Tizen.NUI/src/internal/StatusSignalType.cs
@@ -1,29 +1,37 @@
-/** Copyright (c) 2017 Samsung Electronics Co., Ltd.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
+/*
+ * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
using System;
using System.Runtime.InteropServices;
using System.ComponentModel;
namespace Tizen.NUI
{
- //Please do not use! this will be deprecated
+ ///
+ /// Please do not use! this will be deprecated
+ ///
+ /// 3
[EditorBrowsable(EditorBrowsableState.Never)]
public class StatusSignalType : global::System.IDisposable
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
+ ///
+ /// swigCMemOwn
+ ///
+ /// 3
protected bool swigCMemOwn;
internal StatusSignalType(global::System.IntPtr cPtr, bool cMemoryOwn)
@@ -39,9 +47,16 @@ namespace Tizen.NUI
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
- //A Flat to check if it is already disposed.
+ ///
+ /// A Flat to check if it is already disposed.
+ ///
+ /// 3
protected bool disposed = false;
+ ///
+ /// Dispose
+ ///
+ /// 3
~StatusSignalType()
{
if (!isDisposeQueued)
@@ -51,6 +66,10 @@ namespace Tizen.NUI
}
}
+ ///
+ /// Dispose
+ ///
+ /// 3
public void Dispose()
{
//Throw excpetion if Dispose() is called in separate thread.
@@ -70,6 +89,10 @@ namespace Tizen.NUI
}
}
+ ///
+ /// Dispose
+ ///
+ /// 3
protected virtual void Dispose(DisposeTypes type)
{
if (disposed)
@@ -102,6 +125,11 @@ namespace Tizen.NUI
disposed = true;
}
+ ///
+ /// Queries whether there are any connected slots.
+ ///
+ /// True if there are any slots connected to the signal
+ /// 3
public bool Empty()
{
bool ret = NDalicManualPINVOKE.StatusSignalType_Empty(swigCPtr);
@@ -109,6 +137,11 @@ namespace Tizen.NUI
return ret;
}
+ ///
+ /// Queries the number of slots.
+ ///
+ /// The number of slots connected to this signal
+ /// 3
public uint GetConnectionCount()
{
uint ret = NDalicManualPINVOKE.StatusSignalType_GetConnectionCount(swigCPtr);
@@ -116,6 +149,11 @@ namespace Tizen.NUI
return ret;
}
+ ///
+ /// Connects a function.
+ ///
+ /// The function to connect
+ /// 3
public void Connect(System.Delegate func)
{
System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
@@ -125,6 +163,11 @@ namespace Tizen.NUI
}
}
+ ///
+ /// Disconnects a function.
+ ///
+ /// The function to disconnect
+ /// 3
public void Disconnect(System.Delegate func)
{
System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
@@ -134,12 +177,20 @@ namespace Tizen.NUI
}
}
+ ///
+ /// Connects a member function.
+ ///
+ /// The member function to connect
+ /// 3
public void Emit(bool arg)
{
NDalicManualPINVOKE.StatusSignalType_Emit(swigCPtr, arg);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ ///
+ /// The constructor.
+ ///
public StatusSignalType() : this(NDalicManualPINVOKE.new_StatusSignalType(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();