Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: DAMDBDES.H
Link against: damodl.lib

This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.

Class TDaUserCol

class TDaUserCol;

Description

A data application user column specification.

Members

Defined in TDaUserCol:
EDialable, ExternalizeL(), InternalizeL(), IsDialable(), MapToCDbColSetL(), SetDialable(), TDaUserCol(), TDaUserCol(), anonymous, iAttributes, iDaAttributes, iDbColNo1, iDbColNo2, iMaxLength, iMaxLinesDE, iMaxValue, iMinKeyLength, iMinValue, iName, iPrecision, iType, iUId


Construction and destruction


TDaUserCol()

IMPORT_C TDaUserCol(const TDesC &aName, TDbColType aType, TInt aUId, TInt aMaxLength=KDbUndefinedLength, TInt aMaxLinesDE=KMaxLinesDE);

Description

Constructor with column specification parameters.

Parameters

const TDesC &aName

Column name

TDbColType aType

Column type

TInt aUId

Column UID

TInt aMaxLength

Maximum length

TInt aMaxLinesDE

Maximum number of lines


TDaUserCol()

IMPORT_C TDaUserCol();

Description

Default constructor.

[Top]


Member functions


MapToCDbColSetL()

IMPORT_C void MapToCDbColSetL(CDbColSet &aCDbColSet) const;

Description

Adds the column to a column definition set.

Parameters

CDbColSet &aCDbColSet

Column definition set


ExternalizeL()

IMPORT_C void ExternalizeL(RWriteStream &aSink) const;

Description

Externalises the object.

Parameters

RWriteStream &aSink

Stream to write to


InternalizeL()

IMPORT_C void InternalizeL(RReadStream &aSource);

Description

Internalises the object.

Parameters

RReadStream &aSource

Stream to read from


SetDialable()

IMPORT_C void SetDialable(TBool aDialable);

Description

Sets/unsets the EDialable attribute.

Parameters

TBool aDialable

True to set the flag, false to unset


IsDialable()

inline TBool IsDialable() const;

Description

Tests if the EDialable attribute is set.

Return value

TBool

True if the flag is set, otherwise false

[Top]


Member enumerations


Enum anonymous

n/a

Description

Defines a dialable flag.

EDialable

Dialable flag.

[Top]


Member data


iName

TBuf< KDbMaxColName > iName;

Description

Column name.


iType

TDbColType iType;

Description

Column type.


iMaxLength

TInt iMaxLength;

Description

Maximum length.


iAttributes

TUint iAttributes;

Description

Column flags.


iUId

TInt iUId;

Description

Column UID.


iDaAttributes

TUint iDaAttributes;

Description

Column data application flags.


iMinKeyLength

TInt iMinKeyLength;

Description

Minimum key length.


iMaxLinesDE

TInt iMaxLinesDE;

Description

Maximum number of lines.


iPrecision

TInt iPrecision;

Description

Number of decimal places.


iMinValue

TInt iMinValue;

Description

Minimum value.


iMaxValue

TInt iMaxValue;

Description

Maximum value.


iDbColNo1

TUint iDbColNo1;

Description

Column number.


iDbColNo2

TUint iDbColNo2;

Description

Column number.