class CUpnpShowCommand : public CBase |
Public Member Functions | |
---|---|
~CUpnpShowCommand () | |
IMPORT_C TBool | IsAvailableL () |
IMPORT_C CUpnpShowCommand * | NewL () |
IMPORT_C CUpnpShowCommand * | NewL ( MUpnpCommandObserver *) |
IMPORT_C void | ShowImageL (const TDesC &) |
IMPORT_C void | ShowVideoL (const TDesC &) |
IMPORT_C void | StartShowingL () |
IMPORT_C void | StopShowingL () |
Private Member Functions | |
---|---|
CUpnpShowCommand ( MUpnpCommandObserver *) | |
void | ConstructL () |
Private Attributes | |
---|---|
CUpnpCommandCallbackAdapter * | iAdapter |
CUpnpCommand * | iCommand |
MUpnpCommandObserver * | iObserver |
CUpnpShowCommand | ( | MUpnpCommandObserver * | aObserver | ) | [private] |
Constructor
MUpnpCommandObserver * aObserver | (MUpnpCommandObserver*) The observer instance can be NULL |
IMPORT_C TBool | IsAvailableL | ( | ) | [static] |
Returns the availability information of the command.
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.
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.
MUpnpCommandObserver * aObserver | (MUpnpCommandObserver*) The observer instance |
IMPORT_C void | ShowImageL | ( | 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.
const TDesC & aFilename | (const TDesC&) filename (including path) |
IMPORT_C void | ShowVideoL | ( | 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.
const TDesC & aFilename | (const TDesC&) filename (including path) |
IMPORT_C void | StartShowingL | ( | ) |
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.
IMPORT_C void | StopShowingL | ( | ) |
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.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.