epoc32/include/mw/sipreplytoheader.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 epoc32/include/sipreplytoheader.h@2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
     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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 * Name        : sipreplytoheader.h
    16 * Part of     : SIP Codec
    17 * Interface   : SDK API, SIP Codec API
    18 * Version     : SIP/4.0 
    19 *
    20 */
    21 
    22 
    23 
    24 
    25 #ifndef CSIPREPLYTOHEADER_H
    26 #define CSIPREPLYTOHEADER_H
    27 
    28 //  INCLUDES
    29 #include "sipaddressheaderbase.h"
    30 #include "_sipcodecdefs.h"
    31 
    32 // FORWARD DECLARATIONS
    33 class CSIPAddress;
    34 class CSIPHeaderGenericParams;
    35 
    36 // CLASS DECLARATION
    37 /**
    38 * @publishedAll
    39 * @released
    40 *
    41 * Class provides functions for setting and getting parameters in SIP 
    42 * "Reply-To" header.
    43 *
    44 *  @lib sipcodec.lib
    45 */
    46 class CSIPReplyToHeader : public CSIPAddressHeaderBase
    47 	{
    48 	public:	// Constructors and destructor
    49 
    50 		/**
    51 		* Constructs a CSIPReplyToHeader from textual representation 
    52 		* of the header's value part.
    53 		* @param aValue a value part of a "Refer-To"-header 
    54 		*        (e.g. "User <user@host>")
    55 		* @return a new instance of CSIPReplyToHeader   
    56 		*/
    57 		IMPORT_C static CSIPReplyToHeader* DecodeL(const TDesC8& aValue);
    58 
    59 		/**
    60 		* Creates a new instance of CSIPReplyToHeader
    61 		* @pre aSIPAddress != 0
    62 		* @param aSIPAddress a name-address, the ownership is transferred.
    63 		* @return a new instance of CSIPReplyToHeader
    64 		*/
    65 		IMPORT_C static CSIPReplyToHeader* NewL(CSIPAddress* aSIPAddress);
    66 
    67 		/**
    68 		* Creates a new instance of CSIPReplyToHeader and puts it to CleanupStack
    69 		* @pre aSIPAddress != 0
    70 		* @param aSIPAddress a name-address, the ownership is transferred,
    71 		* @return a new instance of CSIPReplyToHeader
    72 		*/
    73 		IMPORT_C static CSIPReplyToHeader* NewLC(CSIPAddress* aSIPAddress);
    74 
    75 		/**
    76 		* Destructor, deletes the resources of CSIPReplyToHeader.
    77 		*/
    78 		IMPORT_C virtual ~CSIPReplyToHeader();
    79 
    80 
    81 	public: // New functions
    82 
    83 		/**
    84 		* Constructs an instance of a CSIPReplyToHeader from a RReadStream
    85 		* @param aReadStream a stream containing the value of the
    86 		*        externalized object (header name not included). 
    87 		* @return an instance of a CSIPReplyToHeader
    88 		*/
    89 		IMPORT_C static CSIPHeaderBase* 
    90             InternalizeValueL(RReadStream& aReadStream);
    91 
    92 
    93 	public: // From CSIPHeaderBase
    94 
    95 		/**
    96 		* From CSIPHeaderBase CloneL
    97 		*/
    98 		IMPORT_C CSIPHeaderBase* CloneL() const;
    99 
   100 		/**
   101 		* From CSIPHeaderBase Name
   102 		*/
   103 		IMPORT_C RStringF Name() const;
   104 
   105 
   106 	public: // From CSIPHeaderBase, for internal use
   107 
   108         /**
   109         * @internalComponent
   110         */
   111 		TPreferredPlace PreferredPlaceInMessage() const;
   112 
   113 	public: // New functions, for internal use
   114 
   115 		static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue);
   116 
   117 	private: // Constructors
   118 
   119 		CSIPReplyToHeader();
   120 
   121 	private: // For testing purposes
   122 	
   123 		UNIT_TEST(CSIPReplyToHeaderTest)
   124 	};
   125 
   126 #endif // end of CSIPREPLYTOHEADER_H
   127 
   128 // End of File