videofeeds/utils/inc/MIptvStreamObject.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2007 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 the License "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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __MIPTVSTREAMOBJECT_H__
       
    21 #define __MIPTVSTREAMOBJECT_H__
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <s32mem.h>
       
    25 
       
    26 class RReadStream;
       
    27 class RWriteStream;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 * This class specifies the interface for iptv stream object.
       
    33 *
       
    34 * @lib IptvUtil.lib
       
    35 */
       
    36 class MIptvStreamObject
       
    37     {
       
    38         
       
    39     public: // New functions
       
    40 
       
    41         /**
       
    42         * Serializes this object from aStream.
       
    43         *
       
    44         * @param aStream 
       
    45         */
       
    46         virtual void InternalizeL(RReadStream& aStream) = 0;  
       
    47 
       
    48         /**
       
    49         * Serializes this object to aStream.
       
    50         *
       
    51         * @param aStream
       
    52         */
       
    53         virtual void ExternalizeL(RWriteStream& aStream) = 0;  
       
    54 
       
    55         /**
       
    56         * Returns the size required for externalization buffer in 8-bit
       
    57         * bytes.
       
    58         */
       
    59         virtual TUint32 CountExternalizeSize() = 0;
       
    60 
       
    61     public:
       
    62         /**
       
    63         * Can be used to identify the stream object.
       
    64         * This variable is not serialized in InternalizeL and ExternalizeL.
       
    65         */
       
    66         TInt iObjId;  
       
    67     };
       
    68 
       
    69 #endif