IToiDlnaRendererManager.idl

00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *--------------------------------------------------------------------
00003  *
00004  * IToiDlnaRendererManager.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 ITOIDLNARENDERERMANAGER_IDL
00016 #define ITOIDLNARENDERERMANAGER_IDL
00017 
00018 #include "TToiInvalidArgumentException.idl"
00019 #include "TToiOperationNotSupportedException.idl"
00020 #include "TToiNoDataException.idl"
00021 #include "TToiNotEnoughResourcesException.idl"
00022 #include "TToiUnhandledValueException.idl"
00023 #include "IToiApplicationService.idl"
00024 #include "IToiOperationManager.idl"
00025 #include "IToiDlnaContentDirectoryService.idl"
00026 
00027 #include "IToiApplicationService.idl"
00040 //@ [EventTarget(EventObserver=IToiDlnaRendererObserver)]
00041 
00042 interface IToiDlnaRendererManager {
00043 
00045   typedef long TToiRendererSessionId;
00046   
00048   typedef sequence < TToiRendererSessionId > TToiRendererSessionIdSequence;
00049   
00052   enum TToiRendererState
00053   {
00054     
00059     //Value of STATE_SESSION_REQUEST = 0
00060     STATE_SESSION_REQUEST,
00061     
00065     //Value of STATE_SESSION_ACTIVE = 1
00066     STATE_SESSION_ACTIVE,
00067     
00072     //Value of STATE_SESSION_CLOSED = 2
00073     STATE_SESSION_CLOSED
00074   };
00077   enum TToiRendererStatus
00078   {
00079     
00083     //Value of RENDERER_SUCCESS = 0
00084     RENDERER_SUCCESS,
00085     
00090     //Value of RENDERER_UNAVAILABLE = 1
00091     RENDERER_UNAVAILABLE,
00092     
00097     //Value of RENDERER_FAILURE = 2
00098     RENDERER_FAILURE
00099   };
00102   struct TToiRendererSessionInfo {
00104     IToiDlnaRendererManager::TToiRendererSessionId Id;
00106     IToiDlnaRendererManager::TToiRendererState State;
00109     string Uri;
00111     string MimeType;
00113     IToiDlnaContentDirectoryService::TToiPropertySequence MediaProperties;
00114   };
00115   
00135   void UpdateSessionStatus(in TToiRendererSessionId id, 
00136         in TToiRendererStatus status)
00137    raises (TToiInvalidArgumentException);
00138   
00152   void GetSessionInfo(in TToiRendererSessionId id, 
00153         out TToiRendererSessionInfo info)
00154    raises (TToiInvalidArgumentException);
00155   
00163   void GetRendererSessions(out TToiRendererSessionIdSequence ids);
00164   
00169   //@ [ReleaseInstance]
00170   
00171   
00172   void ReleaseInstance();
00173   
00174   
00175   
00188   void RegisterObserver(in IToiApplicationService::TToiApplicationId applicationId,
00189                         in string address)
00190     raises (TToiInvalidArgumentException);
00191   
00200   void ReleaseObserver(in string address)
00201     raises (TToiInvalidArgumentException); 
00202   
00203 };
00204 
00205 #endif