TDbWindow Class Reference

class TDbWindow

Describes the desired shape of a view's pre-evaluation window.

An instance of this class is passed to the RDbView object as part of the Prepare() function. The different constructors for TDbWindow can specify a view:

without pre-evaluation

with full pre-evaluation

with limited pre-evaluation.

RDbView

Public Member Functions
TDbWindow()
TDbWindow(TUnlimited)
TDbWindow(TInt, TInt)
TInt PreferredPos()
TInt Size()
Public Member Enumerations
enumTUnlimited { EUnlimited = KMaxTInt }
Private Attributes
TInt iPreferredPos
TInt iSize

Constructor & Destructor Documentation

TDbWindow()

TDbWindow()[inline]

Constructs this object with a size of ENone. This can be used to request a view with no pre-evaluation window.

TDbWindow(TUnlimited)

TDbWindow(TUnlimited)[inline]

Constructs this object with a size of EUnlimited. This is used to request a completely pre-evaluated view. The constant KDbUnlimitedWindow is an instance of such a TDbWindow.

Parameters

TUnlimited

TDbWindow(TInt, TInt)

IMPORT_CTDbWindow(TIntaForeSlots,
TIntaRearSlots
)

Parameters

TInt aForeSlots
TInt aRearSlots

Member Functions Documentation

PreferredPos()

TInt PreferredPos()const [inline]

Returns the preferred position in the window of the current row marker. i.e. the position with the forward and backward slots as requested.

The preferred position in the window. It is undefined if this is not a limited window.

Size()

TInt Size()const [inline]

Returns the number of rows stored by the view.

The number of rows stored by the window. This could be one of the special values ENone or EUnlimited.

Member Enumerations Documentation

Enum TUnlimited

Denotes a full pre-evaluation window.

Enumerators

EUnlimited = KMaxTInt

No limit on how many rows may be in the window.

Member Data Documentation

TInt iPreferredPos

TInt iPreferredPos[private]

TInt iSize

TInt iSize[private]