IToiDlnaService.idl

00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *--------------------------------------------------------------------
00003  *
00004  * IToiDlnaService.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 ITOIDLNASERVICE_IDL
00016 #define ITOIDLNASERVICE_IDL
00017 
00018 #include "TToiInvalidArgumentException.idl"
00019 #include "TToiNotEnoughResourcesException.idl"
00020 #include "TToiOperationNotSupportedException.idl"
00021 #include "TToiUnhandledValueException.idl"
00022 #include "IToiApplicationService.idl"
00023 
00024 #include "IToiApplicationService.idl"
00091 //@ [Service(Name=DlnaService)]
00092 //@ [EventTarget(EventObserver=IToiDlnaObserver)]
00093 
00094 interface IToiDlnaService {
00095 
00097   typedef string TToiMediaServerUuid;
00098   
00100   typedef sequence < TToiMediaServerUuid > TToiMediaServerUuidSequence;
00101   
00104   enum TToiServiceType
00105   {
00106     
00109     //Value of SERVICE_TYPE_CONTENT_DIRECTORY = 0
00110     SERVICE_TYPE_CONTENT_DIRECTORY
00111   };
00113   typedef sequence < TToiServiceType > TToiServiceTypeSequence;
00114   
00117   enum TToiMediaFormatProfile
00118   {
00119     
00122     //Value of MEDIA_FORMAT_PROFILE_JPEG_LRG_ICO = 0
00123     MEDIA_FORMAT_PROFILE_JPEG_LRG_ICO,
00124     
00127     //Value of MEDIA_FORMAT_PROFILE_JPEG_SM_ICO = 1
00128     MEDIA_FORMAT_PROFILE_JPEG_SM_ICO,
00129     
00132     //Value of MEDIA_FORMAT_PROFILE_PNG_LRG_ICO = 2
00133     MEDIA_FORMAT_PROFILE_PNG_LRG_ICO,
00134     
00137     //Value of MEDIA_FORMAT_PROFILE_PNG_SM_ICO = 3
00138     MEDIA_FORMAT_PROFILE_PNG_SM_ICO
00139   };
00141   struct TToiMediaServerIconInfo {
00143     string Url;
00145     IToiDlnaService::TToiMediaFormatProfile Profile;
00146   };
00147   
00149   typedef sequence < TToiMediaServerIconInfo > TToiMediaServerIconInfoSequence;
00150   
00152   struct TToiMediaServerInfo {
00154     IToiDlnaService::TToiMediaServerUuid Uuid;
00156     string Name;
00158     string Vendor;
00160     IToiDlnaService::TToiServiceTypeSequence SupportedServices;
00162     boolean IsLocal;
00164     IToiDlnaService::TToiMediaServerIconInfoSequence Icons;
00165   };
00166   
00174   void GetMediaServers(out TToiMediaServerUuidSequence uuids);
00175   
00188   void GetMediaServerInfo(in TToiMediaServerUuid uuid, 
00189         out TToiMediaServerInfo info)
00190    raises (TToiInvalidArgumentException);
00191   
00220   //@ [ReturnAddress(Type=IToiDlnaContentDirectoryService)]
00221   //@ [IgnoredApplicationId(Position=1)]
00222   
00223   
00224   void CreateContentDirectoryInstance(in IToiApplicationService::TToiApplicationId applicationId, 
00225         in TToiMediaServerUuid uuid, 
00226         out string address)
00227    raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException, TToiOperationNotSupportedException);
00228   
00255   //@ [ReturnAddress(Type=IToiDlnaRendererManager)]
00256   //@ [IgnoredApplicationId(Position=1)]
00257   
00258   
00259   void CreateRendererInstance(in IToiApplicationService::TToiApplicationId applicationId, 
00260         out string address)
00261    raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException, TToiOperationNotSupportedException);
00262   
00263   
00264   
00277   void RegisterObserver(in IToiApplicationService::TToiApplicationId applicationId,
00278                         in string address)
00279     raises (TToiInvalidArgumentException);
00280   
00289   void ReleaseObserver(in string address)
00290     raises (TToiInvalidArgumentException); 
00291   
00292 };
00293 
00294 #endif