ToiMediaSession.idl

00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *--------------------------------------------------------------------
00003  *
00004  * ToiMediaSession.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 TOIMEDIASESSION_IDL
00016 #define TOIMEDIASESSION_IDL
00017 
00018 #include "TToiOperationNotSupportedException.idl"
00019 #include "TToiNoDataException.idl"
00020 #include "TToiNotEnoughResourcesException.idl"
00021 #include "TToiInvalidArgumentException.idl"
00022 #include "TToiSessionViolationException.idl"
00023 #include "ToiEventTarget.idl"
00024 
00025 //@ [Struct(Interface=IToiMediaSession,Name=TToiStreamInfo)]
00026 interface ToiMediaSessionStreamInfo;
00027 
00044 //@ [EventTarget(EventObserver=IToiMediaSessionObserver)]
00045 
00046 //@ [ReleaseInstance(Method=ReleaseInstance)]
00047 interface ToiMediaSession : ToiEventTarget {
00048 
00051   
00055   const long ON_PARAMETER_CHANGED = 1900;
00056   
00058   
00061   //@ [Enum]
00062   typedef long TToiState;
00065   
00076   //@ [Enumerator(Enum=TToiState,Name=STATE_CONNECTING)]
00077   const TToiState STATE_CONNECTING = 0;
00078   
00086   //@ [Enumerator(Enum=TToiState,Name=STATE_RUNNING)]
00087   const TToiState STATE_RUNNING = 1;
00088   
00094   //@ [Enumerator(Enum=TToiState,Name=STATE_FAILED)]
00095   const TToiState STATE_FAILED = 2;
00096   
00103   //@ [Enumerator(Enum=TToiState,Name=STATE_CLOSED)]
00104   const TToiState STATE_CLOSED = 3;
00105   
00107 
00109   typedef sequence < octet > TToiDataRelayData;
00110   
00112   typedef long TToiStreamId;
00113   
00116   typedef sequence < TToiStreamId > TToiStreamIdSequence;
00117   
00120   typedef sequence < octet > TToiCipherData;
00121   
00123   typedef long TToiSessionId;
00124   
00127   typedef long TToiSessionType;
00128   
00133   const TToiSessionType TYPE_PLAYER = 1;
00134   
00139   const TToiSessionType TYPE_RECORDER = 2;
00140   
00145   const TToiSessionType TYPE_CONSUMER = 4;
00146   
00151   const TToiSessionType TYPE_DISTRIBUTOR = 8;
00152   
00155   //@ [Enum]
00156   typedef long TToiCipher;
00159   
00165   //@ [Enumerator(Enum=TToiCipher,Name=CIPHER_NONE)]
00166   const TToiCipher CIPHER_NONE = 0;
00167   
00173   //@ [Enumerator(Enum=TToiCipher,Name=CIPHER_DVB_CSA)]
00174   const TToiCipher CIPHER_DVB_CSA = 1;
00175   
00181   //@ [Enumerator(Enum=TToiCipher,Name=CIPHER_ARIB_MULTI2)]
00182   const TToiCipher CIPHER_ARIB_MULTI2 = 2;
00183   
00189   //@ [Enumerator(Enum=TToiCipher,Name=CIPHER_AES_128)]
00190   const TToiCipher CIPHER_AES_128 = 3;
00191   
00197   //@ [Enumerator(Enum=TToiCipher,Name=CIPHER_TRIPLE_DES)]
00198   const TToiCipher CIPHER_TRIPLE_DES = 4;
00199   
00201 
00203   //@ [Enum]
00204   typedef long TToiCipherBlockMode;
00207   
00213   //@ [Enumerator(Enum=TToiCipherBlockMode,Name=CIPHER_BLOCK_MODE_NONE)]
00214   const TToiCipherBlockMode CIPHER_BLOCK_MODE_NONE = 0;
00215   
00221   //@ [Enumerator(Enum=TToiCipherBlockMode,Name=CIPHER_BLOCK_MODE_ECB)]
00222   const TToiCipherBlockMode CIPHER_BLOCK_MODE_ECB = 1;
00223   
00229   //@ [Enumerator(Enum=TToiCipherBlockMode,Name=CIPHER_BLOCK_MODE_CBC)]
00230   const TToiCipherBlockMode CIPHER_BLOCK_MODE_CBC = 2;
00231   
00237   //@ [Enumerator(Enum=TToiCipherBlockMode,Name=CIPHER_BLOCK_MODE_CFB)]
00238   const TToiCipherBlockMode CIPHER_BLOCK_MODE_CFB = 3;
00239   
00245   //@ [Enumerator(Enum=TToiCipherBlockMode,Name=CIPHER_BLOCK_MODE_OFB)]
00246   const TToiCipherBlockMode CIPHER_BLOCK_MODE_OFB = 4;
00247   
00253   //@ [Enumerator(Enum=TToiCipherBlockMode,Name=CIPHER_BLOCK_MODE_CTR)]
00254   const TToiCipherBlockMode CIPHER_BLOCK_MODE_CTR = 5;
00255   
00257 
00259   //@ [Enum]
00260   typedef long TToiCipherResidueMode;
00263   
00269   //@ [Enumerator(Enum=TToiCipherResidueMode,Name=CIPHER_RESIDUE_MODE_NONE)]
00270   const TToiCipherResidueMode CIPHER_RESIDUE_MODE_NONE = 0;
00271   
00277   //@ [Enumerator(Enum=TToiCipherResidueMode,Name=CIPHER_RESIDUE_MODE_FRONT)]
00278   const TToiCipherResidueMode CIPHER_RESIDUE_MODE_FRONT = 1;
00279   
00285   //@ [Enumerator(Enum=TToiCipherResidueMode,Name=CIPHER_RESIDUE_MODE_BACK)]
00286   const TToiCipherResidueMode CIPHER_RESIDUE_MODE_BACK = 2;
00287   
00293   //@ [Enumerator(Enum=TToiCipherResidueMode,Name=CIPHER_RESIDUE_MODE_CTS)]
00294   const TToiCipherResidueMode CIPHER_RESIDUE_MODE_CTS = 3;
00295   
00301   //@ [Enumerator(Enum=TToiCipherResidueMode,Name=CIPHER_RESIDUE_MODE_OFB)]
00302   const TToiCipherResidueMode CIPHER_RESIDUE_MODE_OFB = 4;
00303   
00305 
00311   //@ [OutParam(Name=id,Position=1,IsBinary=0, Bound=0)]
00312   TToiSessionId getId();
00313   
00326   //@ [OutParam(Name=type,Position=1,IsBinary=0, Bound=0)]
00327   TToiSessionType getType()
00328    raises (TToiSessionViolationException);
00329   
00340   //@ [OutParam(Name=url,Position=1,IsBinary=0, Bound=0)]
00341   string getUrl()
00342    raises (TToiSessionViolationException);
00343   
00354   //@ [OutParam(Name=state,Position=1,IsBinary=0, Bound=0)]
00355   TToiState getState();
00356   
00371   //@ [OutParam(Name=info,Position=1,IsBinary=0, Bound=0)]
00372   ToiMediaSessionStreamInfo getStreamInfo()
00373    raises (TToiNoDataException, TToiSessionViolationException);
00374   
00392   //@ [OutParam(Name=assetId,Position=1,IsBinary=0, Bound=0)]
00393   string getAssetId()
00394    raises (TToiOperationNotSupportedException, TToiSessionViolationException);
00395   
00412   //@ [OutParam(Name=value,Position=2,IsBinary=0, Bound=0)]
00413   string getParameter(in string name)
00414    raises (TToiInvalidArgumentException, TToiSessionViolationException);
00415   
00432   void setParameter(in string name, 
00433         in string value)
00434    raises (TToiInvalidArgumentException, TToiSessionViolationException);
00435   
00445   //@ [ReleaseInstance]
00446   
00447   
00448   void releaseInstance();
00449   
00450 };
00451 
00452 #endif