IToiDrmService.idl

00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *--------------------------------------------------------------------
00003  *
00004  * IToiDrmService.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 ITOIDRMSERVICE_IDL
00016 #define ITOIDRMSERVICE_IDL
00017 
00018 #include "TToiInvalidArgumentException.idl"
00019 
00020 #include "IToiApplicationService.idl"
00030 //@ [Language=C++]
00031 //@ [Service(Name=DrmService)]
00032 //@ [EventTarget(EventObserver=IToiDrmObserver)]
00033 
00034 interface IToiDrmService {
00035 
00037   struct TToiOutputControl {
00039     boolean RecordingAllowed;
00041     boolean RecordingForMobileAllowed;
00042   };
00043   
00047   enum TToiCopyPermission
00048   {
00049     
00052     //Value of COPY_FREE = 0
00053     COPY_FREE,
00054     
00057     //Value of COPY_NO_MORE = 1
00058     COPY_NO_MORE,
00059     
00062     //Value of COPY_10 = 2
00063     COPY_10,
00064     
00067     //Value of COPY_NEVER = 3
00068     COPY_NEVER
00069   };
00081   void GetCurrentOutputControl(in long mediaSessionId, 
00082         out TToiOutputControl outputControl)
00083    raises (TToiInvalidArgumentException);
00084   
00095   void QueryCopyPermission(in string assetUrl, 
00096         out TToiCopyPermission copyPermission, 
00097         out long remainingCopies)
00098    raises (TToiInvalidArgumentException);
00099   
00100   
00101   
00114   void RegisterObserver(in IToiApplicationService::TToiApplicationId applicationId,
00115                         in string address)
00116     raises (TToiInvalidArgumentException);
00117   
00126   void ReleaseObserver(in string address)
00127     raises (TToiInvalidArgumentException); 
00128   
00129 };
00130 
00131 #endif