RUpnpContentServerClient Class Reference

class RUpnpContentServerClient : public RSessionBase

RUpnpContentServerClient class is used to create session and a connection to UpnpContentServer

upnpcontentserverclient.lib
Since
S60 3.1

Inherits from

Public Member Functions
RUpnpContentServerClient()
IMPORT_C voidChangeSharedContentL(UpnpContentServer::TUpnpMediaType, const CArrayFix< TInt > &, TRequestStatus &)
IMPORT_C voidClose()
IMPORT_C voidGetSelectionContentL(UpnpContentServer::TUpnpMediaType, TRequestStatus &)
IMPORT_C voidGetSelectionContentResultL(CDesCArray &)
IMPORT_C voidGetSelectionIndexesL(UpnpContentServer::TUpnpMediaType, TRequestStatus &)
IMPORT_C voidGetSelectionIndexesResultL(CArrayFix< TInt > &)
IMPORT_C voidOpenL()
IMPORT_C voidRefreshSharedContentL(UpnpContentServer::TUpnpMediaType, TRequestStatus &)
IMPORT_C voidStartConnectionMonitorL(TInt, TRequestStatus &)
IMPORT_C voidStartUploadListenerL()
IMPORT_C voidStopConnectionMonitorL(TRequestStatus &)
IMPORT_C voidStopUploadListenerL()
Private Member Functions
voidPrepareReceiveBuffersL(TInt)
Inherited Functions
RHandleBase::Attributes()const
RHandleBase::BTraceId()const
RHandleBase::DoExtendedClose()
RHandleBase::Duplicate(const RThread &,TOwnerType)
RHandleBase::FullName()const
RHandleBase::FullName(TDes &)const
RHandleBase::Handle()const
RHandleBase::HandleInfo(THandleInfo *)
RHandleBase::Name()const
RHandleBase::NotifyDestruction(TRequestStatus &)
RHandleBase::Open(const TFindHandleBase &,TOwnerType)
RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
RHandleBase::RHandleBase()
RHandleBase::RHandleBase(TInt)
RHandleBase::SetHandle(TInt)
RHandleBase::SetHandleNC(TInt)
RSessionBase::CreateSession(RServer2,const TVersion &)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *)
RSessionBase::Open(RMessagePtr2,TInt,TOwnerType)
RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Open(TInt,TOwnerType)
RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Send(TInt)const
RSessionBase::Send(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt)const
RSessionBase::SendReceive(TInt,TRequestStatus &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSessionBase::SetReturnedHandle(TInt)
RSessionBase::SetReturnedHandle(TInt,RHandleBase &)
RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &)
RSessionBase::ShareAuto()
RSessionBase::ShareProtected()
Inherited Enumerations
RHandleBase:TAttributes
RSessionBase:TAttachMode
Private Attributes
HBufC8 *iContentBuffer
TPtr8 iContentBufferPtr
HBufC8 *iReceiveBuffer
TPtr8 iReceiveBufferPtr
CBufFlat *iSendBuffer
TPtr8 iSendBufferPtr
Inherited Attributes
RHandleBase::iHandle

Constructor & Destructor Documentation

RUpnpContentServerClient()

IMPORT_CRUpnpContentServerClient()

C++ default constructor.

Member Functions Documentation

ChangeSharedContentL(UpnpContentServer::TUpnpMediaType, const CArrayFix< TInt > &, TRequestStatus &)

IMPORT_C voidChangeSharedContentL(UpnpContentServer::TUpnpMediaTypeaType,
const CArrayFix< TInt > &aMarkedItems,
TRequestStatus &aStatus
)
Sends the selected indexes to server and starts sharing
Since
S60 3.2

Parameters

UpnpContentServer::TUpnpMediaType aTypeType of media
const CArrayFix< TInt > & aMarkedItemsList of selected indexes
TRequestStatus & aStatusTRequestStatus for async operation.

Close()

IMPORT_C voidClose()
Closes the connection with Upnp Content Server
Since
S60 3.1

GetSelectionContentL(UpnpContentServer::TUpnpMediaType, TRequestStatus &)

