RDRMNotifierClient Class Reference

class RDRMNotifierClient : public RSessionBase

This class handles all client/server communications.

DRMCommon.dll
Since
S60Rel2.6

Inherits from

Public Member Functions
RDRMNotifierClient ( TDRMEventType *, TDRMEventType *, TPtr8 *, TPtr8 *)
~RDRMNotifierClient ()
void CancelRequest ()
void Close ()
TInt Connect (void)
void RegisterForType ( TDRMEventType , HBufC8 *)
void SendEvent ( TRequestStatus &)
void UnRegisterFromType ( TDRMEventType , HBufC8 *)
void WaitForCompletion ( TRequestStatus &)
Private Member Functions
RDRMNotifierClient (const RDRMNotifierClient &)
RDRMNotifierClient & operator= (const RDRMNotifierClient &)
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
TPtr8 * iData
TDRMEventType * iEventType
TDRMEventType * iEventTypeWait
TPtr8 * iWaitData
TPckg < TInt > numdata
Inherited Attributes
RHandleBase::iHandle

Constructor & Destructor Documentation

RDRMNotifierClient(TDRMEventType *, TDRMEventType *, TPtr8 *, TPtr8 *)

RDRMNotifierClient ( TDRMEventType * aEventType,
TDRMEventType * aEventTypeWait,
TPtr8 * aPtr,
TPtr8 * aWaitPtr
)

C++ default constructor.

Parameters

TDRMEventType * aEventType
TDRMEventType * aEventTypeWait
TPtr8 * aPtr
TPtr8 * aWaitPtr

RDRMNotifierClient(const RDRMNotifierClient &)

RDRMNotifierClient ( const RDRMNotifierClient & ) [private]

Parameters

const RDRMNotifierClient &

~RDRMNotifierClient()

~RDRMNotifierClient ( ) [virtual]

Destructor.

Member Functions Documentation

CancelRequest()

void CancelRequest ( )

CancelRequest()

Used when the object is being destroyed. All calls are cancelled and the server side will get a notification to remove all notifications from their lists

Since
S60Rel2.6

Close()

void Close ( )

Connect(void)

TInt Connect ( void )
This method opens a connection to the server.
Since
S60Rel2.6 Return Symbian OS / DRM Engine specific error code.

Parameters

void

RegisterForType(TDRMEventType, HBufC8 *)

void RegisterForType ( TDRMEventType aEventType,
HBufC8 * aURI = 0
)

RegisterForType

Register to the server to listen to specific event types, if a URI is provided notifications of the type that have that URI as affected URI will get notified

Since
S60Rel2.6

Parameters

TDRMEventType aEventType the event type to listen to
HBufC8 * aURI = 0 optional URI to limit the C/S communication

SendEvent(TRequestStatus &)

void SendEvent ( TRequestStatus & aStatus )

SendEvent

Sends an event to the notifier server, the request status is updated when all the notifications have been forwarded

Since
S60Rel2.6

Parameters

TRequestStatus & aStatus the status will be updated when all notifications have been forwarded

UnRegisterFromType(TDRMEventType, HBufC8 *)

void UnRegisterFromType ( TDRMEventType aEventType,
HBufC8 * aURI = 0
)

UnRegisterFromType

Unregister from the server from listening to specific event types, if a URI is provided notifications of the type that have that URI as affected URI will get unregistered

Since
S60Rel2.6

Parameters

TDRMEventType aEventType the event type to listen to
HBufC8 * aURI = 0 optional URI to limit the C/S communication

WaitForCompletion(TRequestStatus &)

void WaitForCompletion ( TRequestStatus & aStatus )

WaitForCompletion

Waits for notifications. When the status is completed a notification has been received.

Since
S60Rel2.6

Parameters

TRequestStatus & aStatus the status will be updated when the a notification has been received

operator=(const RDRMNotifierClient &)

RDRMNotifierClient & operator= ( const RDRMNotifierClient & ) [private]

Parameters

const RDRMNotifierClient &

Member Data Documentation

TPtr8 * iData

TPtr8 * iData [private]

TDRMEventType * iEventType

TDRMEventType * iEventType [private]

TDRMEventType * iEventTypeWait

TDRMEventType * iEventTypeWait [private]

TPtr8 * iWaitData

TPtr8 * iWaitData [private]

TPckg< TInt > numdata

TPckg < TInt > numdata [private]