IToiDlnaService.idl
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
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
00092
00093
00094 interface IToiDlnaService {
00095
00097 typedef string TToiMediaServerUuid;
00098
00100 typedef sequence < TToiMediaServerUuid > TToiMediaServerUuidSequence;
00101
00104 enum TToiServiceType
00105 {
00106
00109
00110 SERVICE_TYPE_CONTENT_DIRECTORY
00111 };
00113 typedef sequence < TToiServiceType > TToiServiceTypeSequence;
00114
00117 enum TToiMediaFormatProfile
00118 {
00119
00122
00123 MEDIA_FORMAT_PROFILE_JPEG_LRG_ICO,
00124
00127
00128 MEDIA_FORMAT_PROFILE_JPEG_SM_ICO,
00129
00132
00133 MEDIA_FORMAT_PROFILE_PNG_LRG_ICO,
00134
00137
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
00221
00222
00223
00224 void CreateContentDirectoryInstance(in IToiApplicationService::TToiApplicationId applicationId,
00225 in TToiMediaServerUuid uuid,
00226 out string address)
00227 raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException, TToiOperationNotSupportedException);
00228
00255
00256
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