realtimenetprots/sipfw/SIP/Codec/inc/sipservicerouteheader.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          : sipservicerouteheader.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 CSIPSERVICEROUTEHEADER_H
       
    30 #define CSIPSERVICEROUTEHEADER_H
       
    31 
       
    32 //  INCLUDES
       
    33 #include "siprouteheaderbase.h"
       
    34 #include "_sipcodecdefs.h"
       
    35 
       
    36 // CLASS DECLARATION
       
    37 /**
       
    38 * Class for a SIP Service-Route header.
       
    39 *
       
    40 * @lib sipcodec.lib
       
    41 */
       
    42 class CSIPServiceRouteHeader : public CSIPRouteHeaderBase
       
    43 	{
       
    44 	public:	// Constructors and destructor
       
    45 
       
    46 		/**
       
    47 		* Constructs a CSIPServiceRouteHeader from textual representation 
       
    48 		* of the header's value part.
       
    49 		* @param aValue a value part of a "Service-Route"-header
       
    50 		* @return an array containing 1..n instances of CSIPServiceRouteHeader
       
    51 		*/
       
    52 		IMPORT_C static RPointerArray<CSIPServiceRouteHeader> 
       
    53 			DecodeL(const TDesC8& aValue);
       
    54 
       
    55 		/**
       
    56 		* Creates a new instance of CSIPServiceRouteHeader
       
    57 		* @pre aSIPAddress != 0
       
    58 		* @param aSIPAddress a name-address, the ownership is transferred 
       
    59 		* @returns a new instance of CSIPServiceRouteHeader
       
    60 		*/
       
    61 		IMPORT_C static CSIPServiceRouteHeader* NewL(CSIPAddress* aSIPAddress);
       
    62 
       
    63 		/**
       
    64 		* Creates a new instance of CSIPServiceRouteHeader 
       
    65 		* and puts it to CleanupStack
       
    66 		* @pre aSIPAddress != 0
       
    67 		* @param aSIPAddress a name-address, the ownership is transferred 
       
    68 		* @returns a new instance of CSIPServiceRouteHeader
       
    69 		*/
       
    70 		IMPORT_C static CSIPServiceRouteHeader* NewLC(CSIPAddress* aSIPAddress);
       
    71 
       
    72 		/**
       
    73 		* Destructor
       
    74 		*/
       
    75 		IMPORT_C ~CSIPServiceRouteHeader();
       
    76 
       
    77 
       
    78 	public: // From CSIPHeaderBase
       
    79 
       
    80 		/**
       
    81 		* From CSIPHeaderBase CloneL
       
    82 		*/
       
    83 		IMPORT_C CSIPHeaderBase* CloneL() const;
       
    84 		
       
    85 		/**
       
    86 		* From CSIPHeaderBase Name
       
    87 		*/		
       
    88 		IMPORT_C RStringF Name() const;
       
    89 
       
    90 		/**
       
    91 		* From CSIPHeaderBase ExternalizeSupported
       
    92 		*/
       
    93 		IMPORT_C TBool ExternalizeSupported() const;
       
    94 
       
    95 
       
    96 	public: // New functions, for internal use
       
    97 
       
    98 		static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue);
       
    99 
       
   100 	private: // Constructors 
       
   101 
       
   102 		CSIPServiceRouteHeader();
       
   103 	};
       
   104 
       
   105 #endif // CSIPSERVICEROUTEHEADER_H
       
   106 
       
   107 // End of File