realtimenetprots/sipfw/SIP/Codec/inc/sipsecurityserverheader.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2004-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          : sipsecurityserverheader.h
       
    16 * Part of       : SIP Codec
       
    17 * Version       : SIP/4.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 
       
    29 #ifndef CSIPSECURITYSERVERHEADER_H
       
    30 #define CSIPSECURITYSERVERHEADER_H
       
    31 
       
    32 //  INCLUDES
       
    33 #include "sipsecurityheaderbase.h"
       
    34 #include "_sipcodecdefs.h"
       
    35 
       
    36 // CLASS DECLARATION
       
    37 /**
       
    38 * Class for a SIP Security-Server header.
       
    39 *
       
    40 * @lib sipcodec.lib
       
    41 */
       
    42 class CSIPSecurityServerHeader : public CSIPSecurityHeaderBase
       
    43 	{
       
    44 	public:	// Constructors and destructor
       
    45 
       
    46 		/**
       
    47 		* Constructs a CSIPSecurityServerHeader from textual representation 
       
    48 		* of the header's value part.
       
    49 		* @param aValue a value part of a "Security-Server"-header
       
    50 		* @return an array containing 1..n instances of 
       
    51 		* CSIPSecurityServerHeader
       
    52 		*/
       
    53 		IMPORT_C static RPointerArray<CSIPSecurityServerHeader> 
       
    54 			DecodeL(const TDesC8& aValue);
       
    55 
       
    56 		/**
       
    57 		* Creates a new instance of CSIPSecurityServerHeader
       
    58 		* @param aMechanism a Mechanism-Name parameter 
       
    59 		* in the "Security-Server" header
       
    60 		* @return a new instance of CSIPSecurityServerHeader
       
    61 		*/
       
    62 		IMPORT_C static CSIPSecurityServerHeader* 
       
    63 			NewL(const TDesC8& aMechanism);
       
    64 
       
    65 		/**
       
    66 		* Creates a new instance of CSIPSecurityServerHeader 
       
    67 		* and puts it to CleanupStack
       
    68 		* @param aMechanism a Mechanism-Name parameter 
       
    69 		* in the "Security-Server" header
       
    70 		* @return a new instance of CSIPSecurityServerHeader
       
    71 		*/
       
    72 		IMPORT_C static CSIPSecurityServerHeader* 
       
    73 			NewLC(const TDesC8& aMechanism);
       
    74 
       
    75 		/**
       
    76 		* Destructor, deletes the resources of CSIPSecurityServerHeader.
       
    77 		*/
       
    78 		IMPORT_C ~CSIPSecurityServerHeader();
       
    79 
       
    80 
       
    81 	public: // From CSIPHeaderBase
       
    82 
       
    83 		/**
       
    84 		* From CSIPHeaderBase CloneL
       
    85 		*/
       
    86 		IMPORT_C CSIPHeaderBase* CloneL() const;
       
    87 		
       
    88 		/**
       
    89 		* From CSIPHeaderBase Name
       
    90 		*/		
       
    91 		IMPORT_C RStringF Name() const;
       
    92 
       
    93 	public: // New functions, for internal use
       
    94 
       
    95 		static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue);
       
    96 
       
    97 	private: // Constructors
       
    98 
       
    99 		CSIPSecurityServerHeader();
       
   100 
       
   101 	private: // For testing purposes
       
   102 	
       
   103 		UNIT_TEST(CSIPSecurityHeaderBaseTest)
       
   104     };
       
   105 
       
   106 #endif // CSIPSECURITYSERVERHEADER_H
       
   107 
       
   108 // End of File