CWsGraphic Class Reference

class CWsGraphic : public CBase

Client representation of a window-server-side piece of artwork owned by this Client

Inherits from

Constructor & Destructor Documentation

CWsGraphic()

IMPORT_CCWsGraphic()[protected]

Default Constructor.

~CWsGraphic()

IMPORT_C~CWsGraphic()

Destructor.

Member Functions Documentation

BaseConstructL(TUid, TUid, const TDesC8 &)

IMPORT_C voidBaseConstructL(TUidaUid,
TUidaType,
const TDesC8 &aData
)[protected]
Constructs a piece of non-transient graphic artwork.
capability
ProtServ

Parameters

TUid aUidGraphic artwork UID.
TUid aTypeGraphic artwork type.
const TDesC8 & aDataUser specific data.

BaseConstructL(TUid, const TDesC8 &)

IMPORT_C voidBaseConstructL(TUidaType,
const TDesC8 &aData
)[protected]

Constructs a piece of transient graphic artwork.

Parameters

TUid aTypeGraphic artwork type.
const TDesC8 & aDataUser specific data.

BaseConstructL(const TWsGraphicId &, TUid, const TDesC8 &)

IMPORT_C voidBaseConstructL(const TWsGraphicId &aReplace,
TUidaType,
const TDesC8 &aData
)[protected]

Atomically replace the artwork that already exists with this artwork. If failure to properly construct the replacement artwork occurs, the replacee artwork will remain

Parameters

const TWsGraphicId & aReplaceGraphic artwork which will be replaced.
TUid aTypeNew graphic artwork type.
const TDesC8 & aDataUser specific data.

BaseConstructL()

voidBaseConstructL()[private]

Completes construction of the baseclass. All the overloaded BaseConstructL() methods should invoke this method to complete the construction of the baseclass.

CWsGraphic_Reserved1()

IMPORT_C TIntCWsGraphic_Reserved1()[private, virtual]

CWsGraphic_Reserved2()

IMPORT_C TIntCWsGraphic_Reserved2()[private, virtual]

CWsGraphic_Reserved3()

IMPORT_C TIntCWsGraphic_Reserved3()[private, virtual]

Destroy()

IMPORT_C voidDestroy()

Destroys the corresponding CWsGraphicDrawer instance on the server

Flush()

IMPORT_C TIntFlush()const [protected]

Flushes window server command buffer

HandleMessage(const TDesC8 &)

voidHandleMessage(const TDesC8 &aData)[private, pure virtual]

Handles message from this graphic artwork peer on the server.

Parameters

const TDesC8 & aDataMessage from peer CWsGraphicDrawer.

Id()

IMPORT_C const TWsGraphicId &Id()const

Returns graphic artwork Id.

IsActive()

IMPORT_C TBoolIsActive()const

Checks whether a peer of this graphic artwork has been fully constructed on the server.

OnClientClose()

IMPORT_C voidOnClientClose()[private, virtual]

Derived class can override this method to provide custom operations when the client is closed.

OnReplace()

voidOnReplace()[private, pure virtual]

Handles custom operation when this graphic artwork is replaced. When this method is invoked, the replaced peer CWsGraphicDrawer on the server has been destroyed.

SendMessage(const TDesC8 &)

IMPORT_C voidSendMessage(const TDesC8 &aData)const [protected]

Sends message to this graphic artwork peer on the server.

Parameters

const TDesC8 & aDataUser specific data.

SendSynchronMessage(const TDesC8 &)

IMPORT_C TIntSendSynchronMessage(const TDesC8 &aData)const [protected]

Parameters

const TDesC8 & aData

Session()

IMPORT_C RWsSession &Session()[protected]

SetGraphicExtension(MWsObjectProvider *)

IMPORT_C voidSetGraphicExtension(MWsObjectProvider *aExt)[protected]

Parameters

MWsObjectProvider * aExt

Share(TSecureId)

IMPORT_C TIntShare(TSecureIdaClientId)[protected, virtual]

Explicitly shares this graphic artwork with client sessions with the specified Secure ID.

Parameters

TSecureId aClientIdthe Secure ID of the client sessions to share with.

ShareGlobally()

IMPORT_C TIntShareGlobally()[protected, virtual]

Shares the graphic artwork with all the client sessions. Sharing globally trumps explicit shares.

UnShare(TSecureId)

IMPORT_C TIntUnShare(TSecureIdaClientId)[protected, virtual]

Stops this graphic artwork from being shared with all client sessions with the specific Secure ID. ShareGlobally() trumps explicit sharing.

Parameters

TSecureId aClientIdthe Secure ID of the client sessions to not share with

UnShareGlobally()

IMPORT_C TIntUnShareGlobally()[protected, virtual]

Prevents this graphic artwork from being shared with all the client sessions. A graphic artwork that isn't shared explicitly is only available to clients it has been explicitly shared with using Share().

Member Data Documentation

CPimpl * iPimpl

CPimpl *iPimpl[private]

TInt iWsGraphicSpare

TInt iWsGraphicSpare[private]