/extra/kbs/check_outs/co_155322/STABLE_elymus_firebrick_7/dist/idl/js/toi/ToiMediaService.idl
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *--------------------------------------------------------------------
00003  *
00004  * ToiMediaService.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 TOIMEDIASERVICE_IDL
00016 #define TOIMEDIASERVICE_IDL
00017 
00018 #include "TToiOperationNotSupportedException.idl"
00019 #include "TToiNoDataException.idl"
00020 #include "TToiNotEnoughResourcesException.idl"
00021 #include "TToiInvalidArgumentException.idl"
00022 #include "TToiSessionViolationException.idl"
00023 #include "ToiMediaSession.idl"
00024 #include "TToiUnavailableException.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 "ToiEventTarget.idl"
00036 
00037 //@ [Struct(Interface=IToiMediaService,Name=TToiSessionInfo)]
00038 interface ToiMediaServiceSessionInfo;
00039 //@ [Struct(Interface=IToiMediaService,Name=TToiDistributorInfo)]
00040 interface ToiMediaServiceDistributorInfo;
00041 //@ [Struct(Interface=IToiMediaService,Name=TToiPlayerInfo)]
00042 interface ToiMediaServicePlayerInfo;
00043 //@ [Struct(Interface=IToiMediaService,Name=TToiRecorderInfo)]
00044 interface ToiMediaServiceRecorderInfo;
00045 interface ToiMediaRecorder;
00046 
00062 //@ [Service(Name=MediaService)]
00063 //@ [EventTarget(EventObserver=IToiMediaObserver)]
00066 interface ToiMediaService : ToiEventTarget {
00067 
00070   
00074   const long ON_SESSION_STATE_CHANGED = 1600;
00075   
00079   const long ON_DISTRIBUTOR_STATUS_CHANGED = 1601;
00080   
00084   const long ON_PLAYER_STATUS_CHANGED = 1602;
00085   
00089   const long ON_RECORDER_STATUS_CHANGED = 1603;
00090   
00094   const long ON_SESSION_STREAM_INFO_CHANGED = 1604;
00095   
00097   
00101   const string REASON_UNKNOWN = "Unknown";
00102   
00106   const string REASON_COMMAND_OPEN = "CommandOpen";
00107   
00111   const string REASON_COMMAND_CLOSE = "CommandClose";
00112   
00116   const string REASON_COMMAND_PAUSE = "CommandPause";
00117   
00121   const string REASON_COMMAND_PLAY = "CommandPlay";
00122   
00127   const string REASON_COMMAND_FASTFORWARD = "CommandFastForward";
00128   
00132   const string REASON_COMMAND_REWIND = "CommandRewind";
00133   
00137   const string REASON_COMMAND_PLAYFROMPOSITION = "CommandPlayFromPosition";
00138   
00142   const string REASON_COMMAND_RECORD = "CommandRecord";
00143   
00147   const string REASON_COMMAND_CONSUME = "CommandConsume";
00148   
00152   const string REASON_POSITION_END = "PositionEnd";
00153   
00157   const string REASON_POSITION_START = "PositionStart";
00158   
00163   const string REASON_TIMESHIFT_BUFFER_OPEN = "TimeshiftBufferOpen";
00164   
00169   const string REASON_TIMESHIFT_BUFFER_FULL = "TimeshiftBufferFull";
00170   
00175   const string REASON_TIMESHIFT_BUFFER_DISCARDED = "TimeshiftBufferDiscarded";
00176   
00181   const string REASON_TIMESHIFT_BUFFER_REDIRECTED = "TimeshiftBufferRedirected";
00182   
00186   const string REASON_ERROR_COMMAND_NOT_SUPPORTED = "ErrorCommandNotSupported";
00187   
00191   const string REASON_ERROR_STREAM_CLIENT = "ErrorStreamClient";
00192   
00196   const string REASON_ERROR_CONNECTION_FAILED = "ErrorConnectionFailed";
00197   
00201   const string REASON_ERROR_INVALID_PRECONDITION = "ErrorInvalidPrecondition";
00202   
00206   const string REASON_ERROR_PERMISSION_DENIED = "ErrorPermissionDenied";
00207   
00211   const string REASON_ERROR_INVALID_DISKASSET = "ErrorInvalidDiskasset";
00212   
00216   const string REASON_ERROR_UNSUPPORTED_DISKASSET_VERSION = "ErrorUnsupportedDiskAssetVersion";
00217   
00221   const string REASON_ERROR_DISK_FULL = "ErrorStorageFull";
00222   
00226   const string REASON_ERROR_LOWLEVEL_IO_FAILURE = "ErrorLowlevelIOFailure";
00227   
00231   const string REASON_ERROR_POSITION_INVALID = "ErrorPositionInvalid";
00232   
00236   const string REASON_ERROR_DISK_OVERHEATED = "ErrorStorageOverheated";
00237   
00241   const string REASON_ERROR_HOST_UNREACHABLE = "ErrorHostUnreachable";
00242   
00246   const string REASON_ERROR_UNEXISTING_RESOURCE = "ErrorUnexistingResource";
00247   
00251   const string REASON_ERROR_NO_EXTERNAL_INPUT_SIGNAL = "ErrorNoExternalInputSignal";
00252   
00256   //@ [Enum]
00257   typedef long TToiDistributorState;
00260   
00271   //@ [Enumerator(Enum=TToiDistributorState,Name=DISTRIBUTOR_STATE_IDLE)]
00272   const TToiDistributorState DISTRIBUTOR_STATE_IDLE = 0;
00273   
00289   //@ [Enumerator(Enum=TToiDistributorState,Name=DISTRIBUTOR_STATE_CONNECTING)]
00290   const TToiDistributorState DISTRIBUTOR_STATE_CONNECTING = 1;
00291   
00307   //@ [Enumerator(Enum=TToiDistributorState,Name=DISTRIBUTOR_STATE_PAUSED)]
00308   const TToiDistributorState DISTRIBUTOR_STATE_PAUSED = 2;
00309   
00326   //@ [Enumerator(Enum=TToiDistributorState,Name=DISTRIBUTOR_STATE_PLAYING)]
00327   const TToiDistributorState DISTRIBUTOR_STATE_PLAYING = 3;
00328   
00346   //@ [Enumerator(Enum=TToiDistributorState,Name=DISTRIBUTOR_STATE_FASTFORWARDING)]
00347   const TToiDistributorState DISTRIBUTOR_STATE_FASTFORWARDING = 4;
00348   
00366   //@ [Enumerator(Enum=TToiDistributorState,Name=DISTRIBUTOR_STATE_REWINDING)]
00367   const TToiDistributorState DISTRIBUTOR_STATE_REWINDING = 5;
00368   
00377   //@ [Enumerator(Enum=TToiDistributorState,Name=DISTRIBUTOR_STATE_FAILED)]
00378   const TToiDistributorState DISTRIBUTOR_STATE_FAILED = 6;
00379   
00381 
00384 
00388 
00394 
00402 
00406 
00407 
00411 
00415 
00419 
00449 
00485 
00520 
00536 
00547 
00558 
00594 
00628 
00651 
00672