Motorola Mobility Confidential Restricted.
ToiDlnaService Interface Reference

Description

Service:
This is a service and can be accessed through toi.dlnaService

This is the main interface which the DLNA service registers with the system's name service. The interface is used by applications to access the DLNA network and create their own DLNA service control point instances.

The typical procedure to set up a control point session and communicate with a service in another DLNA device looks like this:

Interface Procedure
ToiDlnaService
ToiDlnaContentDirectoryService
ToiOperationManager
ToiDlnaContentDirectoryServiceCdsObject
  • Read object data and properties.
See also:
ToiDlnaContentDirectoryService
ToiOperationManager
ToiOperationOperationResultEvent
ToiDlnaContentDirectoryContainerChangedEvent
ToiDlnaMediaServerAppearedEvent
ToiDlnaMediaServerDisappearedEvent

import "ToiDlnaService.idl";

Inheritance diagram for ToiDlnaService:
ToiEventTarget

List of all members.

Public Member Functions

TToiMediaServerUuidSequence getMediaServers ()
ToiDlnaServiceMediaServerInfo getMediaServerInfo (in TToiMediaServerUuid uuid) raises (TToiInvalidArgumentException)
ToiOperationManager getDlnaOperationManager ()
ToiDlnaContentDirectoryService createContentDirectoryInstance (in TToiMediaServerUuid uuid) raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException, TToiOperationNotSupportedException)
ToiDlnaRendererManager createRendererInstance () raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException, TToiOperationNotSupportedException)

Public Attributes

Events
const long ON_MEDIA_SERVER_APPEARED = 600
const long ON_MEDIA_SERVER_DISAPPEARED = 601
TToiServiceType
const TToiServiceType SERVICE_TYPE_CONTENT_DIRECTORY = 0
TToiMediaFormatProfile
const TToiMediaFormatProfile MEDIA_FORMAT_PROFILE_JPEG_LRG_ICO = 0
const TToiMediaFormatProfile MEDIA_FORMAT_PROFILE_JPEG_SM_ICO = 1
const TToiMediaFormatProfile MEDIA_FORMAT_PROFILE_PNG_LRG_ICO = 2
const TToiMediaFormatProfile MEDIA_FORMAT_PROFILE_PNG_SM_ICO = 3

Public Types

typedef string TToiMediaServerUuid
typedef sequence
< TToiMediaServerUuid
TToiMediaServerUuidSequence
typedef long TToiServiceType
typedef sequence< TToiServiceTypeTToiServiceTypeSequence
typedef long TToiMediaFormatProfile
typedef sequence
< ToiDlnaServiceMediaServerIconInfo
TToiMediaServerIconInfoSequence

Member Typedef Documentation

Supported media format profiles of media server icons.

Universally unique identifier of a DLNA media server.

Sequence of unique DLNA media server identifiers.

The different kinds of DLNA services exposed by DLNA media servers.

A sequence of DLNA service types.


Member Function Documentation

This function creates a new Content Directory Service control point for a specific DLNA media server and associates it with the calling application.

When the application no longer needs the service, it should release it by calling ToiDlnaContentDirectoryService::releaseInstance().

Parameters:
uuidThe DLNA media server identifier.
Return values:
IToiDlnaContentDirectoryService
Exceptions:
TToiInvalidArgumentExceptionRaised if the application identifier is invalid.
TToiNotEnoughResourcesExceptionRaised if the system cannot create a new instance of the service.
TToiOperationNotSupportedExceptionRaised if the DLNA server does not support the Content Directory Service.
Technical Preview:
method CreateRendererInstance is a TECHNICAL PREVIEW, it may change. This function creates a new DLNA Media Renderer Manager for control via an external DMC. This also notifies the internal DLNA stack there is a renderer available. When the application no longer needs the service, it should release it by calling ToiDlnaRendererManager::releaseInstance()
Return values:
IToiDlnaRendererManager
Exceptions:
TToiInvalidArgumentExceptionRaised if the application identifier is invalid.
TToiNotEnoughResourcesExceptionRaised if the system cannot create a new instance of the manager.
TToiOperationNotSupportedExceptionRaised if the platform does not support the Dlna Renderer manager.
ToiOperationManager ToiDlnaService::getDlnaOperationManager ( )

Returns the operation manager that handles asynchronous operations. The procedure of executing asynchronous operations is generic and looks like this:

  • Get a handle to the operation manager.
  • Register an observer to get operation events from the operation manager.
  • Create an operation in order to get an operation identifier.
  • Call an asynchronous operation using the operation identifier.
  • Receive progress events for the asynchronous operation.
  • When the operation is completed, get result data (if any).
  • Release the operation or reuse the identifier for another asynchronous call.
Return values:
IToiOperationManager
ToiDlnaServiceMediaServerInfo ToiDlnaService::getMediaServerInfo ( in TToiMediaServerUuid  uuid) raises (TToiInvalidArgumentException)

Returns a list with device identifiers for the DLNA devices present in the network.

Parameters:
uuidThe DLNA media server identifier.
Return values:
infoThe DLNA media server information.
Exceptions:
TToiInvalidArgumentExceptionRaised if the uuid does not match any DLNA server.
TToiMediaServerUuidSequence ToiDlnaService::getMediaServers ( )

Returns a list with device identifiers for the DLNA devices present in the network.

Return values:
uuidsThe DLNA media server uuid identifiers.

Member Data Documentation

Large JPEG icon: size 120x120 pixels, MIME type "image/jpeg".

This constant can also be accessed from toi.consts.ToiDlnaService.MEDIA_FORMAT_PROFILE_JPEG_LRG_ICO.

Small JPEG icon: size 48x48 pixels, MIME type "image/jpeg".

This constant can also be accessed from toi.consts.ToiDlnaService.MEDIA_FORMAT_PROFILE_JPEG_SM_ICO.

Large PNG icon: size 120x120 pixels, MIME type "image/png".

This constant can also be accessed from toi.consts.ToiDlnaService.MEDIA_FORMAT_PROFILE_PNG_LRG_ICO.

Small PNG icon: size 48x48 pixels, MIME type "image/png".

This constant can also be accessed from toi.consts.ToiDlnaService.MEDIA_FORMAT_PROFILE_PNG_SM_ICO.

This is an Event identifier for ToiDlnaMediaServerAppearedEvent.

This constant can also be accessed from toi.consts.ToiDlnaService.ON_MEDIA_SERVER_APPEARED.

This is an Event identifier for ToiDlnaMediaServerDisappearedEvent.

This constant can also be accessed from toi.consts.ToiDlnaService.ON_MEDIA_SERVER_DISAPPEARED.

The Content Directory Service used to browse and search for media files.

This constant can also be accessed from toi.consts.ToiDlnaService.SERVICE_TYPE_CONTENT_DIRECTORY.