Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
-VisualStudioVersion = 15.0.26430.12
+VisualStudioVersion = 15.0.26730.10
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Applications.WatchApplication", "Tizen.Applications.WatchApplication.csproj", "{8BF860DC-DCBC-4889-938F-7515C5282D95}"
EndProject
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ElmSharp", "..\ElmSharp\ElmSharp.csproj", "{66EC3D92-AD41-4906-A1A9-3C414B2107F5}"
EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.System.Information", "..\Tizen.System.Information\Tizen.System.Information.csproj", "{F3138394-755D-4055-9561-999823C76BD2}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
{66EC3D92-AD41-4906-A1A9-3C414B2107F5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{66EC3D92-AD41-4906-A1A9-3C414B2107F5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{66EC3D92-AD41-4906-A1A9-3C414B2107F5}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F3138394-755D-4055-9561-999823C76BD2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F3138394-755D-4055-9561-999823C76BD2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F3138394-755D-4055-9561-999823C76BD2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F3138394-755D-4055-9561-999823C76BD2}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {C24ED662-71DD-4A20-8F6E-C0A16FC8DE1C}
+ EndGlobalSection
EndGlobal
/// Gets the current time
/// </summary>
/// <returns>WatchTime</returns>
+ /// <feature>http://tizen.org/feature/watch_app</feature>
/// <exception cref="InvalidOperationException">Thrown when failed to get current time because of invalid parameter.</exception>
/// <exception cref="OutOfMemoryException">Thrown when failed to get current time because memory is not enough.</exception>
+ /// <exception cref="NotSupportedException">Thrown when the method is not supported.</exception>
/// <example>
/// <code>
/// class MyApp : WatchApplication
throw new InvalidOperationException("Failed to get current time. err : " + err);
else if (err == Interop.Watch.ErrorCode.OutOfMemory)
throw new OutOfMemoryException("Failed to get current time. err : " + err);
+ else if (err == Interop.Watch.ErrorCode.NotSupported)
+ throw new NotSupportedException("Failed to get current time. err : " + err);
}
return new WatchTime(handle);
}
/// Gets the type of periodic ambient tick.
/// </summary>
/// <returns>AmbientTickType</returns>
+ /// <feature>http://tizen.org/feature/watch_app</feature>
/// <exception cref="InvalidOperationException">Thrown when failed to get ambient tick type.</exception>
+ /// <exception cref="NotSupportedException">Thrown when the method is not supported.</exception>
/// <example>
/// <code>
/// class MyApp : WatchApplication
if(err != Interop.Watch.ErrorCode.None)
{
- throw new InvalidOperationException("Failed to get ambient tick type. err : " + err);
+ if (err == Interop.Watch.ErrorCode.NotSupported)
+ throw new NotSupportedException("Failed to get ambient tick type. err : " + err);
+ else
+ throw new InvalidOperationException("Failed to get ambient tick type. err : " + err);
}
return ambientTickType;
/// If SetAmbientTickType is not called, OnAmbientTick will be called every minute.
/// </summary>
/// <param name="ambientTickType">the type of ambient tick</param>
+ /// <feature>http://tizen.org/feature/watch_app</feature>
/// <exception cref="InvalidOperationException">Thrown when failed to set ambient tick type.</exception>
+ /// <exception cref="NotSupportedException">Thrown when the method is not supported.</exception>
/// <example>
/// <code>
/// class MyApp : WatchApplication
if(err != Interop.Watch.ErrorCode.None)
{
- throw new InvalidOperationException("Failed to set ambient tick type. err : " + err);
+ if (err == Interop.Watch.ErrorCode.NotSupported)
+ throw new NotSupportedException("Failed to set ambient tick type. err : " + err);
+ else
+ throw new InvalidOperationException("Failed to set ambient tick type. err : " + err);
}
}
/// </summary>
/// <param name="ticks">Ticks the number of ticks per given resolution type</param>
/// <param name="type">Type of the resolution type</param>
+ /// <feature>http://tizen.org/feature/watch_app</feature>
/// <exception cref="InvalidOperationException">Thrown when failed to set time tick frequency.</exception>
+ /// <exception cref="NotSupportedException">Thrown when the method is not supported.</exception>
/// <example>
/// <code>
/// class MyApp : WatchApplication
if (err != Interop.Watch.ErrorCode.None)
{
- throw new InvalidOperationException("Failed to set time tick frequency. err : " + err);
+ if (err == Interop.Watch.ErrorCode.NotSupported)
+ throw new NotSupportedException("Failed to set time tick frequency. err : " + err);
+ else
+ throw new InvalidOperationException("Failed to set time tick frequency. err : " + err);
}
}
/// </summary>
/// <param name="ticks">Ticks the number of ticks per given resolution type</param>
/// <param name="type">Type of the resolution type</param>
+ /// <feature>http://tizen.org/feature/watch_app</feature>
/// <exception cref="InvalidOperationException">Thrown when failed to get time tick frequency.</exception>
+ /// <exception cref="NotSupportedException">Thrown when the method is not supported.</exception>
/// <example>
/// <code>
/// class MyApp : WatchApplication
if (err != Interop.Watch.ErrorCode.None)
{
- throw new InvalidOperationException("Failed to get time tick frequency. err : " + err);
+ if (err == Interop.Watch.ErrorCode.NotSupported)
+ throw new NotSupportedException("Failed to get time tick frequency. err : " + err);
+ else
+ throw new InvalidOperationException("Failed to get time tick frequency. err : " + err);
}
}
}
/// <summary>
/// The information of year
/// </summary>
+ /// <feature>http://tizen.org/feature/watch_app</feature>
+ /// <exception cref="NotSupportedException">Thrown when the property is not supported.</exception>
public int Year
{
get
if (err != Interop.Watch.ErrorCode.None)
{
- Log.Error(LOGTAG, "Failed to get Year err : " + err);
+ if (err == Interop.Watch.ErrorCode.NotSupported)
+ throw new NotSupportedException("Failed to get Year. err : " + err);
+ else
+ Log.Error(LOGTAG, "Failed to get Year err : " + err);
}
return year;
}
/// <summary>
/// The information fo month
/// </summary>
+ /// <feature>http://tizen.org/feature/watch_app</feature>
+ /// <exception cref="NotSupportedException">Thrown when the property is not supported.</exception>
public int Month
{
get
if (err != Interop.Watch.ErrorCode.None)
{
- Log.Error(LOGTAG, "Failed to get Month err : " + err);
+ if (err == Interop.Watch.ErrorCode.NotSupported)
+ throw new NotSupportedException("Failed to get Month. err : " + err);
+ else
+ Log.Error(LOGTAG, "Failed to get Month err : " + err);
}
return month;
}
/// <summary>
/// The information of day
/// </summary>
+ /// <feature>http://tizen.org/feature/watch_app</feature>
+ /// <exception cref="NotSupportedException">Thrown when the property is not supported.</exception>
public int Day
{
get
if (err != Interop.Watch.ErrorCode.None)
{
- Log.Error(LOGTAG, "Failed to get Day err : " + err);
+ if (err == Interop.Watch.ErrorCode.NotSupported)
+ throw new NotSupportedException("Failed to get Day. err : " + err);
+ else
+ Log.Error(LOGTAG, "Failed to get Day err : " + err);
}
return day;
}
/// <summary>
/// The information of day of week
/// </summary>
+ /// <feature>http://tizen.org/feature/watch_app</feature>
+ /// <exception cref="NotSupportedException">Thrown when the property is not supported.</exception>
public int DayOfWeek
{
get
if (err != Interop.Watch.ErrorCode.None)
{
- Log.Error(LOGTAG, "Failed to get Second err : " + err);
+ if (err == Interop.Watch.ErrorCode.NotSupported)
+ throw new NotSupportedException("Failed to get DayOfWeek. err : " + err);
+ else
+ Log.Error(LOGTAG, "Failed to get DayOfWeek err : " + err);
}
return dayOfWeek;
}
/// <summary>
/// The information of hour
/// </summary>
+ /// <feature>http://tizen.org/feature/watch_app</feature>
+ /// <exception cref="NotSupportedException">Thrown when the property is not supported.</exception>
public int Hour
{
get
if (err != Interop.Watch.ErrorCode.None)
{
- Log.Error(LOGTAG, "Failed to get Hour err : " + err);
+ if (err == Interop.Watch.ErrorCode.NotSupported)
+ throw new NotSupportedException("Failed to get Hour. err : " + err);
+ else
+ Log.Error(LOGTAG, "Failed to get Hour err : " + err);
}
return hour;
}
/// <summary>
/// The information of hour for 24 hour form
/// </summary>
+ /// <feature>http://tizen.org/feature/watch_app</feature>
+ /// <exception cref="NotSupportedException">Thrown when the property is not supported.</exception>
public int Hour24
{
get
if (err != Interop.Watch.ErrorCode.None)
{
- Log.Error(LOGTAG, "Failed to get Hour24 err : " + err);
+ if (err == Interop.Watch.ErrorCode.NotSupported)
+ throw new NotSupportedException("Failed to get Hour24. err : " + err);
+ else
+ Log.Error(LOGTAG, "Failed to get Hour24 err : " + err);
}
return hour24;
}
/// <summary>
/// The information of Minute
/// </summary>
+ /// <feature>http://tizen.org/feature/watch_app</feature>
+ /// <exception cref="NotSupportedException">Thrown when the property is not supported.</exception>
public int Minute
{
get
if (err != Interop.Watch.ErrorCode.None)
{
- Log.Error(LOGTAG, "Failed to get Minute err : " + err);
+ if (err == Interop.Watch.ErrorCode.NotSupported)
+ throw new NotSupportedException("Failed to get Minute. err : " + err);
+ else
+ Log.Error(LOGTAG, "Failed to get Minute err : " + err);
}
return minute;
}
/// <summary>
/// The information of second
/// </summary>
+ /// <feature>http://tizen.org/feature/watch_app</feature>
+ /// <exception cref="NotSupportedException">Thrown when the property is not supported.</exception>
public int Second
{
get
if (err != Interop.Watch.ErrorCode.None)
{
- Log.Error(LOGTAG, "Failed to get Second err : " + err);
+ if (err == Interop.Watch.ErrorCode.NotSupported)
+ throw new NotSupportedException("Failed to get Second. err : " + err);
+ else
+ Log.Error(LOGTAG, "Failed to get Second err : " + err);
}
return second;
}
/// <summary>
/// The information of millisecond
/// </summary>
+ /// <feature>http://tizen.org/feature/watch_app</feature>
+ /// <exception cref="NotSupportedException">Thrown when the property is not supported.</exception>
public int Millisecond
{
get
if (err != Interop.Watch.ErrorCode.None)
{
- Log.Error(LOGTAG, "Failed to get Second err : " + err);
+ if (err == Interop.Watch.ErrorCode.NotSupported)
+ throw new NotSupportedException("Failed to get Millisecond. err : " + err);
+ else
+ Log.Error(LOGTAG, "Failed to get Millisecond err : " + err);
}
return ms;
}
/// <summary>
/// The information of timezone
/// </summary>
+ /// <feature>http://tizen.org/feature/watch_app</feature>
+ /// <exception cref="NotSupportedException">Thrown when the property is not supported.</exception>
public string TimeZone
{
get
if (err != Interop.Watch.ErrorCode.None)
{
- Log.Error(LOGTAG, "Failed to get Second err : " + err);
+ if (err == Interop.Watch.ErrorCode.NotSupported)
+ throw new NotSupportedException("Failed to get TimeZone. err : " + err);
+ else
+ Log.Error(LOGTAG, "Failed to get TimeZone err : " + err);
}
return zone;
}
/// <summary>
/// The information of UTC time stamp
/// </summary>
+ /// <feature>http://tizen.org/feature/watch_app</feature>
+ /// <exception cref="NotSupportedException">Thrown when the property is not supported.</exception>
public DateTime UtcTimestamp
{
get
{
long ts = 0;
-
Interop.Watch.ErrorCode err = Interop.Watch.WatchTimeGetUtcTimestamp(_handle, out ts);
if (err != Interop.Watch.ErrorCode.None)
{
- Log.Error(LOGTAG, "Failed to get UtcTimestamp err : " + err);
+ if (err == Interop.Watch.ErrorCode.NotSupported)
+ throw new NotSupportedException("Failed to get UtcTimestamp. err : " + err);
+ else
+ Log.Error(LOGTAG, "Failed to get UtcTimestamp err : " + err);
}
-
return (new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).AddSeconds(ts).ToLocalTime();
}
}