<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<GenerateDependencyFile>False</GenerateDependencyFile>
- <NoWarn>$(NoWarn);1570;1591</NoWarn>
+ <NoWarn>$(NoWarn);1570;1587;1591</NoWarn>
</PropertyGroup>
<PropertyGroup>
+++ /dev/null
-<Project>
-
-</Project>
\ No newline at end of file
Name: csapi-tizenfx
Summary: Assemblies of Tizen .NET
-Version: 4.0.0.145
+Version: 4.0.0.147
Release: 1
Group: Development/Libraries
License: Apache-2.0
--- /dev/null
+<Project>
+
+ <Import Project="$(MSBuildThisFileDirectory)..\build\common.props" />
+
+</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\ElmSharp\ElmSharp.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
}
/// <summary>
- /// Set the icon to null
+ /// Creates and initializes a new instance of MoreOptionItem class.
/// </summary>
public MoreOptionItem()
{
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
</PropertyGroup>
- <Import Project="../../build/common.targets" />
</Project>
/// Populates source and destination map points to exactly match the object.
/// </summary>
/// <param name="obj">The object to use unmapped geometry to populate map coordinates</param>
+ public void PopulatePoints(EvasObject obj)
+ {
+ Interop.Evas.evas_map_util_points_populate_from_object_full(_evasMap, obj, 0);
+ }
+
+ /// <summary>
+ /// Populates source and destination map points to exactly match the object.
+ /// </summary>
+ /// <param name="obj">The object to use unmapped geometry to populate map coordinates</param>
/// <param name="z">
/// The point Z coordinate hint (pre-perspective transform)This value is used for all four points.
/// </param>
}
/// <summary>
+ /// Rotate the map
+ /// </summary>
+ /// <param name="degrees">The abount of degrees from 0.0 to 360.0 to rotate</param>
+ /// <param name="cx">rotation's center horizontal position.</param>
+ /// <param name="cy">rotation's center vertical position.</param>
+ public void Rotate(double degrees, int cx, int cy)
+ {
+ Interop.Evas.evas_map_util_rotate(_evasMap, degrees, cx, cy);
+ }
+
+ /// <summary>
/// Rotates the map around 3 axes in 3D.
/// </summary>
/// <param name="dx">The amount of degrees from 0.0 to 360.0 to rotate around X axis</param>
protected set
{
_realHandle = value;
+ Interop.Evas.evas_object_show(_realHandle);
}
}
remove
{
_renderPost -= value;
- if (_renderPost?.GetInvocationList().Length == 0)
+ if (_renderPost == null)
{
Interop.Evas.evas_event_callback_del(Interop.Evas.evas_object_evas_get(RealHandle), Interop.Evas.ObjectCallbackType.RenderPost, _renderPostCallback);
_renderPostCallback = null;
{
get
{
- return Interop.Evas.evas_object_repeat_events_get(RealHandle);
+ var result = Interop.Evas.evas_object_repeat_events_get(Handle);
+ Debug.Assert(Handle == RealHandle || result == Interop.Evas.evas_object_repeat_events_get(RealHandle));
+ return result;
}
set
{
- Interop.Evas.evas_object_repeat_events_set(RealHandle, value);
+ if (Handle != RealHandle)
+ {
+ Interop.Evas.evas_object_repeat_events_set(RealHandle, value);
+ }
+ Interop.Evas.evas_object_repeat_events_set(Handle, value);
}
}
{
get
{
- return Interop.Evas.evas_object_propagate_events_get(RealHandle);
+ var result = Interop.Evas.evas_object_propagate_events_get(Handle);
+ Debug.Assert(Handle == RealHandle || result == Interop.Evas.evas_object_propagate_events_get(RealHandle));
+ return result;
}
set
{
- Interop.Evas.evas_object_propagate_events_set(RealHandle, value);
+ if (Handle != RealHandle)
+ {
+ Interop.Evas.evas_object_propagate_events_set(RealHandle, value);
+ }
+ Interop.Evas.evas_object_propagate_events_set(Handle, value);
}
}
{
get
{
- return Interop.Evas.evas_object_pass_events_get(RealHandle);
+ var result = Interop.Evas.evas_object_pass_events_get(Handle);
+ Debug.Assert(Handle == RealHandle || result == Interop.Evas.evas_object_pass_events_get(RealHandle));
+ return result;
}
set
{
- Interop.Evas.evas_object_pass_events_set(RealHandle, value);
+ if (Handle != RealHandle)
+ {
+ Interop.Evas.evas_object_pass_events_set(RealHandle, value);
+ }
+ Interop.Evas.evas_object_pass_events_set(Handle, value);
}
}
{
get
{
- return Interop.Evas.evas_object_freeze_events_get(RealHandle);
+ var result = Interop.Evas.evas_object_freeze_events_get(Handle);
+ Debug.Assert(Handle == RealHandle || result == Interop.Evas.evas_object_freeze_events_get(RealHandle));
+ return result;
}
set
{
- Interop.Evas.evas_object_freeze_events_set(RealHandle, value);
+ if (Handle != RealHandle)
+ {
+ Interop.Evas.evas_object_freeze_events_set(RealHandle, value);
+ }
+ Interop.Evas.evas_object_freeze_events_set(Handle, value);
}
}
_eventStore.Add(item);
}
}
-}
\ No newline at end of file
+}
internal static extern void evas_map_util_points_populate_from_geometry(IntPtr map, int x, int y, int w, int h, int z);
[DllImport(Libraries.Evas)]
+ internal static extern void evas_map_util_rotate(IntPtr map, double degree, int cx, int cy);
+
+ [DllImport(Libraries.Evas)]
internal static extern void evas_map_util_3d_rotate(IntPtr map, double dx, double dy, double dz, int cx, int cy, int cz);
[DllImport(Libraries.Evas)]
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Applications.Notification\Tizen.Applications.Notification.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<PackageReference Include="System.Threading.Thread" Version="$(SystemPackageVersion)" PrivateAssets="All" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\ElmSharp\ElmSharp.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\ElmSharp\ElmSharp.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\ElmSharp\ElmSharp.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Applications.Common\Tizen.Applications.Common.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.System.Information\Tizen.System.Information.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
</PropertyGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
</None>
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Multimedia\Tizen.Multimedia.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Multimedia\Tizen.Multimedia.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Multimedia\Tizen.Multimedia.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Multimedia\Tizen.Multimedia.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Multimedia\Tizen.Multimedia.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.System.Information\Tizen.System.Information.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Multimedia.Camera\Tizen.Multimedia.Camera.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Multimedia\Tizen.Multimedia.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Multimedia.Recorder\Tizen.Multimedia.Recorder.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Multimedia\Tizen.Multimedia.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Multimedia\Tizen.Multimedia.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.System.Information\Tizen.System.Information.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
</ItemGroup>
</Target>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.System.Information\Tizen.System.Information.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.System.Information\Tizen.System.Information.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Network.Connection\Tizen.Network.Connection.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<PackageReference Include="System.Threading.Thread" Version="$(SystemPackageVersion)" PrivateAssets="All" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
using System.Runtime.InteropServices;
using System.Diagnostics.CodeAnalysis;
-/// <summary>
-/// The Calendar Service API provides functions, enumerations used in the entire Content Service.
-/// </summary>
-/// <remarks>
-/// The Calendar Service API provides functions and ienumerations used in the entire Content Service.
-/// The Information about calendar items i.e. book, event, todo, alarm, attendee and extended are managed in the database
-/// and operations that involve database requires an active connection with the calendar service.
-/// </remarks>
-
namespace Tizen.Pims.Calendar
{
/// <summary>
+ /// Delegate for detecting the calendar database changes.
+ /// </summary>
+ /// <param name="uri">The record uri</param>
+ /// <remarks>
+ /// The delegate must be registered using AddDBChangedDelegate.
+ /// It's invoked when the designated view changes.
+ /// </remarks>
+ public delegate void CalendarDBChanged(string uri);
+
+ /// <summary>
/// CalendarDatabase provides methods to manage calendar information from/to the database.
/// </summary>
/// <remarks>
/// </remarks>
public class CalendarDatabase
{
- /// <summary>
- /// Delegete for detecting the calendar database changes.
- /// </summary>
- /// <param name="uri">The record uri</param>
- /// <remarks>
- /// The delegate must be registered using AddDBChangedDelegate.
- /// It's invoked when the designated view changes.
- /// </remarks>
- public delegate void CalendarDBChanged(string uri);
-
private Object thisLock = new Object();
private Dictionary<string, CalendarDBChanged> _callbackMap = new Dictionary<string, CalendarDBChanged>();
private Dictionary<string, Interop.Database.DBChangedCallback> _delegateMap = new Dictionary<string, Interop.Database.DBChangedCallback>();
/// <param name="viewUri">The view URI to get records from</param>
/// <param name="BookId">The calendar book ID to filter</param>
/// <param name="calendarDBVersion">The calendar database version</param>
- /// <param name="currentDBVersion"The current calendar database versio></param>
+ /// <param name="currentDBVersion">The current calendar database versio></param>
/// <returns>
/// The record list
/// </returns>
Log.Error(Globals.LogTag, "AddDBChangedDelegate Failed with error " + error);
throw CalendarErrorFactory.GetException(error);
}
- _callbackMap[viewUri] = callback;
+ _callbackMap[viewUri] += callback;
_delegateMap[viewUri] = _dbChangedDelegate;
}
Log.Error(Globals.LogTag, "RemoveDBChangedDelegate Failed with error " + error);
throw CalendarErrorFactory.GetException(error);
}
- _callbackMap.Remove(viewUri);
+ _callbackMap[viewUri] -= callback;
_delegateMap.Remove(viewUri);
}
/// <summary>
/// Dispose
/// </summary>
+ /// <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param>
protected virtual void Dispose(bool disposing)
{
if (!disposedValue)
}
/// <summary>
- /// Destory CalendarList resource.
+ /// Destroy CalendarList resource.
/// </summary>
~CalendarList()
{
*/
using System;
-using System.Diagnostics.CodeAnalysis;
namespace Tizen.Pims.Calendar
{
}
/// <summary>
- /// Destory CalendarManager resource.
+ /// Destroy CalendarManager resource.
/// </summary>
~CalendarManager()
{
public void Dispose()
{
Dispose(true);
+ GC.SuppressFinalize(this);
}
#endregion
if (CalendarError.None != (CalendarError)error)
{
Log.Error(Globals.LogTag, "Add reminder Failed with error " + error);
- throw CalendarErrorFactory.GetException(error);
}
}
s_reminderAlerted += value;
if (CalendarError.None != (CalendarError)error)
{
Log.Error(Globals.LogTag, "Remove reminder Failed with error " + error);
- throw CalendarErrorFactory.GetException(error);
}
}
}
/// <summary>
/// Get localTime
/// </summary>
- /// <value>The localtime</value>
+ /// <value>The Localtime</value>
public DateTime LocalTime
{
get;
return LocalTime.CompareTo(other.LocalTime);
}
- public bool Equals(CalendarTime other)
+ /// <summary>
+ /// Equals CalendarTime
+ /// </summary>
+ /// <param name="other">The CalendarTime to be compared</param>
+ /// <returns>
+ /// A 32-bit signed integer that indicates the relative order of the objects being compared.
+ /// </returns>
+ /// <exception cref="ArgumentException">Thrown when one of the arguments provided to a method is not valid</exception>
+ /// <exception cref="OutOfMemoryException">Thrown when failed due to out of memory</exception>
+ public override bool Equals(object obj)
{
+ var other = obj as CalendarTime;
if (_type != other._type)
{
Log.Error(Globals.LogTag, "Not to compare with different type");
namespace Tizen.Pims.Calendar
{
/// <summary>
- /// This class provides enumurations about calendar inforamtion.
+ /// This class provides enumurations about calendar information.
/// </summary>
/// <remarks>
- /// Most enumurations are based on vcalendar, icalendar(ver 2.0) specification.
+ /// Most enumerations are based on vcalendar, icalendar(ver 2.0) specification.
/// https://www.ietf.org/rfc/rfc2445.txt
/// </remarks>
public static class CalendarTypes
/// </summary>
Gregorian,
/// <summary>
- /// East asian lunisolar calendar
+ /// East Asian lunisolar calendar
/// </summary>
Lunisolar,
}
/// Parsing vcalendar file callback function.
/// </summary>
/// <param name="record">The record</param>
+ /// <returns></returns>
public delegate bool ParseCallback(CalendarRecord record);
/// <summary>
}
/// <summary>
- /// Parse vcalendar file with foreach
+ /// Parse vcalendar file with ForEach
/// </summary>
/// <param name="path">The file path of the vCalendar stream file</param>
/// <param name="callback">he callback function to invoke</param>
error = Interop.Vcalendar.ParseForEach(path, cb, IntPtr.Zero);
if (CalendarError.None != (CalendarError)error)
{
- Log.Error(Globals.LogTag, "Parse foreach Vcalendar Failed [" + error + "]");
+ Log.Error(Globals.LogTag, "Parse ForEach Vcalendar Failed [" + error + "]");
throw CalendarErrorFactory.GetException(error);
}
}
internal enum Id : uint
{
+ None,
+
/// book
BookId = (Book|DataTypeInteger|PropertyReadOnly),
BookUid = (Book|DataTypeString) + 1,
}
/// <summary>
- /// Describes properies of a Book record.
+ /// Describes properties of a Book record.
/// </summary>
public static class Book
{
}
/// <summary>
- /// Describes properies of a Event record.
+ /// Describes properties of a Event record.
/// </summary>
+ [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords")]
public static class Event
{
/// <summary>
}
/// <summary>
- /// Describes properies of a Todo record.
+ /// Describes properties of a Todo record.
/// </summary>
public static class Todo
{
}
/// <summary>
- /// Describes properies of a Timezone record.
+ /// Describes properties of a Timezone record.
/// </summary>
public static class Timezone
{
}
/// <summary>
- /// Describes properies of a Attendee record.
+ /// Describes properties of a Attendee record.
/// </summary>
public static class Attendee
{
}
/// <summary>
- /// Describes properies of a Alarm record.
+ /// Describes properties of a Alarm record.
/// </summary>
public static class Alarm
{
}
/// <summary>
- /// Describes properies of a InstanceUtimeBook record.
+ /// Describes properties of a InstanceUtimeBook record.
/// </summary>
/// <remarks>Read only view</remarks>
public static class InstanceUtimeBook
}
/// <summary>
- /// Describes properies of a InstanceLocaltimeBook record.
+ /// Describes properties of a InstanceLocaltimeBook record.
/// </summary>
/// <remarks>Read only view</remarks>
public static class InstanceLocaltimeBook
}
/// <summary>
- /// Describes properies of a InstanceUtimeBookExtended record.
+ /// Describes properties of a InstanceUtimeBookExtended record.
/// </summary>
/// <remarks>Read only view</remarks>
public static class InstanceUtimeBookExtended
}
/// <summary>
- /// Describes properies of a InstanceLocaltimeBookExtended record.
+ /// Describes properties of a InstanceLocaltimeBookExtended record.
/// </summary>
/// <remarks>Read only view</remarks>
public static class InstanceLocaltimeBookExtended
}
/// <summary>
- /// Describes properies of a UpdatedInfo record.
+ /// Describes properties of a UpdatedInfo record.
/// </summary>
/// <remarks>Read only view</remarks>
public static class UpdatedInfo
}
/// <summary>
- /// Describes properies of a Extended record.
+ /// Describes properties of a Extended record.
/// </summary>
public static class Extended
{
*/
using System;
-using System.Collections.Generic;
namespace Tizen.Pims.Calendar
{
}
/// <summary>
- /// The paramter which data is combinded(Value string like id=value&time=value&tick=value&unit=value&type=value)
+ /// The parameter which data is combinded.
/// </summary>
+ /// <value>
+ /// The combination of reminder data(Value string like id=value&time=value&tick=value&unit=value&type=value)
+ /// </value>
public string Param
{
get;
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
error = Interop.Filter.ContactsFilterAddStr(_filterHandle, propertyId, matchType, matchValue);
if ((int)ContactsError.None != error)
{
+ Interop.Filter.ContactsFilterDestroy(_filterHandle);
Log.Error(Globals.LogTag, "ContactsFilter Failed with error " + error);
throw ContactsErrorFactory.CheckAndCreateException(error);
}
error = Interop.Filter.ContactsFilterAddInt(_filterHandle, propertyId, matchType, matchValue);
if ((int)ContactsError.None != error)
{
+ Interop.Filter.ContactsFilterDestroy(_filterHandle);
Log.Error(Globals.LogTag, "ContactsFilter Failed with error " + error);
throw ContactsErrorFactory.CheckAndCreateException(error);
}
error = Interop.Filter.ContactsFilterAddLli(_filterHandle, propertyId, matchType, matchValue);
if ((int)ContactsError.None != error)
{
+ Interop.Filter.ContactsFilterDestroy(_filterHandle);
Log.Error(Globals.LogTag, "ContactsFilter Failed with error " + error);
throw ContactsErrorFactory.CheckAndCreateException(error);
}
error = Interop.Filter.ContactsFilterAddDouble(_filterHandle, propertyId, matchType, matchValue);
if ((int)ContactsError.None != error)
{
+ Interop.Filter.ContactsFilterDestroy(_filterHandle);
Log.Error(Globals.LogTag, "ContactsFilter Failed with error " + error);
throw ContactsErrorFactory.CheckAndCreateException(error);
}
error = Interop.Filter.ContactsFilterAddBool(_filterHandle, propertyId, matchValue);
if ((int)ContactsError.None != error)
{
+ Interop.Filter.ContactsFilterDestroy(_filterHandle);
Log.Error(Globals.LogTag, "ContactsFilter Failed with error " + error);
throw ContactsErrorFactory.CheckAndCreateException(error);
}
/// <exception cref="ArgumentException">Thrown when one of the arguments provided to a method is not valid</exception>
public void SetProjection(uint[] propertyIdArray)
{
+ if (propertyIdArray == null)
+ {
+ throw new ArgumentException("Invalid Parameters Provided");
+ }
+
int error = Interop.Query.ContactsQuerySetProjection(_queryHandle, propertyIdArray, propertyIdArray.Length);
if ((int)ContactsError.None != error)
{
/// Sets the "distinct" option for projection.
/// </summary>
/// <param name="set">If true it is set, otherwise if false it is unset</param>
- /// <exception cref="ArgumentException">Thrown when one of the arguments provided to a method is not valid</exception>
public void SetDistinct(bool set)
{
int error = Interop.Query.ContactsQuerySetDistinct(_queryHandle, set);
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Applications.PackageManager\Tizen.Applications.PackageManager.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.System.Information\Tizen.System.Information.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\ElmSharp\ElmSharp.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<ProjectReference Include="..\ElmSharp\ElmSharp.csproj" />
</ItemGroup>
- <Import Project="../../build/common.targets" />
</Project>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
</PropertyGroup>
- <Import Project="../../build/common.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">
- <Import Project="../../build/common.props" />
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
</PropertyGroup>
-
- <Import Project="../../build/common.targets" />
</Project>