localconnectivityservice/obexsendservices/obexservicesendutils/inc/BTSUDataConverter.h
branchRCL_3
changeset 39 4096754ee773
parent 38 3dcb815346df
child 40 52a167391590
equal deleted inserted replaced
38:3dcb815346df 39:4096754ee773
     1 /*
       
     2 * Copyright (c) 2002 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:  A data conversion class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTSU_DATA_CONVERTER_H
       
    20 #define BTSU_DATA_CONVERTER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 
       
    25 // CONSTANTS
       
    26 
       
    27 // DATA TYPES
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *   A class for executing data conversion
       
    33 */
       
    34 class TBTSUDataConverter
       
    35     {
       
    36     public:
       
    37 
       
    38         /**
       
    39         * Converts the given data as integer.
       
    40         * @param aData The data to be converted.
       
    41         * @return The data converted as TUint8
       
    42         */
       
    43         static TUint8 ConvertByteL( const TPtrC8& aData );
       
    44 
       
    45         /**
       
    46         * Converts the given data as signed integer.
       
    47         * @param aData The data to be converted.
       
    48         * @return The data converted as TInt32.
       
    49         */
       
    50         static TInt32 ConvertDataSignedL( const TPtrC8& aData );
       
    51 
       
    52         /**
       
    53         * Converts the given data as unsigned integer.
       
    54         * @param aData The data to be converted.
       
    55         * @return The data converted as TUint32.
       
    56         */
       
    57         static TUint32 ConvertDataUnsignedL( const TPtrC8& aData );
       
    58     };
       
    59 
       
    60 #endif      // BTSU_DATA_CONVERTER_H
       
    61             
       
    62 // End of File