CDRMEventAddRemove Class Reference

class CDRMEventAddRemove : public MDRMEvent

DRM Rights Object notication event class Used as data structure in the notification service

DRMCommon.dll
Since
S60Rel2.6

Inherits from

Public Member Functions
~CDRMEventAddRemove ()
IMPORT_C void ExternalizeL ( RWriteStream &)
IMPORT_C HBufC8 * GetContentIDL ()
IMPORT_C void InternalizeL ( RReadStream &)
IMPORT_C CDRMEventAddRemove * NewL ( TAddRemoveEventStatus )
IMPORT_C CDRMEventAddRemove * NewLC ( TAddRemoveEventStatus )
IMPORT_C void SetContentIDL (const TDesC8 &)
IMPORT_C TAddRemoveEventStatus Status ()
Private Member Functions
CDRMEventAddRemove ( TAddRemoveEventStatus )
CDRMEventAddRemove (void)
CDRMEventAddRemove (const CDRMEventAddRemove &)
void ConstructL ()
CDRMEventAddRemove & operator= (const CDRMEventAddRemove &)
Inherited Functions
MDRMEvent::GetEventType(TDRMEventType &)const
MDRMEvent::MDRMEvent(const TDRMEventType &)
MDRMEvent::~MDRMEvent()
Private Attributes
HBufC8 * iContentID
TAddRemoveEventStatus iStatus
Inherited Attributes
MDRMEvent::iType

Constructor & Destructor Documentation

CDRMEventAddRemove(TAddRemoveEventStatus)

CDRMEventAddRemove ( TAddRemoveEventStatus aStatus ) [private]

Constructor

Parameters

TAddRemoveEventStatus aStatus the status of the event as TAddRemoveEventStatus

CDRMEventAddRemove(void)

CDRMEventAddRemove ( void ) [private]

C++ default constructor.

Parameters

void

CDRMEventAddRemove(const CDRMEventAddRemove &)

CDRMEventAddRemove ( const CDRMEventAddRemove & ) [private]

Parameters

const CDRMEventAddRemove &

~CDRMEventAddRemove()

IMPORT_C ~CDRMEventAddRemove ( ) [virtual]

Destructor

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

First Phase constructor

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aOutput ) [virtual]

ExternalizeL

Writes the objects data into a stream

Since
S60Rel2.6

Parameters

RWriteStream & aOutput : an output stream where to write

GetContentIDL()

IMPORT_C HBufC8 * GetContentIDL ( ) const [virtual]

GetContentIDL

Returns a pointer to newly reserved buffer that containts the content id. The caller must free the memory.

Since
S60Rel2.6

InternalizeL(RReadStream &)

IMPORT_C void InternalizeL ( RReadStream & aInput ) [virtual]

InternalizeL

Reads the objects data from a stream

Since
S60Rel2.6

Parameters

RReadStream & aInput : an input stream where to read from

NewL(TAddRemoveEventStatus)

IMPORT_C CDRMEventAddRemove * NewL ( TAddRemoveEventStatus aStatus ) [static]

NewL

Creates and instance of the CDRMEventAddRemove class and returns a pointer to it

Since
S60Rel3.0

Parameters

TAddRemoveEventStatus aStatus

NewLC(TAddRemoveEventStatus)

IMPORT_C CDRMEventAddRemove * NewLC ( TAddRemoveEventStatus aStatus ) [static]

NewLC

Creates and instance of the CDRMEventAddRemove class and returns a pointer to it Leaves the object in the cleanup stack

Since
S60Rel3.0

Parameters

TAddRemoveEventStatus aStatus

SetContentIDL(const TDesC8 &)

IMPORT_C void SetContentIDL ( const TDesC8 & aContentID ) [virtual]

SetContentIDL

Sets the content id of the object and leaves if an error occurs

Since
S60Rel2.6

Parameters

const TDesC8 & aContentID : Descriptor containing the content id

Status()

IMPORT_C TAddRemoveEventStatus Status ( ) const [virtual]

Status

Returns the Rights Object event status

Since
S60Rel2.6

operator=(const CDRMEventAddRemove &)

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

Parameters

const CDRMEventAddRemove &

Member Data Documentation

HBufC8 * iContentID

HBufC8 * iContentID [private]

TAddRemoveEventStatus iStatus

TAddRemoveEventStatus iStatus [private]