realtimenetprots/sipfw/ClientResolver/Server/inc/SIPCRSerializer.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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:
       
    15 * Name          : SIPCRSerializer.h
       
    16 * Part of       : SIP Client Resolver
       
    17 * Version       : 1.0
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 
       
    29 #ifndef SIPCRSERIALIZER_H
       
    30 #define SIPCRSERIALIZER_H
       
    31 
       
    32 //  INCLUDES
       
    33 #include <e32base.h>
       
    34 #include <stringpool.h>
       
    35 #include "_sipcodecdefs.h"
       
    36 
       
    37 class CSIPRequest;
       
    38 class CSIPResponse;
       
    39 
       
    40 // CLASS DECLARATION
       
    41 
       
    42 /**
       
    43 * Externalize descriptor data to a write stream and internalize data
       
    44 * from a read stream.
       
    45 * 
       
    46 * @lib siprsvsrv.exe
       
    47 */
       
    48 class SIPCRSerializer : public CBase
       
    49     {
       
    50     public:
       
    51 	
       
    52 	    static CBufFlat* ExternalizeL(CSIPRequest& aRequest);
       
    53 	
       
    54 	    static void InternalizeL(const TDesC8& aDes,
       
    55 	                             CSIPRequest& aRequest);
       
    56 
       
    57 	    static CBufFlat* ExternalizeL(CSIPResponse& aResponse);
       
    58 	
       
    59     private:
       
    60 
       
    61         static void InternalizeMethodL(CSIPRequest& aRequest,
       
    62                                        RReadStream& aReadStream);
       
    63 
       
    64         static RStringF ReadFromStreamL(RReadStream& aReadStream);
       
    65     
       
    66     private: // For testing purposes
       
    67 
       
    68 	    UNIT_TEST(SIPCRSerializerTest)                
       
    69     };
       
    70 
       
    71 #endif // SIPCRSERIALIZER_H
       
    72             
       
    73 // End of File