Location:
cdbover.h
Link against: commdb.lib
CCommDbOverrideSettings
Supported from 5.0
Repository of override settings for columns in tables.
|
Defined in CCommDbOverrideSettings
:
EParamListFull
, EParamListPartial
, GetBoolOverride()
, GetConnectionPreferenceOverride()
, GetDesOverride()
, GetIntOverride()
, GetLongDesOverride()
, GetLongDesOverrideLength()
, IsOverridden()
, NewL()
, PartialFull()
, SetBoolOverride()
, SetConnectionPreferenceOverride()
, SetDesOverride()
, SetIntOverride()
, SetLongDesOverride()
, TParamList
, Type()
, ~CCommDbOverrideSettings()
Inherited from CBase
:
operator new()
static CCommDbOverrideSettings* NewL(TParamList aParamList);
Withdrawn in 6.0
Allocates and constructs an override settings object.
The construction process automatically opens the communications database and connects to the DBMS. The database is closed and the connection to the DBMS is severed when this override object is destroyed.
|
|
static CCommDbOverrideSettings* NewL(TParamList aParamList, TCommDbDatabaseType aType);
Supported from 6.0
Allocates and constructs an override settings object.
The construction process automatically opens the communications database and connects to the DBMS. The database is closed and the connection to the DBMS is severed when this override object is destroyed.
|
|
~CCommDbOverrideSettings();
Frees all resources owned by this object, prior to its destruction.
Specifically, it closes the communications database and severs the connection with the DBMS.
TCommDbDatabaseType Type() const;
Supported from 6.0
Gets the database type.
|
TInt SetIntOverride(const TDesC& aTableName, const TDesC& aColumnName, TUint32 aValue);
Sets an override value for the specified unsigned integer type column in the specified table in the communications database.
If the column name is empty, i.e. the length of the descriptor
aColumnName
is zero, then the override value is assumed to be the
overriding Id for the default record for table aTableName
. This
means that the table must be one which supports default records.
For the function to succeed:
The column must exist
The column type must be an unsigned integer
An override for this column (or the overriding default record Id) for this table must not already exist
The table must be one which supports override settings
|
|
TInt SetBoolOverride(const TDesC& aTableName, const TDesC& aColumnName, TBool aValue);
Sets an override value for a boolean type column in the specified table in the communications database.
For the function to succeed:
The column must exist
The column type must be boolean
An override for this column for this table must not already exist.
The table must be one which supports override settings
|
|
TInt SetDesOverride(const TDesC& aTableName, const TDesC& aColumnName, const TDesC8& aValue);
Sets an override value for an 8 bit descriptor text type column in the specified table in the communications database.
For the function to succeed:
The column must exist
The column type must be narrow (ASCII) text
An override for this column for this table must not already exist.
The table must be one which supports override settings
In addition, the maximum length of text expected by this function is the
value of the constant KCommsDbSvrMaxFieldLength
defined in cdblen.h.
The length of aValue
supplied by the caller cannot be greater than
this value.
|
|
TInt SetDesOverride(const TDesC& aTableName, const TDesC& aColumnName, const TDesC16& aValue);
Sets an override value for a 16 bit descriptor text type column in the specified table in the communications database.
For the function to succeed:
The column must exist
The column type must be wide (UNICODE) text
An override for this column for this table must not already exist.
The table must be one which supports override settings
In addition, the maximum length of text expected by this function is the
value of the constant KCommsDbSvrMaxFieldLength
defined in cdblen.h.
The length of aValue
supplied by the caller cannot be greater than
this value.
|
|
TInt SetLongDesOverride(const TDesC& aTableName, const TDesC& aColumnName, const TDesC& aValue);
Sets an override value for a long text type column in a specified table in the communications database.
For the function to succeed:
The column must exist
The column type is assumed to be arbitrarily long text (within the limits defined by descriptors)
An override for this column for this table must not already exist.
The table must be one which supports override settings
|
|
TInt GetIntOverride(const TDesC& aTableName, const TDesC& aColumnName, TUint32& aValue);
Gets an override value for an unsigned integer type column in the specified table in the communications database.
If the column name is empty, i.e. the length of the
descriptoraColumnName
is zero, then the override value is assumed
to be the overriding Id for the default record for
tableaTableName
.
For this function to succeed:
an override for this column (or the the overriding default record Id) for this table must exist.
the table must be one which supports override settings.
|
|
TInt GetBoolOverride(const TDesC& aTableName, const TDesC& aColumnName, TBool& aValue);
Gets an override value for a boolean type column in the specified table in the communications database.
For this function to succeed:
an override for this column for this table must exist
the table must be one which supports override settings
|
|
TInt GetDesOverride(const TDesC& aTableName, const TDesC& aColumnName, TDes8& aValue);
Gets an override value for an 8 bit descriptor text type column in the specified table in the communications database.
For this function to succeed:
an override for this column for this table must exist
the table must be one which supports override settings
|
|
TInt GetDesOverride(const TDesC& aTableName, const TDesC& aColumnName, TDes16& aValue);
Gets an override value for a 16 bit descriptor text type column in the specified table in the communications database.
For this function to succeed:
an override for this column for this table must exist
the table must be one which supports override settings
|
|
TInt GetLongDesOverrideLength(const TDesC& aTableName, const TDesC& aColumnName, TInt& aLength);
Gets the length of the long text override value for a column in the specified table in the communications database.
For this function to succeed:
an override for this column for this table must exist
the table must be one which supports override settings
|
|
TInt GetLongDesOverride(const TDesC& aTableName, const TDesC& aColumnName, TDes& aValue);
Gets the override value for a column in the specified table in the communications database.
For this function to succeed:
an override for this column for this table must exist
the table must be one which supports override settings
Note:
The maximum length of the descriptor aValue
must be large
enough to contain the override text. Use
theGetLongDesOverrideLength()
function to find the length of this
text.
|
|
TBool IsOverridden(const TDesC& aTableName, const TDesC& aColumnName, TValueType aType);
Tests whether an override value of a specified type exists in the communications database.
|
|
TParamList PartialFull() const;
Determines whether the override list is full or partial.
|
TInt GetConnectionPreferenceOverride(CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref& aPref);
Supported from 6.1
Gets the overrides for a record in the Connection preferences table.
|
|
TInt SetConnectionPreferenceOverride(const CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref& aPref);
Supported from 6.1
Sets overrides for a record in the Connection preferences table.
The record to override is specified by the combination of rank (CONNECT_PREF_RANKING
) and direction (CONNECTION_PREF_DIRECTION
) fields, which therefore must be specified in aPref
and cannot be overriden.
You can use the other fields in aPref
to override the dialog preference (CONNECT_PREF_DIALOG_PREF
) and/or bearer set (CONNECT_PREF_BEARER_SET
) fields. Set a field to zero if you do not want to override it.
|
|
TParamList
Override setting flags returned by PartialFull()
.
|