videofeeds/utils/inc/TIptvIap.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2006-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:    header file for TIptvIap class*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef TIPTVIAP_H
       
    22 #define TIPTVIAP_H
       
    23 
       
    24 #include <s32mem.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 /**
       
    28 * Container class for storing IAP ID and priority.
       
    29 */
       
    30 class TIptvIap
       
    31     {
       
    32     public:
       
    33     
       
    34         /**
       
    35         * Constructor, clears member variables to zero.
       
    36         */
       
    37         IMPORT_C TIptvIap();
       
    38 
       
    39         /**
       
    40         * Destructor.
       
    41         */
       
    42         IMPORT_C ~TIptvIap();
       
    43         
       
    44         /**
       
    45          * Externalizes this object to aStream.
       
    46          * @param aStream
       
    47          */
       
    48         IMPORT_C void ExternalizeL(RDesWriteStream& aStream) const;
       
    49         
       
    50         /**
       
    51          * Internalizes this object from aStream.
       
    52          * @param aStream
       
    53          */
       
    54         IMPORT_C void InternalizeL(RDesReadStream& aStream);
       
    55 
       
    56         /**
       
    57          * Counts the memory block needed for the externalize call.
       
    58          * @return Memory size (in bytes) needed for the externalize.
       
    59          */
       
    60         IMPORT_C TUint32 CountExternalizeSize();
       
    61     
       
    62     public:
       
    63     
       
    64         /**
       
    65         * Used to indicate that iId and iPriority have valid values. This variable is not serialized
       
    66         * in ExternalizeL or InternalizeL.
       
    67         */
       
    68         TBool   iValueExists;
       
    69 
       
    70         /**
       
    71         * IAP ID in CommsDb.
       
    72         */
       
    73         TUint32 iId;
       
    74 
       
    75         /**
       
    76         * Priority, small number indicates high priority, 0 being the highest.
       
    77         */        
       
    78         TUint16 iPriority;
       
    79     };
       
    80 
       
    81 #endif