CMPXMediaArray Class Reference
class CMPXMediaArray : public CMPXMediaBase |
Array of media objects.
mpxcommon.lib
Inherited Functions |
---|
| CBase::CBase() |
| CBase::Delete(CBase *) |
| CBase::Extension_(TUint,TAny *&,TAny *) |
| CBase::operator new(TUint) |
| CBase::operator new(TUint,TAny *) |
| CBase::operator new(TUint,TLeave) |
| CBase::operator new(TUint,TLeave,TUint) |
| CBase::operator new(TUint,TUint) |
| CBase::~CBase() |
| CMPXMediaBase::CMPXMediaBase() |
| CMPXMediaBase::Clear() |
| CMPXMediaBase::ConstructL() |
| CMPXMediaBase::ConstructL(TInt) |
| CMPXMediaBase::ConstructL(TInt,MMPXData &) |
| CMPXMediaBase::ConstructL(const CMPXMediaBase &) |
| CMPXMediaBase::CopyConstructL(const CMPXMediaBase &) |
| CMPXMediaBase::DeleteLocal(TInt) |
| CMPXMediaBase::DeletePtr(TAny *,TMPXAttributeType) |
| CMPXMediaBase::DoExternalizeL(RWriteStream &,MMPXData::TMPXObjectType)const |
| CMPXMediaBase::DoInternalizeL(RReadStream &,MMPXData::TMPXObjectType) |
| CMPXMediaBase::LocalValue(TInt)const |
| CMPXMediaBase::LockHeapLC()const |
| CMPXMediaBase::ResetLocal() |
| CMPXMediaBase::SetLocal(const TValue &) |
| CMPXMediaBase::UnlockHeap(TAny *) |
| CMPXMediaBase::~CMPXMediaBase() |
Constructor & Destructor Documentation
~CMPXMediaArray()
IMPORT_C | ~CMPXMediaArray | ( | ) | |
Member Functions Documentation
AddToArray(const CMPXMedia &, TInt, TBool)
Inserts/Updates a value at aPos.
AppendL(const CMPXMedia *)
IMPORT_C void | AppendL | ( | const CMPXMedia * | aMedia | ) | |
Appends media object to array. Note: Ownership of aMedia transferred.
Parameters
const CMPXMedia * aMedia | object to add to the array |
AppendL(const CMPXMedia &)
IMPORT_C void | AppendL | ( | const CMPXMedia & | aMedia | ) | |
Appends media object to array. A new media object will be copied from aMedia. The new media object created on global heap and added into the array.
Parameters
const CMPXMedia & aMedia | object to add to the array |
AtL(TInt)
Get a pointer to the media object at the specified position within the array.
- Since
- S60 3.2.3
-
leave
- KErrNoMemory if local heap is out of memory or other system error. User 0 is the aIndex is out of bound
Parameters
TInt aIndex | index into the array |
Count()
IMPORT_C TInt | Count | ( | ) | const |
Total number of objects contained in array.
ExternalizeL(RWriteStream &)
Insert(const CMPXMedia *, TInt)
Inserts the object pointer into the array at the specified position. Note: Ownership of aMedia transferred.
- Since
- S60 3.2.3
-
leave
- The function leaves with one of the system wide error codes,
Parameters
const CMPXMedia * aMedia | object to be inserted to the array |
TInt aPos | the position within the array where the object pointer is to be inserted. The position is relative to zero, i.e. zero implies that a pointer is inserted at the beginning of the array. USER 131, if aPos is negative, or is greater than the number of object pointers currently in the array. |
Insert(const CMPXMedia &, TInt)
Inserts the object pointer into the array at the specified position. A new media object will be copied from aMedia. The new media object created on global heap and added into the array.
- Since
- S60 3.2.3
-
leave
- The function leaves with one of the system wide error codes,
Parameters
const CMPXMedia & aMedia | object to be inserted to the array |
TInt aPos | the position within the array where the object pointer is to be inserted. The position is relative to zero, i.e. zero implies that a pointer is inserted at the beginning of the array. USER 131, if aPos is negative, or is greater than the number of object pointers currently in the array. |
InsertL(const CMPXMedia *, TInt)
Inserts the object pointer into the array at the specified position. The function leaves with one of the system wide error codes, if the operation fails. Note: Ownership of aMedia transferred.
Parameters
const CMPXMedia * aMedia | object to be inserted to the array |
TInt aPos | the position within the array where the object pointer is to be inserted. The position is relative to zero, i.e. zero implies that a pointer is inserted at the beginning of the array. USER 131, if aPos is negative, or is greater than the number of object pointers currently in the array. |
InsertL(const CMPXMedia &, TInt)
Inserts the object pointer into the array at the specified position. The function leaves with one of the system wide error codes, if the operation fails. A new media object will be copied from aMedia. The new media object created on global heap and added into the array.
Parameters
const CMPXMedia & aMedia | object to be inserted to the array |
TInt aPos | the position within the array where the object pointer is to be inserted. The position is relative to zero, i.e. zero implies that a pointer is inserted at the beginning of the array. USER 131, if aPos is negative, or is greater than the number of object pointers currently in the array. |
InternalizeL(RReadStream &)
NewL(const CMPXMediaArray &)
Remove(TInt)
IMPORT_C void | Remove | ( | TInt | aIndex | ) | |
Removes the object pointer at the specified position from the array and deletes the object whose pointer is removed.
Parameters
TInt aIndex | The position within the array from where the object pointer is to be removed. The position is relative to zero, i.e. zero implies that a pointer at the beginning of the array is to be removed. |
Set(const CMPXMedia &, TInt)
Sets the value at a specified position; the previous value is deleted.
Parameters
const CMPXMedia & aMedia | object to be set to the array |
TInt aPos | the position within the array where the object pointer is to be set. The position is relative to zero, i.e. zero implies that a pointer is inserted at the beginning of the array. USER 131, if aPos is negative, or is greater than the number of objects currently in the array. |
Value(TInt)
Value at a specific index.
ValueL(TInt)
Value at a specific index.
operator[](TInt)
Array assessor. This method returns NULL if local heap is out of memory. Clients should check returned pointer before using it.
Parameters
TInt aIndex | index into the array |
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.