accessoryservices/accessoryserver/inc/Common/AccPolNameValueArraySerial.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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:  This class defines static operations that are used in the 
       
    15 *                serialization of a variable length name value array 
       
    16 *                into/from a stream. This way it can be passed between 
       
    17 *                process boundaries. The Accessory Server and the -Policy 
       
    18 *                use the operations.
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 
       
    24 #ifndef TACCPOLNAMEVALUEARRAYSERIAL_H
       
    25 #define TACCPOLNAMEVALUEARRAYSERIAL_H
       
    26 
       
    27 //  INCLUDES
       
    28 #include <s32strm.h>
       
    29 #include <AccPolNameValueRecord.h>
       
    30 
       
    31 // CONSTANTS
       
    32 
       
    33 // MACROS
       
    34 
       
    35 // DATA TYPES
       
    36 
       
    37 // FUNCTION PROTOTYPES
       
    38 
       
    39 // FORWARD DECLARATIONS
       
    40 
       
    41 // CLASS DECLARATION
       
    42 
       
    43 /**
       
    44 *  Accessory Policy Name Value Array Serialization
       
    45 *
       
    46 *  @lib AccPolicy
       
    47 *  @since S60 3.1
       
    48 */
       
    49 class TAccPolNameValueArraySerial
       
    50     {
       
    51     public:  // Constructors and destructor
       
    52 
       
    53     public:  // New functions
       
    54 
       
    55         /**
       
    56         * Externalize name value array data to the write stream.
       
    57         *
       
    58         * @since S60 3.1
       
    59         * @param aArray Name array to be externalized.
       
    60         * @param aStrem Stream to which the array is serialized to.
       
    61         * @return void
       
    62         */
       
    63         IMPORT_C static void ExternalizeL( const RArray<TAccPolNameValueRecord>& aNameValueArray, 
       
    64                                            RWriteStream& aStream );
       
    65 
       
    66     public: // Functions from base classes
       
    67         
       
    68     protected:  // New functions
       
    69 
       
    70     protected:  // Functions from base classes
       
    71 
       
    72     private:
       
    73 
       
    74         /**
       
    75         * C++ default constructor.
       
    76         */
       
    77         TAccPolNameValueArraySerial();
       
    78 
       
    79     public:     // Data
       
    80     
       
    81     protected:  // Data
       
    82 
       
    83     private:    // Data
       
    84 
       
    85     public:     // Friend classes
       
    86 
       
    87     protected:  // Friend classes
       
    88 
       
    89     private:    // Friend classes
       
    90 
       
    91     };
       
    92 
       
    93 #endif      // TACCPOLNAMEVALUEARRAYSERIAL_H
       
    94 
       
    95 // End of File