IMediaSession.idl

00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *--------------------------------------------------------------------
00003  *
00004  * IMediaSession.idl
00005  *
00006  * Copyright (c) 2009 Motorola, Inc. All Rights Reserved.
00007  *
00008  *--------------------------------------------------------------------
00009  */
00010 
00011 #ifndef IMEDIASESSION_IDL
00012 #define IMEDIASESSION_IDL
00013 
00014 #include "IToiMediaSession.idl"
00015 
00020 interface IMediaSession : IToiMediaSession
00021 {
00023   enum TCipherKeyParity
00024   {
00026     CIPHER_KEY_PARITY_NONE,
00027 
00029     CIPHER_KEY_PARITY_ODD,
00030 
00032     CIPHER_KEY_PARITY_EVEN
00033   };
00034 
00035 
00036   typedef sequence<octet> binary;
00037 
00038   struct TFrontendInfo {
00039 
00041     string InstanceName;
00042 
00046     boolean IsLocked;
00047 
00051     long SignalNoiseRatio;
00052 
00056     long BitErrorRate;
00057 
00061     long UncorrectedBlocks;
00062 
00064     long RFLevel;
00065 
00069     long Quality;
00070 
00072     string DeliverySystemDescriptor;
00073     
00074   };
00075 
00092   void Cancel(in long type,
00093               in string reason)
00094     raises (TToiOperationNotSupportedException,
00095             TToiSessionViolationException);
00096 
00113   void Suspend(in long type,
00114                in string reason)
00115     raises (TToiOperationNotSupportedException,
00116             TToiSessionViolationException);
00117 
00134   void Resume(in long type,
00135               in string reason)
00136     raises (TToiOperationNotSupportedException,
00137             TToiSessionViolationException);
00138 
00163   void SetEncryptionData(in binary keyMaterial,
00164                          in long keyMaterialLength,
00165                          in binary markerToken,
00166                          in long markerTokenLength,
00167                          in TCipherKeyParity keyParity)
00168     raises (TToiSessionViolationException);
00169 
00182   void GetAssetPath(out string assetPath)
00183     raises (TToiOperationNotSupportedException,
00184             TToiSessionViolationException);
00185 
00198   void RegisterObserverInternal(in string address)
00199     raises (TToiInvalidArgumentException);
00200 
00201 
00218   void GetFrontendInfo(out TFrontendInfo info)
00219     raises (TToiNoDataException,
00220             TToiOperationNotSupportedException,
00221             TToiSessionViolationException);
00222 
00223 };
00224 
00225 #endif