IMPORT_C voidGetSelectionContentL(UpnpContentServer::TUpnpMediaTypeaType,
TRequestStatus &aStatus
)
Gets the names of existed albums/playlists
Since
S60 3.1

Parameters

UpnpContentServer::TUpnpMediaType aTypeType of media
TRequestStatus & aStatusTRequestStatus for async operation

GetSelectionContentResultL(CDesCArray &)

IMPORT_C voidGetSelectionContentResultL(CDesCArray &aIDArray)
Ask the result of GetSelectionContentL call Should be used after the GetSelectionContentL has completed.
Since
S60 3.1

Parameters

CDesCArray & aIDArrayArray to add selection items

GetSelectionIndexesL(UpnpContentServer::TUpnpMediaType, TRequestStatus &)

IMPORT_C voidGetSelectionIndexesL(UpnpContentServer::TUpnpMediaTypeaType,
TRequestStatus &aStatus
)
Gets the users previous selections as list of selected indexes
Since
S60 3.1

Parameters

UpnpContentServer::TUpnpMediaType aTypeType of media
TRequestStatus & aStatusTRequestStatus for async operation.

GetSelectionIndexesResultL(CArrayFix< TInt > &)

IMPORT_C voidGetSelectionIndexesResultL(CArrayFix< TInt > &aMarkedItems)
Ask the result of GetSelectionIndexesL call
Since
S60 3.1

Parameters

CArrayFix< TInt > & aMarkedItemsArray to hold the items

OpenL()

IMPORT_C voidOpenL()
Creates new session to Upnp Content Server
Since
S60 3.1

PrepareReceiveBuffersL(TInt)

voidPrepareReceiveBuffersL(TIntaSize)[private]
Free previous receive buffers and allocate new
Since
S60 3.1

Parameters

TInt aSizeThe size of the buffer

RefreshSharedContentL(UpnpContentServer::TUpnpMediaType, TRequestStatus &)

IMPORT_C voidRefreshSharedContentL(UpnpContentServer::TUpnpMediaTypeaType,
TRequestStatus &aStatus
)
Refresh the shared content
Since
S60 3.1

Parameters

UpnpContentServer::TUpnpMediaType aTypeType of media
TRequestStatus & aStatusTRequestStatus for async operation.

StartConnectionMonitorL(TInt, TRequestStatus &)

IMPORT_C voidStartConnectionMonitorL(TIntaIapId,
TRequestStatus &aStatus
)
Start connection monitor in content server Handles stopping of media server in case of WLAN is lost
Since
S60 3.1

Parameters

TInt aIapIdAccess point id
TRequestStatus & aStatusTRequestStatus for async operation

StartUploadListenerL()

IMPORT_C voidStartUploadListenerL()
Starts the media server upload listener Not supported
Since
S60 3.1

StopConnectionMonitorL(TRequestStatus &)

IMPORT_C voidStopConnectionMonitorL(TRequestStatus &aStatus)
Stop connection monitor in content server
Since
S60 3.1

Parameters

TRequestStatus & aStatusTRequestStatus for async operation

StopUploadListenerL()

IMPORT_C voidStopUploadListenerL()
Stops the media server upload listener Not supported
Since
S60 3.1

Member Data Documentation

HBufC8 * iContentBuffer

HBufC8 *iContentBuffer[private]

Buffer for receiving content for sharing UI separate buffer because of multiple async requests Owned

TPtr8 iContentBufferPtr

TPtr8 iContentBufferPtr[private]

Buffer for receiving content for sharing UI separate buffer because of multiple async requests

HBufC8 * iReceiveBuffer

HBufC8 *iReceiveBuffer[private]

General buffer for receiving data Owned

TPtr8 iReceiveBufferPtr

TPtr8 iReceiveBufferPtr[private]

General buffer for receiving data

CBufFlat * iSendBuffer

CBufFlat *iSendBuffer[private]

General buffer for sending data Owned

TPtr8 iSendBufferPtr

TPtr8 iSendBufferPtr[private]

General buffer for sending data