components/visual-panels/core/src/apis/time.adr
branchs11-update
changeset 2805 4888f6212f94
parent 827 0944d8c0158b
equal deleted inserted replaced
2804:7546c836fd87 2805:4888f6212f94
       
     1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
       
     2 <!--
       
     3  Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
       
     4 
       
     5  CDDL HEADER START
       
     6 
       
     7   The contents of this file are subject to the terms of the
       
     8   Common Development and Distribution License (the "License").
       
     9   You may not use this file except in compliance with the License.
       
    10  
       
    11   You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
    12   or http://www.opensolaris.org/os/licensing.
       
    13   See the License for the specific language governing permissions
       
    14   and limitations under the License.
       
    15  
       
    16   When distributing Covered Code, include this CDDL HEADER in each
       
    17   file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    18   If applicable, add the following below this CDDL HEADER, with the
       
    19   fields enclosed by brackets "[]" replaced with your own identifying
       
    20   information: Portions Copyright [yyyy] [name of copyright owner]
       
    21 
       
    22  CDDL HEADER END
       
    23 -->
       
    24 
       
    25 <api xmlns="http://xmlns.oracle.com/radadr" 
       
    26   name="com.oracle.solaris.vp.panels.time">
       
    27 	<version major="1" minor="0" />
       
    28 
       
    29 	<struct name="ServerInfo">
       
    30 		<field type="string" name="server" />
       
    31 		<field type="boolean" name="enabled" />
       
    32 	</struct>
       
    33 
       
    34 	<struct name="Continent">
       
    35 		<field type="string" name="name" />
       
    36 		<field type="string" name="description" />
       
    37 	</struct>
       
    38 
       
    39 	<struct name="Country">
       
    40 		<field type="string" name="code" />
       
    41 		<field type="string" name="description" />
       
    42 	</struct>
       
    43 
       
    44 	<struct name="Coordinates">
       
    45 		<field type="integer" name="degreesE" />
       
    46 		<field type="integer" name="degreesN" />
       
    47 		<field type="integer" name="minutesE" />
       
    48 		<field type="integer" name="minutesN" />
       
    49 		<field type="integer" name="secondsE" />
       
    50 		<field type="integer" name="secondsN" />
       
    51 	</struct>
       
    52 
       
    53 	<struct name="TimeZoneInfo">
       
    54 		<field type="string" name="name" />
       
    55 		<field type="string" name="altName" nullable="true" />
       
    56 		<field type="string" name="countryCode" />
       
    57 		<field type="string" name="comments" nullable="true" />
       
    58 		<field typeref="Coordinates" name="coordinates" />
       
    59 	</struct>
       
    60 
       
    61 	<interface name="Time">
       
    62 		<!-- <property type="time" name="Time" access="rw" /> -->
       
    63 		<!-- read/write raw milliseconds for the time being -->
       
    64 		<property type="time" name="time" access="rw">
       
    65 			<error />
       
    66 		</property>
       
    67 		<property type="string" name="defaultTimeZone" access="rw">
       
    68 			<error />
       
    69 		</property>
       
    70 		<property name="ntpServers" access="rw">
       
    71 			<list typeref="ServerInfo" />
       
    72 			<error />
       
    73 		</property>
       
    74 		<property type="boolean" name="sufficientlyPrivileged"
       
    75 		    access="ro"/>
       
    76 		<property name="continents" access="ro">
       
    77 			<list typeref="Continent" />
       
    78 		</property>
       
    79 		<property name="countries" access="ro">
       
    80 			<list typeref="Country" />
       
    81 		</property>
       
    82 		<property name="timeZones" access="ro">
       
    83 			<list typeref="TimeZoneInfo" />
       
    84 		</property>
       
    85 	</interface>
       
    86 
       
    87 </api>