#include <w32std.h>
class CWsGraphic : public CBase |
Public Member Functions | |
---|---|
~CWsGraphic() | |
IMPORT_C void | Destroy() |
IMPORT_C const TWsGraphicId & | Id() |
IMPORT_C TBool | IsActive() |
Protected Member Functions | |
---|---|
CWsGraphic() | |
IMPORT_C void | BaseConstructL(TUid, TUid, const TDesC8 &) |
IMPORT_C void | BaseConstructL(TUid, const TDesC8 &) |
IMPORT_C void | BaseConstructL(const TWsGraphicId &, TUid, const TDesC8 &) |
IMPORT_C TInt | Flush() |
IMPORT_C void | SendMessage(const TDesC8 &) |
IMPORT_C TInt | SendSynchronMessage(const TDesC8 &) |
IMPORT_C RWsSession & | Session() |
IMPORT_C void | SetGraphicExtension(MWsObjectProvider *) |
virtual IMPORT_C TInt | Share(TSecureId) |
virtual IMPORT_C TInt | ShareGlobally() |
virtual IMPORT_C TInt | UnShare(TSecureId) |
virtual IMPORT_C TInt | UnShareGlobally() |
Client representation of a window-server-side piece of artwork owned by this Client
IMPORT_C void | BaseConstructL | ( | const TWsGraphicId & | aReplace, |
TUid | aType, | |||
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
Parameter | Description |
---|---|
aReplace | Graphic artwork which will be replaced. |
aType | New graphic artwork type. |
aData | User specific data. |
IMPORT_C void | Destroy | ( | ) |
Destroys the corresponding CWsGraphicDrawer instance on the server
IMPORT_C TInt | Flush | ( | ) | const [protected] |
Flushes window server command buffer
Returns: One of system-wide error codes.
IMPORT_C const TWsGraphicId & | Id | ( | ) | const |
Returns graphic artwork Id.
Returns: Graphic artwork Id. KNullWsGraphicId if graphic artwork is not active.
IMPORT_C TBool | IsActive | ( | ) | const |
Checks whether a peer of this graphic artwork has been fully constructed on the server.
Returns: ETrue if this graphic artwork has a peer CWsGraphic on the server.
IMPORT_C void | SendMessage | ( | const TDesC8 & | aData | ) | const [protected] |
Sends message to this graphic artwork peer on the server.
Parameter | Description |
---|---|
aData | User specific data. |
IMPORT_C void | SetGraphicExtension | ( | MWsObjectProvider * | aExt | ) | [protected] |
Explicitly shares this graphic artwork with client sessions with the specified Secure ID.
Parameter | Description |
---|---|
aClientId | the Secure ID of the client sessions to share with. |
Returns: KErrNone If the graphic artwork was shared, else one of the system-wide error codes.
IMPORT_C TInt | ShareGlobally | ( | ) | [protected, virtual] |
Shares the graphic artwork with all the client sessions. Sharing globally trumps explicit shares.
Returns: KErrNone if the graphic is globally shared, else one of the system-wide error codes.
Stops this graphic artwork from being shared with all client sessions with the specific Secure ID. ShareGlobally() trumps explicit sharing.
Parameter | Description |
---|---|
aClientId | the Secure ID of the client sessions to not share with |
Returns: KErrNone if the graphic artwork is no longer shared, KErrNotFound if the graphic was not shared anyway, else one of the system-wide error codes
IMPORT_C TInt | UnShareGlobally | ( | ) | [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().
Returns: KErrNone if the graphic is not globally shared, else one of the system-wide error codes.