ToiAudioOutputService.idl

00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *--------------------------------------------------------------------
00003  *
00004  * ToiAudioOutputService.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 TOIAUDIOOUTPUTSERVICE_IDL
00016 #define TOIAUDIOOUTPUTSERVICE_IDL
00017 
00018 #include "TToiInvalidArgumentException.idl"
00019 #include "TToiInvalidPreconditionException.idl"
00020 #include "TToiOperationNotSupportedException.idl"
00021 #include "TToiUnhandledValueException.idl"
00022 #include "ToiApplicationService.idl"
00023 #include "ToiEventTarget.idl"
00024 
00025 //@ [Struct(Interface=IToiAudioOutputService,Name=TToiAudioConnectionDescriptor)]
00026 interface ToiAudioOutputServiceAudioConnectionDescriptor;
00027 interface ToiAudioOutputConfiguration;
00028 interface ToiAudioOutputConfigurationSession;
00029 
00037 //@ [EventTarget(EventObserver=IToiAudioOutputObserver)]
00038 //@ [Service(Name=AudioOutputService)]
00041 interface ToiAudioOutputService : ToiEventTarget {
00042 
00045   
00049   const long ON_CONFIGURATION_CHANGED = 3100;
00050   
00054   const long ON_VOLUME_CHANGED = 3101;
00055   
00059   const long ON_MUTE_STATE_CHANGED = 3102;
00060   
00064   const long ON_HDMI_CONNECTION_STATUS_CHANGED = 3103;
00065   
00069   const long ON_LATENCY_CHANGED = 3104;
00070   
00072   
00074   typedef long TToiAudioConnectionId;
00075   
00079   //@ [Enum]
00080   typedef long TToiAudioConnectionType;
00083   
00089   //@ [Enumerator(Enum=TToiAudioConnectionType,Name=AUDIO_CONNECTION_TYPE_ANALOG)]
00090   const TToiAudioConnectionType AUDIO_CONNECTION_TYPE_ANALOG = 0;
00091   
00097   //@ [Enumerator(Enum=TToiAudioConnectionType,Name=AUDIO_CONNECTION_TYPE_SPDIF)]
00098   const TToiAudioConnectionType AUDIO_CONNECTION_TYPE_SPDIF = 1;
00099   
00105   //@ [Enumerator(Enum=TToiAudioConnectionType,Name=AUDIO_CONNECTION_TYPE_HDMI)]
00106   const TToiAudioConnectionType AUDIO_CONNECTION_TYPE_HDMI = 2;
00107   
00114   //@ [Enumerator(Enum=TToiAudioConnectionType,Name=AUDIO_CONNECTION_TYPE_DECODER)]
00115   const TToiAudioConnectionType AUDIO_CONNECTION_TYPE_DECODER = 3;
00116   
00123   //@ [Enumerator(Enum=TToiAudioConnectionType,Name=AUDIO_CONNECTION_TYPE_BUFFER)]
00124   const TToiAudioConnectionType AUDIO_CONNECTION_TYPE_BUFFER = 4;
00125   
00131   //@ [Enumerator(Enum=TToiAudioConnectionType,Name=AUDIO_CONNECTION_TYPE_I2S)]
00132   const TToiAudioConnectionType AUDIO_CONNECTION_TYPE_I2S = 5;
00133   
00135 
00138   //@ [Enum]
00139   typedef long TToiAudioConnectionDirection;
00142   
00148   //@ [Enumerator(Enum=TToiAudioConnectionDirection,Name=AUDIO_CONNECTION_DIRECTION_INPUT)]
00149   const TToiAudioConnectionDirection AUDIO_CONNECTION_DIRECTION_INPUT = 0;
00150   
00156   //@ [Enumerator(Enum=TToiAudioConnectionDirection,Name=AUDIO_CONNECTION_DIRECTION_OUTPUT)]
00157   const TToiAudioConnectionDirection AUDIO_CONNECTION_DIRECTION_OUTPUT = 1;
00158   
00160 
00161   typedef sequence < ToiAudioOutputServiceAudioConnectionDescriptor > TToiAudioConnectionDescriptorSequence;
00162   
00169   //@ [OutParam(Name=connectionList,Position=1,IsBinary=0, Bound=0)]
00170   TToiAudioConnectionDescriptorSequence getConnections();
00171   
00177   //@ [ReturnAddress(Type=IToiAudioOutputConfiguration)]
00178   
00179   
00180   //@ [OutParam(Name=address,Position=1,IsBinary=0, Bound=0)]
00181   ToiAudioOutputConfiguration getConfiguration();
00182   
00197   //@ [ReturnAddress(Type=IToiAudioOutputConfigurationSession)]
00198   //@ [IgnoredApplicationId(Position=1)]
00199   
00200   
00201   //@ [OutParam(Name=address,Position=2,IsBinary=0, Bound=0)]
00202   ToiAudioOutputConfigurationSession createConfigurationSession()
00203    raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00204   
00224   void setVolume(in TToiAudioConnectionId connectionId, 
00225         in unsigned long level)
00226    raises (TToiInvalidArgumentException, TToiOperationNotSupportedException);
00227   
00244   //@ [OutParam(Name=level,Position=2,IsBinary=0, Bound=0)]
00245   unsigned long getVolume(in TToiAudioConnectionId connectionId)
00246    raises (TToiInvalidArgumentException, TToiOperationNotSupportedException);
00247   
00262   void setMuteState(in TToiAudioConnectionId connectionId, 
00263         in boolean state)
00264    raises (TToiInvalidArgumentException, TToiOperationNotSupportedException);
00265   
00280   //@ [OutParam(Name=state,Position=2,IsBinary=0, Bound=0)]
00281   boolean getMuteState(in TToiAudioConnectionId connectionId)
00282    raises (TToiInvalidArgumentException, TToiOperationNotSupportedException);
00283   
00307   void setLatency(in TToiAudioConnectionId connectionId, 
00308         in long latency)
00309    raises (TToiInvalidArgumentException, TToiOperationNotSupportedException);
00310   
00327   //@ [OutParam(Name=latency,Position=2,IsBinary=0, Bound=0)]
00328   long getLatency(in TToiAudioConnectionId connectionId)
00329    raises (TToiInvalidArgumentException, TToiOperationNotSupportedException);
00330   
00331 };
00332 
00333 #endif