#include "streammap.h"
class COpenWfcStreamMap : public CBase |
Public Member Functions | |
---|---|
CSurfaceStream * | AcquireL(const TSurfaceId &) |
IMPORT_C TInt | Count() |
CSurfaceStream * | Find(const TSurfaceId &) |
IMPORT_C RHeap * | GetMainHeap() |
IMPORT_C COpenWfcStreamMap & | InstanceL() |
TInt | RegisterScreenNotifications(TInt, TInt, TInt) |
CExtensionContainer * | RegisteredScreenNotifications(TInt) |
IMPORT_C TInt | Reserve(TInt) |
void | SetMainHeap() |
RSurfaceManager & | SurfaceManager() |
TInt | UnregisterScreenNotifications(TInt) |
Protected Member Functions | |
---|---|
COpenWfcStreamMap() | |
~COpenWfcStreamMap() | |
TInt | LockDestroy(CSurfaceStream *) |
CSurfaceStream * | AcquireL | ( | const TSurfaceId & | aSurfaceId | ) |
Look up a specified TSurfaceId key in the associative array and return a pointer to the corresponding to a native stream. The reference of the native stream is incremented by one. If no native stream is found a new native stream instance is created.
Parameter | Description |
---|---|
aSurfaceId | The TSurfaceId key to look up |
Returns: A pointer to the corresponding native stream, if the specified TSurfacId was found NULL if the look up did not succeed
IMPORT_C TInt | Count | ( | ) |
Query the number of elements stored in the stream hash map.
Returns: The number of the key-value pairs stored
CSurfaceStream * | Find | ( | const TSurfaceId & | aSurfaceId | ) |
Look up a specified TSurfaceId key in the associative array and return a pointer to the corresponding to a native stream. The reference counter of the native stream is incremented by one.
Parameter | Description |
---|---|
aSurfaceId | The TSurfaceId key to look up |
Returns: A pointer to the corresponding native stream, if the specified TSurfacId was found NULL if the look up did not succeed
IMPORT_C RHeap * | GetMainHeap | ( | ) |
Returns a pointer to the main heap
Returns: A pointer to the main heap
IMPORT_C COpenWfcStreamMap & | InstanceL | ( | ) | [static] |
Returns a reference to the singleton instance.
Returns: The pointer to the singleton instance
TInt | LockDestroy | ( | CSurfaceStream * | aStream | ) | [protected] |
Destroys the specified native stream IF the native stream reference counter is zero. The counter reference of the native stream is tested prior its destruction and if positive the destruction will not happen
Parameter | Description |
---|---|
aStream | The stream to be destroyed |
Returns: KErrNone if the native stream is removed KErrArgument if the parameter is invalid KErrInUse if the stream has a owner KErrNotFound if the TSurfaceId key was not found
Register a screen number for surface update notifications.
Parameter | Description |
---|---|
aScreenNum | The screen for which we enable the notification mechanism |
aPriority | The internal version |
Returns: KErrNone if operation is completed successfully
CExtensionContainer * | RegisteredScreenNotifications | ( | TInt | aScreenNum | ) |
Retieves the screen updater associate with the specified screen
Parameter | Description |
---|---|
aScreenNum | The screen number |
Returns: Pointer to screen updater id successful or NULL otherwise
Expands the array to accommodate a specified number of key-value pairs. If the hash map already has enough space for the specified number of elements, no action is taken. Any elements already in the map are retained.
Parameter | Description |
---|---|
aExpand | The number of key-value pairs for which space should be allocated. |
Returns: KErrNone if the operation completed aInternalVersion. KErrNoMemory if sufficient memory could not be allocated.
RSurfaceManager & | SurfaceManager | ( | ) |
Returns a reference to the surface manager.
Returns: A reference to the local SurfaceManager