Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: fbs.h
Link against: fbscli.lib

Class RFbsSession

class RFbsSession : protected RSessionBase;

Description

A session with the font and bitmap server.

Derivation

Members

Defined in RFbsSession:
CallBack(), Connect(), Connect(), Disconnect(), GetSession(), HeapBase(), RFbsSession(), ResetCallBack(), ResourceCount(), SendCommand(), SessionHandle(), SetCallBack(), Version()

Inherited from RHandleBase:
Attributes(), Close(), Duplicate(), FullName(), Handle(), HandleInfo(), Name(), SetHandle(), SetHandleNC(), iHandle

Inherited from RSessionBase:
CreateSession(), EAutoAttach, EExplicitAttach, Open(), Send(), SendReceive(), SetReturnedHandle(), ShareAuto(), ShareProtected(), TAttachMode


Construction and destruction


RFbsSession()

IMPORT_C RFbsSession();

Description

[Top]


Member functions


Connect()

static IMPORT_C TInt Connect();

Description

Creates a session with the Font and Bitmap server.

Return value

TInt

KErrNone, if successful; KErrNoMemory if there is not enough memory to create the session; otherwise another of the system-wide error codes.


Connect()

static IMPORT_C TInt Connect(RFs &aFileServer);

Description

Creates a session with the Font and Bitmap server.

Parameters

RFs &aFileServer

A fuly constructed file server session

Return value

TInt

KErrNone, if successful; KErrNoMemory if there is not enough memory to create the session; otherwise another of the system-wide error codes.


Disconnect()

static IMPORT_C void Disconnect();

Description

Closes the session with the Font and Bitmap server.


GetSession()

static IMPORT_C RFbsSession *GetSession();

Description

Gets the current Font and Bitmap server session.

Return value

RFbsSession *

A pointer to the current session or NULL if Connect() has not been called yet.


CallBack()

IMPORT_C void CallBack();

Description

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.


SetCallBack()

IMPORT_C void SetCallBack(TCallBack aCallBack);

Description

Sets the callback.

Parameters

TCallBack aCallBack

callback object to be called by CallBack(). Only one may be in use at a time and subsequent calls will displace previous calls.


ResetCallBack()

IMPORT_C void ResetCallBack();

Description

Resets the callback.


ResourceCount()

IMPORT_C TInt ResourceCount();

Description

Returns the number of Font and Bitmap Server objects currently in use by this session.

Return value

TInt

The number of resources in use: bitmaps, fonts, typeface stores.


SendCommand()

IMPORT_C TInt SendCommand(TInt aMessage, TInt aInt0=0, TInt aInt1=0, TInt aInt2=0, TInt aInt3=0) const;

Description

Utility function for passing commands to the server.

Parameters

TInt aMessage

Integer code for the message to pass - see TFbsMessage.

TInt aInt0

Parameter 0 for the message.

TInt aInt1

Parameter 1 for the message.

TInt aInt2

Parameter 2 for the message.

TInt aInt3

Parameter 3 for the message.

Return value

TInt

Return code from RSessionBase::SendReceive().


Version()

IMPORT_C TVersion Version();

Description

Gets the current Font and Bitmap server version.

Return value

TVersion

The current version of the server.


HeapBase()

IMPORT_C TUint8 *HeapBase() const;

Description

Gets the address of first location in the global shared heap containing fonts and bitmaps.

Return value

TUint8 *

Pointer to the base of the shared heap.


SessionHandle()

inline TInt SessionHandle() const;

Description

Return value

TInt