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 CDaUserColSet

class CDaUserColSet : public CBase;

Description

Defines a set of columns that are suitable for displaying to the application's user.

Derivation

Members

Defined in CDaUserColSet:
AddL(), Clear(), CloneL(), Col(), ColNo(), ColNoFromUId(), Count(), EDaInvalidColumn, IncColNo(), MapToCDbColSetL(), MaxColNo(), New(), NewL(), Remove(), ResizeL(), SetReserveL(), TPanics, operator[](), operator[](), ~CDaUserColSet()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


NewL()

static IMPORT_C CDaUserColSet *NewL();

Description

Allocates and constructs a new database application column set.

Return value

CDaUserColSet *

New database application column set


~CDaUserColSet()

IMPORT_C ~CDaUserColSet();

Description

Destructor.

[Top]


Member functions


New()

static IMPORT_C CDaUserColSet *New();

Description

Return value

CDaUserColSet *


CloneL()

IMPORT_C CDaUserColSet *CloneL() const;

Description

Allocates and constructs a new database application column set as a copy of the current object.

Return value

CDaUserColSet *

New database application column set


operator[]()

inline const TDaUserCol &operator[](TDbColNo aCol) const;

Description

Gets a column by index (const overload).

Parameters

TDbColNo aCol

Column number

Return value

const TDaUserCol &

Column


operator[]()

inline TDaUserCol &operator[](TDbColNo aCol);

Description

Gets a column by index.

Parameters

TDbColNo aCol

Column number

Return value

TDaUserCol &

Column


Col()

IMPORT_C const TDaUserCol *Col(const TDesC &aColName) const;

Description

Gets a column by name.

Parameters

const TDesC &aColName

Column name

Return value

const TDaUserCol *

Column


ColNo()

IMPORT_C TDbColNo ColNo(const TDesC &aColName) const;

Description

Gets the number of a named column.

Parameters

const TDesC &aColName

Column name

Return value

TDbColNo

Column number


IncColNo()

inline TDbColNo IncColNo();

Description

Increments the maximum column number.

Return value

TDbColNo

Maximum column number


MaxColNo()

inline TDbColNo MaxColNo() const;

Description

Gets the maximum column number.

Return value

TDbColNo

Maximum column number


Count()

inline TInt Count() const;

Description

Gets the number of columns.

Return value

TInt

Number of columns


ColNoFromUId()

IMPORT_C TInt ColNoFromUId(TInt aUId) const;

Description

Gets the column number for a column with the specified UID field.

Parameters

TInt aUId

UID field

Return value

TInt

Column number


Clear()

inline void Clear();

Description

Resets the column set.


Remove()

IMPORT_C void Remove(const TDesC &aColName);

Description

Removes a specified column.

Parameters

const TDesC &aColName

Column name


AddL()

IMPORT_C CDaUserColSet &AddL(const TDaUserCol &aCol);

Description

Adds a new column.

Parameters

const TDaUserCol &aCol

Column to add

Return value

CDaUserColSet &

New column


MapToCDbColSetL()

IMPORT_C CDbColSet *MapToCDbColSetL() const;

Description

Constructs a new CDbColSet from the user column set.

Return value

CDbColSet *

The new column set. The caller takes ownership.


ResizeL()

inline void ResizeL(TInt aCount);

Description

Changes the number of columns in the set.

Parameters

TInt aCount

Number of columns in the set

See also:


SetReserveL()

inline void SetReserveL(TInt aCount);

Description

Reserves space for the specified number of columns.

Parameters

TInt aCount

Number of columns

See also:

[Top]


Member enumerations


Enum TPanics

TPanics

Description

EDaInvalidColumn