PECengine/TransferAdapter2/Inc/PEngLoginDataCodec.h
branchRCL_3
changeset 13 a941bc465d9f
parent 0 094583676ce7
equal deleted inserted replaced
12:6ca72c0fe49a 13:a941bc465d9f
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Login data codec.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __PENGLOGINDATACODEC_H
       
    19 #define __PENGLOGINDATACODEC_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include    <E32Std.h>
       
    23 
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CIMPSSAPSettings;
       
    27 
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32  * Login data codec.
       
    33  *
       
    34  * @lib
       
    35  * @since 3.0
       
    36  */
       
    37 class PEngLoginDataCodec
       
    38     {
       
    39     public: // Login data packing
       
    40 
       
    41         /**
       
    42          * Packs login data to flat HBufC.
       
    43          *
       
    44          * @since 3.0
       
    45          * @param aSAP The SAP settings to pack.
       
    46          * @return Login data packed as one HBufC.
       
    47          * Buffer ownership is returned to caller.
       
    48          */
       
    49         IMPORT_C static HBufC8* PackLoginDataL( const CIMPSSAPSettings& aSAP );
       
    50 
       
    51 
       
    52         /**
       
    53          * Extracts login data from descriptor.
       
    54          *
       
    55          * @since 3.0
       
    56          * @param aLoginData The login data get previously with PackLoginDataL()
       
    57          * @param aSAP The SAP settings object to fill with login data.
       
    58          */
       
    59         IMPORT_C static void UnPackLoginDataL( const TDesC8& aLoginData, CIMPSSAPSettings& aSAP );
       
    60 
       
    61 
       
    62 
       
    63     protected: // Prohibited constructors
       
    64 
       
    65         PEngLoginDataCodec();
       
    66         ~PEngLoginDataCodec();
       
    67 
       
    68     };
       
    69 
       
    70 
       
    71 #endif      // __PENGLOGINDATACODEC_H
       
    72 
       
    73 // End of File