CUpnpShowCommand Class Reference

class CUpnpShowCommand : public CBase

Inherits from

Constructor & Destructor Documentation

CUpnpShowCommand(MUpnpCommandObserver *)

CUpnpShowCommand(MUpnpCommandObserver *aObserver)[private]

Constructor

Since
S60 3.2

Parameters

MUpnpCommandObserver * aObserver(MUpnpCommandObserver*) The observer instance can be NULL

~CUpnpShowCommand()

~CUpnpShowCommand()[virtual]

Destructor.

Since
S60 3.2

Member Functions Documentation

ConstructL()

voidConstructL()[private]

Second phase constructor

Since
S60 3.2

IsAvailableL()

IMPORT_C TBoolIsAvailableL()[static]

Returns the availability information of the command.

Since
S60 3.2

NewL()

IMPORT_C CUpnpShowCommand *NewL()[static]

Creates a new UpnpCommand for image and video showing purposes. Does not instantiate Upnp Framework services yet at this point.

Leaves with KErrNotReady if Upnp dedicated IAP is not set, or with using standard e32err.h error code if construction fails.

Since
S60 3.2

NewL(MUpnpCommandObserver *)

IMPORT_C CUpnpShowCommand *NewL(MUpnpCommandObserver *aObserver)[static]

Creates a new UpnpCommand for image and video showing purposes. Does not instantiate Upnp Framework services yet at this point.

Leaves if the given observer instance is not valid.

Since
S60 3.2

Parameters

MUpnpCommandObserver * aObserver(MUpnpCommandObserver*) The observer instance

ShowImageL(const TDesC &)

IMPORT_C voidShowImageL(const TDesC &aFilename)

Shows the given images on a remote Upnp Media Rendering device. The method is asynchronous. Upnp Framework resources will be allocated, if not yet allocated (by calling StartShowingL).

MUpnpCommandObserver::CommandComplete callback method is used to delived the return the return code of the operation.

Leaves if the operation fails, or if the user cancels the operations. Standard system wide (e32err.h) error codes will be used.

Since
S60 3.2

Parameters

const TDesC & aFilename(const TDesC&) filename (including path)

ShowVideoL(const TDesC &)

IMPORT_C voidShowVideoL(const TDesC &aFilename)

Shows the given video on a remote Upnp Media Rendering device. The method is asynchronous. Upnp Framework resources will be allocated, if not yet allocated (by calling StartShowingL).

MUpnpCommandObserver::CommandComplete callback method is used to delived the return the return code of the operation.

Leaves if the operation fails, or if the user cancels the operations. Standard system wide (e32err.h) error codes will be used.

Since
S60 3.2

Parameters

const TDesC & aFilename(const TDesC&) filename (including path)

StartShowingL()

IMPORT_C voidStartShowingL()

Starts showing. Allocates Upnp Framework resources. The target rendering device will be queried from the user using an UI component. Local Media Server sharing will be activated (if not yet activated).

Leaves if the Upnp Framework resource allocation fails. Standard system wide (e32err.h) error codes will be used.

Since
S60 3.2

StopShowingL()

IMPORT_C voidStopShowingL()

Stops showing. Releases all Upnp Framework resources. Local Media Server sharing state will be returned to it's original state.

Leaves if the operation fails. Standard system wide (e32err.h) error codes will be used.

Since
S60 3.2

Member Data Documentation

CUpnpCommandCallbackAdapter * iAdapter

CUpnpCommandCallbackAdapter *iAdapter[private]

CUpnpCommand * iCommand

CUpnpCommand *iCommand[private]

MUpnpCommandObserver * iObserver

MUpnpCommandObserver *iObserver[private]