#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() |
TBool | CanConnectToServer() |
IMPORT_C TInt | Connect() |
IMPORT_C TInt | Connect(RFs &) |
IMPORT_C TInt | ConveyOogmMessage(TFbsOogmMessage &) |
IMPORT_C void | Disconnect() |
HBufC8 * | GetDecompressionBuffer(TInt) |
HBufC8 * | GetExtraBuffer(TInt) |
IMPORT_C TInt | GetGlyphCacheMetrics(TGlyphCacheMetrics &) |
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 &) |
IMPORT_C 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
Enumerator | Value | Description |
---|---|---|
EHeapFailTypeServerMemory | ||
EHeapFailTypeHeapMemory |
IMPORT_C | RFbsSession | ( | ) |
Allocates the buffer for decoding compressed rom bitmaps.
Internal use only.
Parameters | |
---|---|
aSize | Minimum size of the buffer required. If the buffer is too small an attempt to resize it will be made. |
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.
TBool | CanConnectToServer | ( | ) | [static] |
IMPORT_C TInt | Connect | ( | ) | [static] |
Creates a session with the Font and Bitmap server.
IMPORT_C TInt | Connect | ( | RFs & | aFileServer | ) | [static] |
Creates a session with the Font and Bitmap server.
Parameters | |
---|---|
aFileServer | A fuly constructed file server session |
IMPORT_C TInt | ConveyOogmMessage | ( | TFbsOogmMessage & | aOogmMessage | ) |
Perform the IPC to convey the desired OoGM action to the glyph atlas.
The server-side platform security policy applied to this method is such that it is only useable by the GOoM framework.
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.
Parameters | |
---|---|
aSize | Minimum size of the buffer required. If the buffer is too small an attempt to resize it will be made. |
IMPORT_C TInt | GetGlyphCacheMetrics | ( | TGlyphCacheMetrics & | aGlyphCacheMetrics | ) |
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.
Test
HBufC8 * | GetScanLineBuffer | ( | ) |
Gets a reference to the buffer currently in use for decoding compressed rom bitmaps.
Internal use only.
IMPORT_C RFbsSession * | GetSession | ( | ) | [static] |
Gets the current Font and Bitmap server session.
IMPORT_C TUint8 * | HeapBase | ( | ) | const |
Gets the address of first location in the global shared heap containing fonts and bitmaps.
IMPORT_C TInt | ResourceCount | ( | ) |
Returns the number of Font and Bitmap Server objects currently in use by this session.
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.
Parameters | |
---|---|
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. |
void | SendCommand | ( | TInt | aMessage, |
const TIpcArgs & | aArgs, | |||
TRequestStatus & | aStatus | |||
) | const |
IMPORT_C TInt | ServerSessionHandle | ( | ) | const |