Motorola Mobility Confidential Restricted.
/extra/kbs/check_outs/co_356297/STABLE_geranium_lpm_cornsilk_10/dist/idl/js/toi/ToiMediaConsumer.idl
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *--------------------------------------------------------------------
00003  *
00004  * ToiMediaConsumer.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 TOIMEDIACONSUMER_IDL
00016 #define TOIMEDIACONSUMER_IDL
00017 
00018 #include "TToiSessionViolationException.idl"
00019 #include "TToiUnavailableException.idl"
00020 #include "TToiInvalidArgumentException.idl"
00021 #include "TToiNoDataException.idl"
00022 #include "TToiOperationNotSupportedException.idl"
00023 #include "TToiNotEnoughResourcesException.idl"
00024 #include "ToiMediaSession.idl"
00025 #include "TToiPermissionDeniedException.idl"
00026 #include "TToiInvalidPreconditionException.idl"
00027 #include "TToiUnhandledValueException.idl"
00028 #include "ToiApplicationService.idl"
00029 #include "ToiOperationManager.idl"
00030 #include "ToiAssetManagerService.idl"
00031 #include "ToiMediaPlayerBase.idl"
00032 #include "TToiBusyException.idl"
00033 #include "ToiMediaPlayer.idl"
00034 #include "ToiMediaRecorderBase.idl"
00035 #include "ToiMediaService.idl"
00036 #include "ToiEventTarget.idl"
00037 
00038 
00048 //@ [EventTarget(EventObserver=IToiMediaConsumerObserver)]
00049 
00050 //@ [ReleaseInstance(Method=ReleaseInstance)]
00051 interface ToiMediaConsumer : ToiEventTarget {
00052 
00055   
00059   const long ON_STATE_CHANGED = 1300;
00060   
00062   
00065   //@ [Enum]
00066   typedef long TToiState;
00069   
00080   //@ [Enumerator(Enum=TToiState,Name=STATE_IDLE)]
00081   const TToiState STATE_IDLE = 0;
00082   
00098   //@ [Enumerator(Enum=TToiState,Name=STATE_CONNECTING)]
00099   const TToiState STATE_CONNECTING = 1;
00100   
00112   //@ [Enumerator(Enum=TToiState,Name=STATE_PAUSED)]
00113   const TToiState STATE_PAUSED = 2;
00114   
00125   //@ [Enumerator(Enum=TToiState,Name=STATE_CONSUMING)]
00126   const TToiState STATE_CONSUMING = 3;
00127   
00137   //@ [Enumerator(Enum=TToiState,Name=STATE_FAILED)]
00138   const TToiState STATE_FAILED = 4;
00139   
00141 
00147   //@ [OutParam(Name=state,Position=1,IsBinary=0, Bound=0)]
00148   TToiState getState();
00149   
00161   //@ [OutParam(Name=id,Position=1,IsBinary=0, Bound=0)]
00162   ToiMediaSession::TToiSessionId getSessionId()
00163    raises (TToiSessionViolationException);
00164   
00175   //@ [OutParam(Name=url,Position=1,IsBinary=0, Bound=0)]
00176   string getUrl()
00177    raises (TToiSessionViolationException);
00178   
00218   void open(in string url)
00219    raises (TToiSessionViolationException, TToiInvalidArgumentException, TToiUnavailableException);
00220   
00241   void close()
00242    raises (TToiSessionViolationException, TToiUnavailableException);
00243   
00267   void consume()
00268    raises (TToiSessionViolationException, TToiOperationNotSupportedException, TToiUnavailableException);
00269   
00274   //@ [ReleaseInstance]
00275   
00276   
00277   void releaseInstance();
00278   
00279 };
00280 
00281 #endif