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 "TToiPermissionDeniedException.idl"
00025 #include "TToiUnhandledValueException.idl"
00026 #include "ToiApplicationService.idl"
00027 #include "ToiEventTarget.idl"
00028 
00029 //@ [Struct(Interface=IToiMediaService,Name=TToiSessionInfo)]
00030 interface ToiMediaServiceSessionInfo;
00031 interface ToiMediaPlayer;
00032 interface ToiMediaPlayer;
00033 interface ToiMediaRecorder;
00034 
00050 //@ [Service(Name=MediaService)]
00051 //@ [EventTarget(EventObserver=IToiMediaObserver)]
00054 interface ToiMediaService : ToiEventTarget {
00055 
00058   
00062   const long ON_SESSION_STATE_CHANGED = 1600;
00063   
00067   const long ON_SESSION_STREAM_INFO_CHANGED = 1601;
00068   
00070   
00074   const string REASON_UNKNOWN = "Unknown";
00075   
00079   const string REASON_COMMAND_OPEN = "CommandOpen";
00080   
00084   const string REASON_COMMAND_CLOSE = "CommandClose";
00085   
00089   const string REASON_COMMAND_PAUSE = "CommandPause";
00090   
00094   const string REASON_COMMAND_PLAY = "CommandPlay";
00095   
00100   const string REASON_COMMAND_FASTFORWARD = "CommandFastForward";
00101   
00105   const string REASON_COMMAND_REWIND = "CommandRewind";
00106   
00110   const string REASON_COMMAND_PLAYFROMPOSITION = "CommandPlayFromPosition";
00111   
00115   const string REASON_COMMAND_RECORD = "CommandRecord";
00116   
00120   const string REASON_COMMAND_CONSUME = "CommandConsume";
00121   
00125   const string REASON_POSITION_END = "PositionEnd";
00126   
00130   const string REASON_POSITION_START = "PositionStart";
00131   
00135   const string REASON_TIMESHIFT_BUFFER_OPEN = "TimeshiftBufferOpen";
00136   
00140   const string REASON_TIMESHIFT_BUFFER_FULL = "TimeshiftBufferFull";
00141   
00145   const string REASON_TIMESHIFT_BUFFER_DISCARDED = "TimeshiftBufferDiscarded";
00146   
00150   const string REASON_ERROR_COMMAND_NOT_SUPPORTED = "ErrorCommandNotSupported";
00151   
00155   const string REASON_ERROR_STREAM_CLIENT = "ErrorStreamClient";
00156   
00160   const string REASON_ERROR_CONNECTION_FAILED = "ErrorConnectionFailed";
00161   
00165   const string REASON_ERROR_INVALID_PRECONDITION = "ErrorInvalidPrecondition";
00166   
00170   const string REASON_ERROR_PERMISSION_DENIED = "ErrorPermissionDenied";
00171   
00175   const string REASON_ERROR_INVALID_DISKASSET = "ErrorInvalidDiskasset";
00176   
00180   const string REASON_ERROR_UNSUPPORTED_DISKASSET_VERSION = "ErrorUnsupportedDiskAssetVersion";
00181   
00185   const string REASON_ERROR_DISK_FULL = "ErrorStorageFull";
00186   
00190   const string REASON_ERROR_LOWLEVEL_IO_FAILURE = "ErrorLowlevelIOFailure";
00191   
00195   const string REASON_ERROR_POSITION_INVALID = "ErrorPositionInvalid";
00196   
00200   const string REASON_ERROR_DISK_OVERHEATED = "ErrorStorageOverheated";
00201   
00205   const string REASON_ERROR_HOST_UNREACHABLE = "ErrorHostUnreachable";
00206   
00210   const string REASON_ERROR_UNEXISTING_RESOURCE = "ErrorUnexistingResource";
00211   
00215   const string REASON_ERROR_NO_EXTERNAL_INPUT_SIGNAL = "ErrorNoExternalInputSignal";
00216   
00218   typedef sequence < ToiMediaServiceSessionInfo > TToiSessionSequence;
00219   
00248   //@ [ReturnAddress(Type=IToiMediaPlayer)]
00249   //@ [IgnoredApplicationId(Position=1)]
00250   
00251   
00252   //@ [OutParam(Name=playerAddress,Position=2,IsBinary=0, Bound=0)]
00253   ToiMediaPlayer createPlayerInstance()
00254    raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException, TToiPermissionDeniedException);
00255   
00284   //@ [ReturnAddress(Type=IToiMediaPlayer)]
00285   //@ [IgnoredApplicationId(Position=1)]
00286   
00287   
00288   //@ [OutParam(Name=pipAddress,Position=2,IsBinary=0, Bound=0)]
00289   ToiMediaPlayer createPipPlayerInstance()
00290    raises (TToiInvalidArgumentException, TToiOperationNotSupportedException, TToiPermissionDeniedException);
00291   
00319   //@ [ReturnAddress(Type=IToiMediaRecorder)]
00320   //@ [IgnoredApplicationId(Position=1)]
00321   
00322   
00323   //@ [OutParam(Name=recorderAddress,Position=2,IsBinary=0, Bound=0)]
00324   ToiMediaRecorder createRecorderInstance()
00325    raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException, TToiOperationNotSupportedException);
00326   
00327 };
00328 
00329 #endif