realtimenetprots/sipfw/ClientResolver/Client/src/CSIPClientDiscoverySerializer.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          : CSIPClientDiscoverySerializer.h
       
    16 * Part of       : SIP Client Resolver
       
    17 * Version       : 1.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 #ifndef CSIPCLIENTDISCOVERYSERIALIZER_H
       
    29 #define CSIPCLIENTDISCOVERYSERIALIZER_H
       
    30 
       
    31 //  INCLUDES
       
    32 #include <e32base.h>
       
    33 #include <s32mem.h>
       
    34 #include <stringpool.h>
       
    35 #include "_sipcodecdefs.h"
       
    36 
       
    37 // FORWARD DECLARATIONS
       
    38 class CSIPRequest;
       
    39 class CSIPResponse;
       
    40 
       
    41 
       
    42 class CSIPClientDiscoverySerializer : public CBase
       
    43     {
       
    44 public:
       
    45     static CSIPClientDiscoverySerializer* NewL();
       
    46     static CSIPClientDiscoverySerializer* NewLC();
       
    47     
       
    48     ~CSIPClientDiscoverySerializer ();
       
    49 
       
    50     CBufFlat* ExternalizeSIPRequestL(CSIPRequest& aRequest);
       
    51     CSIPResponse* InternalizeSIPResponseL(const TDesC8& aResponse);
       
    52 
       
    53 private:
       
    54 
       
    55     void ConstructL();
       
    56     CSIPClientDiscoverySerializer();
       
    57     void ExternalizeRequestL(CSIPRequest& aRequest, RWriteStream& aWriteStream);
       
    58 
       
    59 private: // For testing purposes
       
    60 
       
    61 	UNIT_TEST(CSIPClientDiscoverySerializerTest)
       
    62     };
       
    63 
       
    64 #endif // CSIPCLIENTDISCOVERYSERIALIZER_H
       
    65 
       
    66 //  End of File