Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from RHandleBase:

Inherited from RSessionBase:


Construction and destruction


RFbsSession()

IMPORT_C RFbsSession();

Description

[Top]


Member functions


Connect()

IMPORT_C static 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(RFs &)

IMPORT_C static 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()

IMPORT_C static void Disconnect();

Description

Closes the session with the Font and Bitmap server.


GetSession()

IMPORT_C static RFbsSession* GetSession();

Description

Gets the current Font and Bitmap server session.

Return value

RFbsSession *

A pointer to the current session or NULL if RFbsSession::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(TCallBack)

IMPORT_C void SetCallBack(TCallBack aCallBack);

Description

Sets the callback.

Parameters

TCallBack aCallBack

callback object to be called by RFbsSession::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(TInt,TInt,TInt,TInt,TInt)const

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(TInt,const TIpcArgs &,TRequestStatus &)const.


Version()

IMPORT_C TVersion Version();

Description

Gets the current Font and Bitmap server version.

Return value

TVersion

The current version of the server.


HeapBase()const

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()const

inline TInt SessionHandle() const;

Description

Return value

TInt