00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 00002 *-------------------------------------------------------------------- 00003 * 00004 * ToiFrontPanelService.idl 00005 * 00006 * This file was created by the Motorola IDL backend, 00007 * which is based on the OmniORB IDL parser. 00008 * Please do not modify. 00009 * 00010 * Copyright (c) 2009 Motorola Inc. All Rights Reserved. 00011 * 00012 *-------------------------------------------------------------------- 00013 */ 00014 00015 #ifndef TOIFRONTPANELSERVICE_IDL 00016 #define TOIFRONTPANELSERVICE_IDL 00017 00018 #include "TToiInvalidArgumentException.idl" 00019 #include "TToiOperationNotSupportedException.idl" 00020 //@ [Struct(Interface=IToiFrontPanelService,Name=TToiLedState)] 00021 interface ToiFrontPanelServiceLedState; 00022 //@ [Struct(Interface=IToiFrontPanelService,Name=TToiLedInfo)] 00023 interface ToiFrontPanelServiceLedInfo; 00024 //@ [Struct(Interface=IToiFrontPanelService,Name=TToiSegmentDisplayState)] 00025 interface ToiFrontPanelServiceSegmentDisplayState; 00026 //@ [Struct(Interface=IToiFrontPanelService,Name=TToiSegmentDisplayInfo)] 00027 interface ToiFrontPanelServiceSegmentDisplayInfo; 00028 00036 //@ [Service(Name=FrontPanelService)] 00039 interface ToiFrontPanelService { 00040 00043 //@ [Enum] 00044 typedef long TToiColor; 00047 00053 //@ [Enumerator(Enum=TToiColor,Name=COLOR_OFF)] 00054 const TToiColor COLOR_OFF = 0; 00055 00061 //@ [Enumerator(Enum=TToiColor,Name=COLOR_GREEN)] 00062 const TToiColor COLOR_GREEN = 1; 00063 00069 //@ [Enumerator(Enum=TToiColor,Name=COLOR_RED)] 00070 const TToiColor COLOR_RED = 2; 00071 00078 //@ [Enumerator(Enum=TToiColor,Name=COLOR_ORANGE)] 00079 const TToiColor COLOR_ORANGE = 3; 00080 00086 //@ [Enumerator(Enum=TToiColor,Name=COLOR_BLUE)] 00087 const TToiColor COLOR_BLUE = 4; 00088 00094 //@ [Enumerator(Enum=TToiColor,Name=COLOR_YELLOW)] 00095 const TToiColor COLOR_YELLOW = 5; 00096 00098 00099 typedef sequence < TToiColor > TToiColorSequence; 00100 00103 //@ [Enum] 00104 typedef long TToiSegmentDisplayModes; 00107 00113 //@ [Enumerator(Enum=TToiSegmentDisplayModes,Name=SEGMENT_DISPLAY_MODE_TEXT)] 00114 const TToiSegmentDisplayModes SEGMENT_DISPLAY_MODE_TEXT = 0; 00115 00123 //@ [Enumerator(Enum=TToiSegmentDisplayModes,Name=SEGMENT_DISPLAY_MODE_CLOCK)] 00124 const TToiSegmentDisplayModes SEGMENT_DISPLAY_MODE_CLOCK = 1; 00125 00127 00135 //@ [OutParam(Name=numberOfLeds,Position=1,IsBinary=0, Bound=0)] 00136 long getLedCount(); 00137 00151 //@ [OutParam(Name=info,Position=2,IsBinary=0, Bound=0)] 00152 ToiFrontPanelServiceLedInfo getLedInfo(in long index) 00153 raises (TToiInvalidArgumentException); 00154 00173 void setLedState(in long index, 00174 in ToiFrontPanelServiceLedState state) 00175 raises (TToiInvalidArgumentException, TToiOperationNotSupportedException); 00176 00190 //@ [OutParam(Name=state,Position=2,IsBinary=0, Bound=0)] 00191 ToiFrontPanelServiceLedState getLedState(in long index) 00192 raises (TToiInvalidArgumentException); 00193 00203 //@ [OutParam(Name=info,Position=1,IsBinary=0, Bound=0)] 00204 ToiFrontPanelServiceSegmentDisplayInfo getSegmentDisplayInfo() 00205 raises (TToiOperationNotSupportedException); 00206 00222 void setSegmentDisplayState(in ToiFrontPanelServiceSegmentDisplayState state) 00223 raises (TToiInvalidArgumentException, TToiOperationNotSupportedException); 00224 00235 //@ [OutParam(Name=state,Position=1,IsBinary=0, Bound=0)] 00236 ToiFrontPanelServiceSegmentDisplayState getSegmentDisplayState() 00237 raises (TToiOperationNotSupportedException); 00238 00245 //@ [OutParam(Name=isSupported,Position=1,IsBinary=0, Bound=0)] 00246 boolean isSegmentDisplaySupported(); 00247 00248 }; 00249 00250 #endif