epoc32/include/mw/sippassociateduriheader.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     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        : sippassociateduriheader.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 CSIPPASSOCIATEDURIHEADER_H
    26 #define CSIPPASSOCIATEDURIHEADER_H
    27 
    28 //  INCLUDES
    29 #include "sipaddressheaderbase.h"
    30 
    31 // FORWARD DECLARATIONS
    32 class CSIPAddress;
    33 class CSIPHeaderGenericParams;
    34 
    35 // CLASS DECLARATION
    36 /**
    37 * @publishedAll
    38 * @released
    39 *
    40 * Class provides functions for setting and getting parameters in SIP 
    41 * "P-Associated-URI" header.
    42 *
    43 *  @lib sipcodec.lib
    44 */
    45 class CSIPPAssociatedURIHeader : public CSIPAddressHeaderBase
    46 	{
    47 	public:	// Constructors and destructor
    48 
    49 		/**
    50 		* Constructs a CSIPPAssociatedURIHeader from textual representation 
    51 		* of the header's value part.
    52 		* @param aValue a value part of a "P-Associated-URI"-header 
    53 		*        (e.g. "User <user@host>;param=value")
    54 		* @return an array containing one to many instances 
    55         *         of CSIPPAssociatedURIHeader   
    56 		*/
    57 		IMPORT_C static RPointerArray<CSIPPAssociatedURIHeader> 
    58 			DecodeL(const TDesC8& aValue);
    59 
    60 		/**
    61 		* Creates a new instance of CSIPPAssociatedURIHeader
    62 		* @pre aSIPAddress != 0
    63 		* @param aSIPAddress a name-address, the ownership is transferred.
    64 		* @return a new instance of CSIPPAssociatedURIHeader
    65 		*/
    66 		IMPORT_C static CSIPPAssociatedURIHeader* 
    67             NewL(CSIPAddress* aSIPAddress);
    68 
    69 		/**
    70 		* Creates a new instance of CSIPPAssociatedURIHeader and 
    71         * puts it to CleanupStack
    72 		* @pre aSIPAddress != 0
    73 		* @param aSIPAddress a name-address, the ownership is transferred,
    74 		* @return a new instance of CSIPPAssociatedURIHeader
    75 		*/
    76 		IMPORT_C static CSIPPAssociatedURIHeader* 
    77             NewLC(CSIPAddress* aSIPAddress);
    78 
    79 		/**
    80 		* Destructor, deletes the resources of CSIPPAssociatedURIHeader.
    81 		*/
    82 		IMPORT_C virtual ~CSIPPAssociatedURIHeader();
    83 
    84 
    85 	public: // New functions
    86 
    87         /**
    88 		* Constructs an instance of a CSIPPAssociatedURIHeader from 
    89         * a RReadStream
    90 		* @param aReadStream a stream containing the value of the
    91 		*        externalized object (header name not included). 
    92 		* @return an instance of a CSIPPAssociatedURIHeader
    93 		*/
    94 		IMPORT_C static CSIPHeaderBase* 
    95             InternalizeValueL(RReadStream& aReadStream);
    96 
    97 	public: // From CSIPHeaderBase
    98 
    99 		/**
   100 		* From CSIPHeaderBase CloneL
   101 		*/
   102 		IMPORT_C CSIPHeaderBase* CloneL() const;
   103 
   104 		/**
   105 		* From CSIPHeaderBase Name
   106 		*/
   107 		IMPORT_C RStringF Name() const;
   108 
   109 	public: // From CSIPHeaderBase, for internal use
   110 
   111         /**
   112         * @internalComponent
   113         */
   114 		TPreferredPlace PreferredPlaceInMessage() const;
   115         
   116         /**
   117         * @internalComponent
   118         */        
   119         TBool MoreThanOneAllowed() const;
   120 
   121 	public: // New functions, for internal use
   122 
   123 		static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue);
   124 
   125 	private: // Constructors
   126 
   127 		CSIPPAssociatedURIHeader();
   128 
   129     private: // For testing purposes
   130 #ifdef CPPUNIT_TEST
   131         friend class CSIPPAssociatedURIHeaderTest;
   132 #endif
   133 	};
   134 
   135 #endif // end of CSIPPASSOCIATEDURIHEADER_H
   136 
   137 // End of File