natfw/natfwstunturnclient/tsrc/ut_stunturnclient/inc/cunsafmessageencoder.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 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:    ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 #include "natfwunsafmessage.h"
       
    24 
       
    25 #ifndef C_UNSAFMESSAGEENCODER_H
       
    26 #define C_UNSAFMESSAGEENCODER_H
       
    27 
       
    28 /**
       
    29  *  ?one_line_short_description
       
    30  *  ?more_complete_description
       
    31  *
       
    32  *  @code
       
    33  *   ?good_class_usage_example(s)
       
    34  *  @endcode
       
    35  *
       
    36  *  @lib ?library
       
    37  *  @since S60 ?S60_version *** for example, S60 v3.0
       
    38  */
       
    39 class CUnsafMessageEncoder : public CBase
       
    40     {
       
    41 
       
    42 public:
       
    43 
       
    44     static CUnsafMessageEncoder* NewL();
       
    45     static CUnsafMessageEncoder* NewLC();
       
    46 
       
    47     /**
       
    48      * Two-phased constructor.
       
    49      * @param ?arg1 ?description
       
    50      * @param ?arg2 ?description
       
    51      //*/
       
    52     //static CUnsafMessageEncoder* NewL(?type1 ?arg1, ?type2 ?arg2);
       
    53     
       
    54 
       
    55     /**
       
    56     * Destructor.
       
    57     */
       
    58     virtual ~CUnsafMessageEncoder();
       
    59 
       
    60     /**
       
    61      * ?description
       
    62      *
       
    63      * @since S60 ?S60_version
       
    64      * @param ?arg1 ?description
       
    65      * @param ?arg2 ?description
       
    66      * @return ?description
       
    67      */
       
    68      HBufC8* EncodeMessageL( const CNATFWUNSAFMessage& aRequest,
       
    69                              const TBool aUseSharedSecret = ETrue,
       
    70                              const TBool aAddFingerPrint = EFalse );
       
    71 
       
    72 private:
       
    73 
       
    74     CUnsafMessageEncoder();
       
    75 
       
    76     void ConstructL();
       
    77 
       
    78 private: // data
       
    79 
       
    80     };
       
    81 
       
    82 #endif // C_UNSAFMESSAGEENCODER_H