Public Member Type Definitions | |
---|---|
typedef | CCDRecordBase CCDServiceExtRecordBase |
typedef | struct CommsDat::SGenericRecordTypeInfoTag SGenericRecordTypeInfo |
typedef | TCommDbBearer TCommsDBBearerTechnology |
typedef | TBuf< 64 > TGenericTypeName |
typedef | TUint32 TMDBAttributeFlags |
typedef | TMDBVisitor< TInt > TMDBBool |
typedef | TMDBVisitor< TDesC > TMDBDes |
typedef | TMDBVisitor< TDesC8 > TMDBDes8 |
typedef | TUint32 TMDBElementId |
typedef | TMDBGenericRecordVisitor TMDBGenRecord |
typedef | TMDBRecordLinkVisitor TMDBLink |
typedef | TMDBVisitor< TInt > TMDBNum |
typedef | TMDBRecordSetVisitor TMDBRecordSet |
Public Member Enumerations | |
---|---|
enum | anonymous { ECommitBeforeOpenTransaction, ERollBackBeforeOpenTransaction, ESessionClosed, ENotifierNotCreated, ..., EInvalidIAP } |
enum | TCDAttributeFlags { ECDNoWriteButDelete, ECDHidden, ECDPrivate, ECDProtectedWrite } |
enum | TCDFieldValueTypes { EText, EDesC8, EUint32, EInt, ..., ELink } |
enum | TFieldTypeAttributes { ENoAttrs, ENotNull } |
This file contains :
1/ Class for expressing a session with the storage server
This class contains functions to create and close a session, to set the dataset version and to request database actions such as locking for a transaction.
2/ Generic database functionality interface
This class uses a CMDBSession object
3/ General base class that inherits from MMetaDatabase to express any database element
This class contains the ElementId for each MetaDatabase object An element id locates stored data in the comms database.
4/ Data classes that each inherit from CMDBElement
a) Fields
CMDBField<T>
where T is a basic type value of the field (TInt, TDes, TBool etc)
This class derives from
to implement the thin template idiom
CMDBRecordLink<T>
where T is a record of a particular type. This class expresses a soft-link from a field in one record to a record of a different type (i.e. in another table). The TMDBElementId value stored in this field in the repository is the id of an instance of the record of type T
This class derives from
to implement the thin template idiom
b) Field Containers
CCDRecord
base class for record containing specific list of fields - see CommsDatTypesv1_1.h
CMDBRecordSet<T>
an array of records where T is the record type. This can represent a Table in a database.
5/ Other support classes and type definitions
TMDBElementId
The TMDBElementId locates a data object or set of data objects in the database.
A TMDBElementId expresses
<TableId><ColumnId><RecordId><Attributes>
A TMDBElementId has a different format depending on the data type it expresses
Table <TableId><0><0> Column <TableId><ColumnId><0>
Record <TableId><0><RecordId> Field <TAbleId><ColumnId><RecordId>
TMDBAttributeFlags
Attribute settings for any storable element. Attributes express access control for data in the database
typedef struct CommsDat::SGenericRecordTypeInfoTag | SGenericRecordTypeInfo |
To express type information for all MetaDatabase fields
typedef TUint32 | TMDBAttributeFlags |
Attribute flags for an element in the Meta Database Attributes describe access rights to the data in the database
typedef TMDBVisitor< TInt > | TMDBBool |
Typedefs for convenience in meta data definitions
typedef TMDBVisitor< TDesC > | TMDBDes |
Typedefs for convenience in meta data definitions
typedef TMDBVisitor< TDesC8 > | TMDBDes8 |
Typedefs for convenience in meta data definitions
typedef TUint32 | TMDBElementId |
The identifier for any entry in the MetaDatabase. It can specify <TableId><ColumnId><RecordId> This identifies The data location in the database The meaning of the data within in the data schema The type of the data
typedef TMDBGenericRecordVisitor | TMDBGenRecord |
Typedefs for convenience in meta data definitions
typedef TMDBRecordLinkVisitor | TMDBLink |
Typedefs for convenience in meta data definitions
typedef TMDBVisitor< TInt > | TMDBNum |
Typedefs for convenience in meta data definitions
typedef TMDBRecordSetVisitor | TMDBRecordSet |
Typedefs for convenience in meta data definitions
const TMDBElementId | KCDTIdRecordName |
Field will contain a user-defined string tag for a record. This is used to uniquely identify business level information within a record.
This field is useful for user searches, however it should be noted that it would be more efficient to use the KCDTIdRecordTag field instead as it is quicker and cheaper to search for a number than for a string.
const TMDBElementId | KCDTIdRecordTag |
Field will contain a user-defined numeric tag for a record. Useful for user searches and cheaper to search on a numeric tag than a string name. Can be null. This tag is not automatically connected with the record id itself, which is contained within the ElementId for the record and not in any field.
const TMDBElementId | KCDTIdVPNIAPRecord |
Commsdat field id for field: HomeIAP. Link to a IAP record. Field is declared in the VPNService table.
const TMDBElementId | KCDTIdVPNNetwork |
Commsdat field id for field: HomeNetwork. Link to a Network record. Field is declared in the VPNService table.
const TMDBElementId | KCDTIdVPNPolicyName |
Commsdat field id for field: Policy. Policy name. Field is declared in the VPNService table.
const TMDBElementId | KCDTIdVPNSNAPRecord |
Commsdat field id for field: SNAPIAP. Link to a snap iap record. Field is declared in the VPNService table.
const TMDBElementId | KCDTIdWLANServiceExtRecord |
WLANServiceExtension is internal Table
const TLitC< sizeof(L"CommsDat")/2 > | KCommsDatName | [static] |
Use this constant for Debug panic calls
const TUid | KUidCommDbNotificationEvent |
UIDs for CommDB event notification
Access control attribute flags. When these are SET in the mask the attribute is obeyed When they are CLEARED from the mask, the attribute is ignored By default attributes are obeyed.