#include <fbs.h>
class RFbsSession : protected RSessionBase |
Public Member Enumerations | |
---|---|
enum | THeapFailType { EHeapFailTypeServerMemory, EHeapFailTypeHeapMemory } |
Public Member Functions | |
---|---|
RFbsSession() | |
TInt | AllocScanLineBuffer(TInt) |
IMPORT_C void | CallBack() |
IMPORT_C TInt | Connect() |
IMPORT_C TInt | Connect(RFs &) |
IMPORT_C void | Disconnect() |
HBufC8 * | GetDecompressionBuffer(TInt) |
HBufC8 * | GetExtraBuffer(TInt) |
IMPORT_C TInt | GetHeapSizes(TInt &, TInt &, TInt &) |
HBufC8 * | GetScanLineBuffer() |
IMPORT_C RFbsSession * | GetSession() |
IMPORT_C TUint8 * | HeapBase() |
IMPORT_C void | ResetCallBack() |
IMPORT_C TInt | ResourceCount() |
IMPORT_C TInt | SendCommand(TInt, TInt, TInt, TInt, TInt) |
TInt | SendCommand(TInt, const TIpcArgs &) |
void | SendCommand(TInt, const TIpcArgs &, TRequestStatus &) |
TInt | ServerSessionHandle() |
TInt | SessionHandle() |
IMPORT_C void | SetCallBack(TCallBack) |
void | SetCallBackPtr(TInt *) |
IMPORT_C TVersion | Version() |
Inherited Attributes | |
---|---|
RHandleBase::iHandle |
Inherited Enumerations | |
---|---|
RHandleBase:TAttributes | |
RSessionBase:TAttachMode |
A session with the font and bitmap server.
WARNING: For internal use ONLY. Compatibility is not guaranteed in future releases. Used for testing server side out of memory failures. Test
Allocates the buffer for decoding compressed rom bitmaps.
Internal use only.
Parameter | Description |
---|---|
aSize | Minimum size of the buffer required. If the buffer is too small an attempt to resize it will be made. |
Returns: KErrNone if successful, KErrNoMemory if the buffer was too small and could not be expanded.
IMPORT_C void | CallBack | ( | ) |
Triggers the most recently registered callback. This is mainly called by bitmaps when their twips size changes and when any FBSERV objects are closed to notify clients of a change that may affect their operation.
IMPORT_C TInt | Connect | ( | ) | [static] |
Creates a session with the Font and Bitmap server.
Returns: KErrNone, if successful; KErrNoMemory if there is not enough memory to create the session; otherwise another of the system-wide error codes.
Creates a session with the Font and Bitmap server.
Parameter | Description |
---|---|
aFileServer | A fuly constructed file server session |
Returns: KErrNone, if successful; KErrNoMemory if there is not enough memory to create the session; otherwise another of the system-wide error codes.
IMPORT_C void | Disconnect | ( | ) | [static] |
Closes the session with the Font and Bitmap server.
Gets a pointer to the buffer currently in use for decoding compressed mask bitmaps.
Internal use only.
Parameter | Description |
---|---|
aSize | Minimum size of the buffer required. If the buffer is too small an attempt to resize it will be made. |
Returns: The buffer area currently in use or NULL if there is no memory.
Gets a pointer to an extra buffer for general use.
Internal use only.
Parameter | Description |
---|---|
aSize | Minimum size of the buffer required. If the buffer is too small an attempt to resize it will be made. |
Returns: The buffer area currently in use or NULL if there is no memory.
Returns the current sizes of the FBServ default heap, the heap for large bitmaps, and the heap for small bitmaps.
Not supported in release builds.
Returns: KErrNone or one of the system wide error codes in debug mode, or KErrNotSupported in release mode.
HBufC8 * | GetScanLineBuffer | ( | ) |
Gets a reference to the buffer currently in use for decoding compressed rom bitmaps.
Internal use only.
Returns: The buffer area currently in use,
IMPORT_C RFbsSession * | GetSession | ( | ) | [static] |
Gets the current Font and Bitmap server session.
Returns: A pointer to the current session or NULL if Connect() has not been called yet.
IMPORT_C TUint8 * | HeapBase | ( | ) | const |
Gets the address of first location in the global shared heap containing fonts and bitmaps.
Returns: Pointer to the base of the shared heap.
IMPORT_C TInt | ResourceCount | ( | ) |
Returns the number of Font and Bitmap Server objects currently in use by this session.
Returns: The number of resources in use: bitmaps, fonts, typeface stores.
IMPORT_C TInt | SendCommand | ( | TInt | aMessage, |
TInt | aInt0 = 0, | |||
TInt | aInt1 = 0, | |||
TInt | aInt2 = 0, | |||
TInt | aInt3 = 0 | |||
) | const |
Utility function for passing commands to the server.
Parameter | Description |
---|---|
aMessage | Integer code for the message to pass - see TFbsMessage. |
aInt0 | Parameter 0 for the message. |
aInt1 | Parameter 1 for the message. |
aInt2 | Parameter 2 for the message. |
aInt3 | Parameter 3 for the message. |
Returns: Return code from RSessionBase::SendReceive().
void | SendCommand | ( | TInt | aMessage, |
const TIpcArgs & | aArgs, | |||
TRequestStatus & | aStatus | |||
) | const |
TInt | ServerSessionHandle | ( | ) | const |
Returns: A handle representing this session on the server.
IMPORT_C void | SetCallBack | ( | TCallBack | aCallBack | ) |
Sets the callback.
Parameter | Description |
---|---|
aCallBack | callback object to be called by CallBack(). Only one may be in use at a time and subsequent calls will displace previous calls. |
IMPORT_C TVersion | Version | ( | ) |
Gets the current Font and Bitmap server version.
Returns: The current version of the server.