CCdlRefs Class Reference
class CCdlRefs : public CCdlRefCollection |
CCdlRefs is a collection of references to CDL interfaces. This class contains functions for manipulating such collections. It also is the basis for the customisation control system, so it has functions for maniplating customisation state.
Nested Classes and Structures
Constructor & Destructor Documentation
Member Functions Documentation
AddLayerL(const CCdlRefs &)
IMPORT_C void | AddLayerL | ( | const CCdlRefs & | aRefs | ) | |
This function adds references to the collection for use as new layers of customisation. The effect of this function is useful for customisation state management. The current customisation state is defined by a CCdlRefs object, where for each CDL interface UID that appears in the collection, the references using that UID identify the layers of customisation instances that customise the interface. The earlier references in the collection for the sub-layers for the later one.
Parameters
const CCdlRefs & aRefs | the new layers of customisation state that will modify the current customisation. |
AppendL(const TCdlRef &)
IMPORT_C void | AppendL | ( | const TCdlRef & | aRef | ) | |
Append a single reference to this collection
Parameters
const TCdlRef & aRef | the reference to append. |
AppendL(const CCdlRefCollection &)
Append a collection of references to this collection
AppendL(const TDesC &, const TCdlArray< TCdlRef > &)
Append a collection of references to this collection
Parameters
const TDesC & aHomeName | the DLL name that this collection of refs was found in. |
const TCdlArray< TCdlRef > & aRefs | the collection of references to append. |
Begin()
Create an iterator that will iterate through all references in the collection
Begin(TUid)
Create an iterator that will iterate through only those references with a particular UID.
Parameters
TUid aUid | the UID to match. |
Begin(const TDesC &)
Create an iterator that will iterate through only those references with a particular file name.
Parameters
const TDesC & aName | the name to match. |
CountRefs()
IMPORT_C TInt | CountRefs | ( | ) | const [virtual] |
Delete(TIterator &)
Delete the reference indicated by the iterator.
Parameters
TIterator & aAt | the position to delete, Delete(Begin()) deletes the first element in the collection. |
Delete(const TIterator &, const TIterator &)
Delete the references from aBegin up to, but not including aEnd.
Parameters
const TIterator & aBegin | the first position to delete |
const TIterator & aEnd | the stop position for the iterator |
Delete(const TDesC &)
IMPORT_C void | Delete | ( | const TDesC & | aName | ) | |
Delete a name and all references that use it from the collection.
Parameters
const TDesC & aName | the name to delete. |
End()
Create an iterator representing the first postition after the end of the collection. This iterator must not be dereferenced, but other iterators can be compared with this one. They will be equal when the other iterator gone past the last valid reference.
ExportL()
IMPORT_C HBufC8 * | ExportL | ( | ) | const |
Create a descriptor containing the contents of this collection. This is useful for externalising customisation state.
ExportLC()
IMPORT_C HBufC8 * | ExportLC | ( | ) | const |
Create a descriptor containing the contents of this collection. This is useful for externalising customisation state.
ImportL(const TDesC8 &)
IMPORT_C void | ImportL | ( | const TDesC8 & | aData | ) | |
Populate this collection from a descriptor containing a collection that was externalised by one of the ExportL functions.
InsertL(const TIterator &, const TCdlRef &)
Insert a reference at the specified iterator position.
Parameters
const TIterator & aAt | an iterator giving the position at which to insert the reference InsertL(End(), aRef) is equivalent to Append(aRef) |
const TCdlRef & aRef | the reference to insert. |
MergeAndReplaceL(const CCdlRefs &)
IMPORT_C void | MergeAndReplaceL | ( | const CCdlRefs & | aRefs | ) | |
This function replaces references in this collection for any CDL interface UIDs that appear in the new collection with those from the new collection. All other references are appended. The effect of this function is useful for customisation state management. The current customisation state is defined by a CCdlRefs object, where for each CDL interface UID that appears in the collection, the references using that UID identify the layers of customisation instances that customise the interface. The earlier references in the collection for the sub-layers for the later one.
Parameters
const CCdlRefs & aRefs | the new customisation state which will replace and be merged with the current state. |
Ref(TInt)
Access a reference at a particular index in this collection.
Parameters
TInt aIndex | the postion to access. |
SubsetByNameLC(const TDesC &)
SubsetByUidsLC(const CCdlUids &)
Member Type Definitions Documentation
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.