#include <comms-infras/es_parameterbundle.h>
class CParameterSetContainer : public CBase, public Meta::MMetaType |
Protected Member Functions | |
---|---|
CParameterSetContainer(TUint32) | |
IMPORT_C void | ConstructL(CParameterBundleBase &) |
A container for 0..n Parameter Sets. Can be seen as a "row" or "record" of information, with its own 32 bit Id to be used as a key to the set if required
CParameterSetContainer | ( | TUint32 | aContainerId | ) | [protected, inline] |
IMPORT_C | ~CParameterSetContainer | ( | ) | [virtual] |
IMPORT_C TInt | AddParameterSet | ( | XParameterSetBase * | aParameterSet | ) |
IMPORT_C void | AddParameterSetL | ( | XParameterSetBase * | aParameterSet | ) |
void | ClearParameterSetPointer | ( | TInt | aIndex | ) | [inline] |
IMPORT_C void | ConstructL | ( | CParameterBundleBase & | aBundle | ) | [protected] |
Set up the container with empty sets
leaves |
with KErrNoMemory in out of memory conditions |
Parameters | |
---|---|
aBundle | Bundle (parent container) that this new parameter set container is to be added to |
TInt | CountParameterSets | ( | ) | const [inline] |
IMPORT_C void | DeleteParameterSetL | ( | TInt | aIndex | ) |
Deletes set at index, and reorganises the array so it's 1 smaller
Parameters | |
---|---|
aIndex | - index of container to delete and remove from array |
IMPORT_C XParameterSetBase * | FindParameterSet | ( | const Meta::STypeId & | aSetId | ) |
Searches a container for a parameter set of the given type. Searches a parameter set container for a parameter set.
Parameters | |
---|---|
aSetId | The STypeId of the set |
const XParameterSetBase * | FindParameterSet | ( | const Meta::STypeId & | aSetId | ) | const [inline] |
IMPORT_C TBool | FindParameterSet | ( | const XParameterSetBase & | aRhs | ) |
Searches a container for a specific parameter set instance.
Parameters | |
---|---|
aRhs | The parameter set to find |
IMPORT_C XParameterSetBase * | GetParameterSet | ( | TInt | aIndex | ) |
Searches a parameter set container for a parameter set.
const XParameterSetBase * | GetParameterSet | ( | TInt | aIndex | ) | const [inline] |
TUint32 | Id | ( | ) | const [inline] |
IMPORT_C TInt | Length | ( | ) | const [virtual] |
Reimplemented from Meta::MMetaType::Length()const
Calculates the length of buffer required to serialise this parameter set container.
Reimplemented from Meta::MMetaType::Load(TPtrC8 &)
Instructs this container to set its members based on the serialised data in the buffer passed.
Parameters | |
---|---|
aBuffer | Buffer containing the serialised container object |
IMPORT_C CParameterSetContainer * | LoadL | ( | CParameterBundleBase & | aBundle, |
TPtrC8 & | aBuffer | |||
) | [static] |
Creates a new parameter set container from a buffer containing the serialised object.
Parameters | |
---|---|
aBundle | Bundle that this container is to be added to |
aBuffer | Buffer containing the serialised object information |
IMPORT_C CParameterSetContainer * | LoadL | ( | TPtrC8 & | aBuffer | ) | [static] |
Creates a new parameter set container from a buffer containing the serialised object.
Parameters | |
---|---|
aBuffer | Buffer containing the serialised object information |
IMPORT_C CParameterSetContainer * | NewL | ( | CParameterBundleBase & | aBundle, |
TUint32 | aContainerId = 0 | |||
) | [static] |
Creates a new parameter set container. This class is used as a container for a number of parameter sets (generic and extension) that are associated with each other. It is a specific instantiatable class and therefore creates an instance of CParameterSetContainer without using ECOM.
Parameters | |
---|---|
aBundle | Bundle that this container is to be added to |
aContainerId | identifier for the specific container instance |
IMPORT_C CParameterSetContainer * | NewL | ( | TUint32 | aContainerId = 0 | ) | [static] |
Creates a new parameter set container. This class is used as a container for a number of parameter sets (generic and extension) that are associated with each other. It is a specific instantiatable class and therefore creates an instance of CParameterSetContainer without using ECOM.
Parameters | |
---|---|
aContainerId | identifier for the specific container instance |
IMPORT_C XParameterSetBase * | RemoveParameterSet | ( | TInt | aIndex | ) |
Removes the parameter set at the index. Ownership is transfered to the calling method
Parameters | |
---|---|
aIndex | - index of container to delete and remove from array |
IMPORT_C TInt | ReplaceParameterSet | ( | TInt | aIndex, |
XParameterSetBase * | aNewSet | |||
) |
IMPORT_C void | ReplaceParameterSetL | ( | TInt | aIndex, |
XParameterSetBase * | aNewSet | |||
) |
Deletes set at index aIndex and replaces it with aParameterSet. Ownership of set passes to this parameter set container.
Parameters | |
---|---|
aIndex | - index of container to delete and replace |
Reimplemented from Meta::MMetaType::Store(TDes8 &)const
Instructs this container to create a serialised version of itself and append it to the buffer that has been passed.