summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkibak.yoon <kibak.yoon@samsung.com>2016-10-25 12:55:27 +0900
committerkibak.yoon <kibak.yoon@samsung.com>2016-10-25 14:56:46 +0900
commit86d3e15c3bed6ef6d232d9cc2113898bd556f2b9 (patch)
tree320bc85a95580dd7a5920e1c6fbc23c782d310ce
parent36d493166eb5e7ee65206a8750d13c3476b83475 (diff)
downloadsensor-86d3e15c3bed6ef6d232d9cc2113898bd556f2b9.tar.gz
sensor-86d3e15c3bed6ef6d232d9cc2113898bd556f2b9.tar.bz2
sensor-86d3e15c3bed6ef6d232d9cc2113898bd556f2b9.zip
csapi-sensor: change sensor classes to sealed class to prevent inheritance
Change-Id: I8d19abad0c4629a8958fafd2daac1b02d61eca35 Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/Accelerometer.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/ActivityDetector.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/FaceDownGestureDetector.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/GravitySensor.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/Gyroscope.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/GyroscopeRotationVectorSensor.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/HeartRateMonitor.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/HumiditySensor.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/InVehicleActivityDetector.cs4
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/LightSensor.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/LinearAccelerationSensor.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/Magnetometer.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/MagnetometerRotationVectorSensor.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/OrientationSensor.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/Pedometer.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/PickUpGestureDetector.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/PressureSensor.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/ProximitySensor.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/RotationVectorSensor.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/RunningActivityDetector.cs4
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/SleepMonitor.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/StationaryActivityDetector.cs4
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/TemperatureSensor.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/UltravioletSensor.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedGyroscope.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedMagnetometer.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/WalkingActivityDetector.cs4
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Plugins/WristUpGestureDetector.cs6
-rwxr-xr-x[-rw-r--r--]Tizen.Sensor/Tizen.Sensor/Sensor.cs4
29 files changed, 82 insertions, 82 deletions
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/Accelerometer.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/Accelerometer.cs
index 7e5c23f..7fc6c3f 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/Accelerometer.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/Accelerometer.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// Accelerometer Sensor Class. Used for registering callbacks for accelerometer and getting accelerometer data
/// </summary>
- public class Accelerometer : Sensor
+ public sealed class Accelerometer : Sensor
{
private static string AccelerometerKey = "http://tizen.org/feature/sensor.accelerometer";
/// <summary>
@@ -95,7 +95,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -105,7 +105,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/ActivityDetector.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/ActivityDetector.cs
index 6dcb0ce..546eb8f 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/ActivityDetector.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/ActivityDetector.cs
@@ -29,13 +29,13 @@ namespace Tizen.Sensor
/// </summary>
public SensorDataAccuracy ActivityAccuracy { get; protected set; }
- protected abstract void SensorEventCallback(IntPtr sensorHandle, IntPtr sensorPtr, IntPtr data);
+ protected internal abstract void SensorEventCallback(IntPtr sensorHandle, IntPtr sensorPtr, IntPtr data);
internal ActivityDetector(uint index) : base(index)
{
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -45,7 +45,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/FaceDownGestureDetector.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/FaceDownGestureDetector.cs
index 4bfc32e..17b7c32 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/FaceDownGestureDetector.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/FaceDownGestureDetector.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// FaceDownGestureDetector Class. Used for registering callbacks for face down gesture detector and getting the face down state
/// </summary>
- public class FaceDownGestureDetector : Sensor
+ public sealed class FaceDownGestureDetector : Sensor
{
private static string GestureDetectorKey = "http://tizen.org/feature/sensor.gesture_recognition";
@@ -85,7 +85,7 @@ namespace Tizen.Sensor
/// </summary>
public event EventHandler<FaceDownGestureDetectorDataUpdatedEventArgs> DataUpdated;
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -95,7 +95,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/GravitySensor.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/GravitySensor.cs
index e7812c5..b081544 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/GravitySensor.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/GravitySensor.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// GravitySensor Class. Used for registering callbacks for gravity sensor and getting gravity data
/// </summary>
- public class GravitySensor : Sensor
+ public sealed class GravitySensor : Sensor
{
private const string GravitySensorKey = "http://tizen.org/feature/sensor.gravity";
@@ -120,7 +120,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -130,7 +130,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/Gyroscope.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/Gyroscope.cs
index 9d29073..50a8055 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/Gyroscope.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/Gyroscope.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// Gyroscope Sensor Class. Used for registering callbacks for gyroscope and getting gyroscope data
/// </summary>
- public class Gyroscope : Sensor
+ public sealed class Gyroscope : Sensor
{
private const string GyroscopeKey = "http://tizen.org/feature/sensor.gyroscope";
@@ -96,7 +96,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -106,7 +106,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/GyroscopeRotationVectorSensor.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/GyroscopeRotationVectorSensor.cs
index 5d948e1..d4a7918 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/GyroscopeRotationVectorSensor.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/GyroscopeRotationVectorSensor.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// GyroscopeRotationVectorSensor Class. Used for registering callbacks for gyroscope rotation vector sensor and getting gyroscope rotation vector data
/// </summary>
- public class GyroscopeRotationVectorSensor : Sensor
+ public sealed class GyroscopeRotationVectorSensor : Sensor
{
private const string GyroscopeRVKey = "http://tizen.org/feature/sensor.gyroscope_rotation_vector";
@@ -106,7 +106,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -116,7 +116,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/HeartRateMonitor.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/HeartRateMonitor.cs
index 3ec478d..7c98cc6 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/HeartRateMonitor.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/HeartRateMonitor.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// HeartRateMonitor Class. Used for registering callbacks for heart rate monitor and getting heart rate data
/// /// </summary>
- public class HeartRateMonitor : Sensor
+ public sealed class HeartRateMonitor : Sensor
{
private const string HRMKey = "http://tizen.org/feature/sensor.heart_rate_monitor";
@@ -90,7 +90,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -100,7 +100,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/HumiditySensor.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/HumiditySensor.cs
index 28e6fbc..f44fbd7 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/HumiditySensor.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/HumiditySensor.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// HumiditySensor Class. Used for registering callbacks for humidity sensor and getting humidity data
/// /// </summary>
- public class HumiditySensor : Sensor
+ public sealed class HumiditySensor : Sensor
{
private const string HumiditySensorKey = "http://tizen.org/feature/sensor.humidity";
@@ -86,7 +86,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -96,7 +96,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/InVehicleActivityDetector.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/InVehicleActivityDetector.cs
index 035b0c3..52bf473 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/InVehicleActivityDetector.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/InVehicleActivityDetector.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// InVehicleActivityDetector Class. Used for registering callbacks for in vehicle activity detector and getting the in vehicle state
/// </summary>
- public class InVehicleActivityDetector : ActivityDetector
+ public sealed class InVehicleActivityDetector : ActivityDetector
{
private const string ActivityDetectorKey = "http://tizen.org/feature/sensor.activity_recognition";
@@ -81,7 +81,7 @@ namespace Tizen.Sensor
/// </summary>
public event EventHandler<InVehicleActivityDetectorDataUpdatedEventArgs> DataUpdated;
- protected override void SensorEventCallback(IntPtr sensorHandle, IntPtr sensorPtr, IntPtr data)
+ protected internal override void SensorEventCallback(IntPtr sensorHandle, IntPtr sensorPtr, IntPtr data)
{
Interop.SensorEventStruct sensorData = Interop.IntPtrToEventStruct(sensorPtr);
TimeSpan = new TimeSpan((Int64)sensorData.timestamp);
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/LightSensor.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/LightSensor.cs
index 485ffa5..50ec06c 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/LightSensor.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/LightSensor.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// LightSensor Class. Used for registering callbacks for light sensor and getting light data
/// /// </summary>
- public class LightSensor : Sensor
+ public sealed class LightSensor : Sensor
{
private const string LightSensorKey = "http://tizen.org/feature/sensor.photometer";
@@ -86,7 +86,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -96,7 +96,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/LinearAccelerationSensor.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/LinearAccelerationSensor.cs
index 43a42ee..5850f75 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/LinearAccelerationSensor.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/LinearAccelerationSensor.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// LinearAccelerationSensor Class. Used for registering callbacks for linear acceleration sensor and getting linear acceleration data
/// /// </summary>
- public class LinearAccelerationSensor : Sensor
+ public sealed class LinearAccelerationSensor : Sensor
{
private const string LinearAccelerationSensorKey = "http://tizen.org/feature/sensor.linear_acceleration";
@@ -120,7 +120,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -130,7 +130,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/Magnetometer.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/Magnetometer.cs
index fffb672..2da9052 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/Magnetometer.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/Magnetometer.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// Magnetometer Class. Used for registering callbacks for magnetometer and getting magnetometer data
/// /// </summary>
- public class Magnetometer : Sensor
+ public sealed class Magnetometer : Sensor
{
private static string MagnetometerKey = "http://tizen.org/feature/sensor.magnetometer";
@@ -120,7 +120,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -130,7 +130,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/MagnetometerRotationVectorSensor.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/MagnetometerRotationVectorSensor.cs
index 948407e..bdbcc5c 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/MagnetometerRotationVectorSensor.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/MagnetometerRotationVectorSensor.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// MagnetometerRotationVectorSensor Class. Used for registering callbacks for magnetometer rotation vector sensor and getting magnetometer rotation vector data
/// /// </summary>
- public class MagnetometerRotationVectorSensor : Sensor
+ public sealed class MagnetometerRotationVectorSensor : Sensor
{
private static string MagnetometerRVKey = "http://tizen.org/feature/sensor.geomagnetic_rotation_vector";
@@ -142,7 +142,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -152,7 +152,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/OrientationSensor.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/OrientationSensor.cs
index fab0a0e..ef9fbf1 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/OrientationSensor.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/OrientationSensor.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// OrientationSensor Class. Used for registering callbacks for orientation sensor and getting orientation data
/// /// </summary>
- public class OrientationSensor : Sensor
+ public sealed class OrientationSensor : Sensor
{
private static string OrientationSensorKey = "http://tizen.org/feature/sensor.tiltmeter";
@@ -120,7 +120,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -130,7 +130,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/Pedometer.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/Pedometer.cs
index 911ec16..5b1f3d0 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/Pedometer.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/Pedometer.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// Pedometer Sensor Class. Used for registering callbacks for pedometer and getting pedometer data
/// /// </summary>
- public class Pedometer : Sensor
+ public sealed class Pedometer : Sensor
{
private static string PedometerKey = "http://tizen.org/feature/sensor.pedometer";
@@ -125,7 +125,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -135,7 +135,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/PickUpGestureDetector.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/PickUpGestureDetector.cs
index c140ebb..37aab50 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/PickUpGestureDetector.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/PickUpGestureDetector.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// PickUpGestureDetector Class. Used for registering callbacks for pick up activity detector and getting the pick up state
/// </summary>
- public class PickUpGestureDetector : Sensor
+ public sealed class PickUpGestureDetector : Sensor
{
private static string GestureDetectorKey = "http://tizen.org/feature/sensor.gesture_recognition";
@@ -97,7 +97,7 @@ namespace Tizen.Sensor
/// </summary>
public event EventHandler<PickUpGestureDetectorDataUpdatedEventArgs> DataUpdated;
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -107,7 +107,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/PressureSensor.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/PressureSensor.cs
index c23bc05..d666bf6 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/PressureSensor.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/PressureSensor.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// PressureSensor Class. Used for registering callbacks for pressure sensor and getting pressure data
/// /// </summary>
- public class PressureSensor : Sensor
+ public sealed class PressureSensor : Sensor
{
private static string PressureSensorKey = "http://tizen.org/feature/sensor.barometer";
@@ -87,7 +87,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -97,7 +97,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/ProximitySensor.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/ProximitySensor.cs
index d793ff1..32fdabc 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/ProximitySensor.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/ProximitySensor.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// ProximitySensor Class. Used for registering callbacks for proximity sensor and getting proximity data
/// /// </summary>
- public class ProximitySensor : Sensor
+ public sealed class ProximitySensor : Sensor
{
private static string ProximitySensorKey = "http://tizen.org/feature/sensor.proximity";
@@ -86,7 +86,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -96,7 +96,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/RotationVectorSensor.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/RotationVectorSensor.cs
index 43942e1..9fe46f3 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/RotationVectorSensor.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/RotationVectorSensor.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// RotationVectorSensor Class. Used for registering callbacks for rotation vector sensor and getting rotation vector data
/// /// </summary>
- public class RotationVectorSensor : Sensor
+ public sealed class RotationVectorSensor : Sensor
{
private static string RotationVectorKey = "http://tizen.org/feature/sensor.rotation_vector";
@@ -130,7 +130,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -140,7 +140,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/RunningActivityDetector.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/RunningActivityDetector.cs
index f1c0990..28ee4a1 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/RunningActivityDetector.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/RunningActivityDetector.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// RunningActivityDetector Class. Used for registering callbacks for running activity detector and getting the running state
/// </summary>
- public class RunningActivityDetector : ActivityDetector
+ public sealed class RunningActivityDetector : ActivityDetector
{
private static string ActivityDetectorKey = "http://tizen.org/feature/sensor.activity_recognition";
@@ -81,7 +81,7 @@ namespace Tizen.Sensor
/// </summary>
public event EventHandler<RunningActivityDetectorDataUpdatedEventArgs> DataUpdated;
- protected override void SensorEventCallback(IntPtr sensorHandle, IntPtr sensorPtr, IntPtr data)
+ protected internal override void SensorEventCallback(IntPtr sensorHandle, IntPtr sensorPtr, IntPtr data)
{
Interop.SensorEventStruct sensorData = Interop.IntPtrToEventStruct(sensorPtr);
TimeSpan = new TimeSpan((Int64)sensorData.timestamp);
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/SleepMonitor.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/SleepMonitor.cs
index dfd3ffa..0eaab30 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/SleepMonitor.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/SleepMonitor.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// SleepMonitor Class. Used for registering callbacks for sleep monitor and getting sleep data
/// /// </summary>
- public class SleepMonitor : Sensor
+ public sealed class SleepMonitor : Sensor
{
private static string SleepMonitorKey = "http://tizen.org/feature/sensor.sleep_monitor";
@@ -91,7 +91,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -101,7 +101,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/StationaryActivityDetector.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/StationaryActivityDetector.cs
index 39504bb..b31661d 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/StationaryActivityDetector.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/StationaryActivityDetector.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// StationaryActivityDetector Class. Used for registering callbacks for stationary activity detector and getting the stationary state
/// </summary>
- public class StationaryActivityDetector : ActivityDetector
+ public sealed class StationaryActivityDetector : ActivityDetector
{
private static string ActivityDetectorKey = "http://tizen.org/feature/sensor.activity_recognition";
@@ -81,7 +81,7 @@ namespace Tizen.Sensor
/// </summary>
public event EventHandler<StationaryActivityDetectorDataUpdatedEventArgs> DataUpdated;
- protected override void SensorEventCallback(IntPtr sensorHandle, IntPtr sensorPtr, IntPtr data)
+ protected internal override void SensorEventCallback(IntPtr sensorHandle, IntPtr sensorPtr, IntPtr data)
{
Interop.SensorEventStruct sensorData = Interop.IntPtrToEventStruct(sensorPtr);
TimeSpan = new TimeSpan((Int64)sensorData.timestamp);
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/TemperatureSensor.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/TemperatureSensor.cs
index 68a7ebd..85c0c25 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/TemperatureSensor.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/TemperatureSensor.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// TemperatureSensor Class. Used for registering callbacks for temperature sensor and getting temperature data
/// /// </summary>
- public class TemperatureSensor : Sensor
+ public sealed class TemperatureSensor : Sensor
{
private static string TemperatureSensorKey = "http://tizen.org/feature/sensor.temperature";
@@ -87,7 +87,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -97,7 +97,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/UltravioletSensor.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/UltravioletSensor.cs
index 6009d90..05c2866 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/UltravioletSensor.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/UltravioletSensor.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// UltravioletSensor Class. Used for registering callbacks for ultraviolet sensor and getting ultraviolet data
/// /// </summary>
- public class UltravioletSensor : Sensor
+ public sealed class UltravioletSensor : Sensor
{
private static string UltravioletSensorKey = "http://tizen.org/feature/sensor.ultraviolet";
@@ -87,7 +87,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -97,7 +97,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedGyroscope.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedGyroscope.cs
index 04c368a..76d71b9 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedGyroscope.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedGyroscope.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// UncalibratedGyroscope Sensor Class. Used for registering callbacks for uncalibrated gyroscope and getting uncalibrated gyroscope data
/// /// </summary>
- public class UncalibratedGyroscope : Sensor
+ public sealed class UncalibratedGyroscope : Sensor
{
private static string UncalibratedGyroscopeKey = "http://tizen.org/feature/sensor.gyroscope.uncalibrated";
@@ -111,7 +111,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -121,7 +121,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedMagnetometer.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedMagnetometer.cs
index 7da8d5f..6697b0c 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedMagnetometer.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedMagnetometer.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// UncalibratedMagnetometer Sensor Class. Used for registering callbacks for uncalibrated magnetometer and getting uncalibrated magnetometer data
/// /// </summary>
- public class UncalibratedMagnetometer : Sensor
+ public sealed class UncalibratedMagnetometer : Sensor
{
private static string UncalibratedMagnetometerKey = "http://tizen.org/feature/sensor.magnetometer.uncalibrated";
@@ -135,7 +135,7 @@ namespace Tizen.Sensor
return count;
}
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -145,7 +145,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/WalkingActivityDetector.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/WalkingActivityDetector.cs
index d82fc78..da7d101 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/WalkingActivityDetector.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/WalkingActivityDetector.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// WalkingActivityDetector Class. Used for registering callbacks for walking activity detector and getting the walking state
/// </summary>
- public class WalkingActivityDetector : ActivityDetector
+ public sealed class WalkingActivityDetector : ActivityDetector
{
private static string ActivityDetectorKey = "http://tizen.org/feature/sensor.activity_recognition";
@@ -81,7 +81,7 @@ namespace Tizen.Sensor
/// </summary>
public event EventHandler<WalkingActivityDetectorDataUpdatedEventArgs> DataUpdated;
- protected override void SensorEventCallback(IntPtr sensorHandle, IntPtr sensorPtr, IntPtr data)
+ protected internal override void SensorEventCallback(IntPtr sensorHandle, IntPtr sensorPtr, IntPtr data)
{
Interop.SensorEventStruct sensorData = Interop.IntPtrToEventStruct(sensorPtr);
TimeSpan = new TimeSpan((Int64)sensorData.timestamp);
diff --git a/Tizen.Sensor/Tizen.Sensor/Plugins/WristUpGestureDetector.cs b/Tizen.Sensor/Tizen.Sensor/Plugins/WristUpGestureDetector.cs
index aa51a6c..9f0734e 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Plugins/WristUpGestureDetector.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Plugins/WristUpGestureDetector.cs
@@ -13,7 +13,7 @@ namespace Tizen.Sensor
/// <summary>
/// WristUpGestureDetector Class. Used for registering callbacks for wrist up gesture detector and getting the wrist up state
/// </summary>
- public class WristUpGestureDetector : Sensor
+ public sealed class WristUpGestureDetector : Sensor
{
private static string WristUpKey = "http://tizen.org/feature/sensor.wrist_up";
@@ -85,7 +85,7 @@ namespace Tizen.Sensor
/// </summary>
public event EventHandler<WristUpGestureDetectorDataUpdatedEventArgs> DataUpdated;
- protected override void EventListenStart()
+ protected internal override void EventListenStart()
{
int error = Interop.SensorListener.SetEventCallback(ListenerHandle, Interval, SensorEventCallback, IntPtr.Zero);
if (error != (int)SensorError.None)
@@ -95,7 +95,7 @@ namespace Tizen.Sensor
}
}
- protected override void EventListenStop()
+ protected internal override void EventListenStop()
{
int error = Interop.SensorListener.UnsetEventCallback(ListenerHandle);
if (error != (int)SensorError.None)
diff --git a/Tizen.Sensor/Tizen.Sensor/Sensor.cs b/Tizen.Sensor/Tizen.Sensor/Sensor.cs
index 9bec4f2..041d581 100644..100755
--- a/Tizen.Sensor/Tizen.Sensor/Sensor.cs
+++ b/Tizen.Sensor/Tizen.Sensor/Sensor.cs
@@ -39,8 +39,8 @@ namespace Tizen.Sensor
private IntPtr _listenerHandle = IntPtr.Zero;
internal abstract SensorType GetSensorType();
- protected abstract void EventListenStart();
- protected abstract void EventListenStop();
+ protected internal abstract void EventListenStart();
+ protected internal abstract void EventListenStop();
internal Sensor(uint index)
{