mpx/commonframework/common/inc/mpxmediadataarray.inl
changeset 0 a2952bb97e68
equal deleted inserted replaced
-1:000000000000 0:a2952bb97e68
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Implementation of array of variable size elements on global chunk
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // -----------------------------------------------------------------------------
       
    20 // RMPXDataItem::RMPXDataItem
       
    21 // -----------------------------------------------------------------------------
       
    22 //
       
    23 inline RMPXMediaDataItem::RMPXMediaDataItem()
       
    24     {
       
    25     iBufOffset = sizeof (RMPXMediaDataItem);
       
    26     }
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // RMPXMediaDataItemArray::DataItem
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 inline RMPXMediaDataItem* RMPXMediaDataItemArray::MediaDataItem(
       
    33     TUint aClientHandle,
       
    34     TInt aIndex)
       
    35     {
       
    36     return static_cast<RMPXMediaDataItem*>(DataItem(aClientHandle,aIndex));
       
    37     }
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // RMPXMediaDataItem::SetAttribute
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 inline void RMPXMediaDataItem::SetAttribute(
       
    44     const TMPXAttribute& aAttr,
       
    45     TMPXAttributeType aType)
       
    46     {
       
    47     iAttr=aAttr;
       
    48     iAttrType=aType;
       
    49     }
       
    50 
       
    51 // -----------------------------------------------------------------------------
       
    52 // RMPXMediaDataItem::Type
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 inline TMPXAttributeType RMPXMediaDataItem::Type() const
       
    56     {   
       
    57     return iAttrType;
       
    58     }
       
    59 
       
    60 // -----------------------------------------------------------------------------
       
    61 // RMPXMediaDataItem::Attribute
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 inline const TMPXAttribute& RMPXMediaDataItem::Attribute() const
       
    65     {   
       
    66     return iAttr;
       
    67     }
       
    68 
       
    69 // End of file