components/visual-panels/core/src/apis/time.adr
branchs11-update
changeset 2805 4888f6212f94
parent 827 0944d8c0158b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/visual-panels/core/src/apis/time.adr	Wed Oct 30 16:53:48 2013 -0400
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+ Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+
+ CDDL HEADER START
+
+  The contents of this file are subject to the terms of the
+  Common Development and Distribution License (the "License").
+  You may not use this file except in compliance with the License.
+ 
+  You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+  or http://www.opensolaris.org/os/licensing.
+  See the License for the specific language governing permissions
+  and limitations under the License.
+ 
+  When distributing Covered Code, include this CDDL HEADER in each
+  file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+  If applicable, add the following below this CDDL HEADER, with the
+  fields enclosed by brackets "[]" replaced with your own identifying
+  information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+-->
+
+<api xmlns="http://xmlns.oracle.com/radadr" 
+  name="com.oracle.solaris.vp.panels.time">
+	<version major="1" minor="0" />
+
+	<struct name="ServerInfo">
+		<field type="string" name="server" />
+		<field type="boolean" name="enabled" />
+	</struct>
+
+	<struct name="Continent">
+		<field type="string" name="name" />
+		<field type="string" name="description" />
+	</struct>
+
+	<struct name="Country">
+		<field type="string" name="code" />
+		<field type="string" name="description" />
+	</struct>
+
+	<struct name="Coordinates">
+		<field type="integer" name="degreesE" />
+		<field type="integer" name="degreesN" />
+		<field type="integer" name="minutesE" />
+		<field type="integer" name="minutesN" />
+		<field type="integer" name="secondsE" />
+		<field type="integer" name="secondsN" />
+	</struct>
+
+	<struct name="TimeZoneInfo">
+		<field type="string" name="name" />
+		<field type="string" name="altName" nullable="true" />
+		<field type="string" name="countryCode" />
+		<field type="string" name="comments" nullable="true" />
+		<field typeref="Coordinates" name="coordinates" />
+	</struct>
+
+	<interface name="Time">
+		<!-- <property type="time" name="Time" access="rw" /> -->
+		<!-- read/write raw milliseconds for the time being -->
+		<property type="time" name="time" access="rw">
+			<error />
+		</property>
+		<property type="string" name="defaultTimeZone" access="rw">
+			<error />
+		</property>
+		<property name="ntpServers" access="rw">
+			<list typeref="ServerInfo" />
+			<error />
+		</property>
+		<property type="boolean" name="sufficientlyPrivileged"
+		    access="ro"/>
+		<property name="continents" access="ro">
+			<list typeref="Continent" />
+		</property>
+		<property name="countries" access="ro">
+			<list typeref="Country" />
+		</property>
+		<property name="timeZones" access="ro">
+			<list typeref="TimeZoneInfo" />
+		</property>
+	</interface>
+
+</api>