epoc32/include/mw/siptoheader.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        : siptoheader.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 CSIPTOHEADER_H
    26 #define CSIPTOHEADER_H
    27 
    28 //  INCLUDES
    29 #include "sipfromtoheaderbase.h"
    30 
    31 // CLASS DECLARATION
    32 /**
    33 * @publishedAll
    34 * @released
    35 *
    36 * Class provides functions for setting and getting SIP "To" header fields.
    37 *
    38 * @lib sipcodec.lib
    39 */
    40 class CSIPToHeader : public CSIPFromToHeaderBase
    41 	{
    42 	public:	// Constructors and destructor
    43 
    44 		/**
    45 		* Constructs a CSIPToHeader from textual representation 
    46 		* of the header's value part.
    47 		* @param aValue a value part of a "To"-header (e.g. "User <user@host>")
    48 		* @return a new instance of CSIPToHeader 
    49 		*/
    50 		IMPORT_C static CSIPToHeader* DecodeL(const TDesC8& aValue);
    51 
    52 		/**
    53 		* Creates a new instance of CSIPToHeader
    54 		* @pre aSIPAddress != 0
    55 		* @param aSIPAddress a name-address, the ownership is transferred,
    56 		* @return a new instance of CSIPToHeader
    57 		*/
    58 		IMPORT_C static CSIPToHeader* NewL(CSIPAddress* aSIPAddress);
    59 
    60 		/**
    61 		* Creates a new instance of CSIPToHeader and puts it to CleanupStack
    62 		* @pre aSIPAddress != 0
    63 		* @param aSIPAddress a name-address, the ownership is transferred,
    64 		* @return a new instance of CSIPToHeader
    65 		*/
    66 		IMPORT_C static CSIPToHeader* NewLC(CSIPAddress* aSIPAddress);
    67 
    68 		/**
    69 		* Creates a deep-copy of a CSIPFromToHeaderBase
    70 		* Note that this function can be used for creating a To-header
    71 		* using an existing From-header.
    72 		* @param aHeader CSIPFromToHeaderBase to be copied
    73 		* @return a new instance of CSIPToHeader
    74 		*/
    75 
    76 		IMPORT_C static CSIPToHeader* 
    77 			NewL(const CSIPFromToHeaderBase& aHeader);
    78 
    79 		/**
    80 		* Creates a deep-copy of a CSIPFromToHeaderBase and 
    81 		* puts it to CleanupStack
    82 		* Note that this function can be used for creating a To-header
    83 		* using an existing From-header.
    84 		* @param aHeader CSIPFromToHeaderBaseto to be copied
    85 		* @return a new instance of CSIPToHeader
    86 		*/
    87 		IMPORT_C static CSIPToHeader* 
    88 			NewLC(const CSIPFromToHeaderBase& aHeader);
    89 
    90 		/**
    91 		* Destructor, deletes the resources of CSIPToHeader.
    92 		*/
    93 		IMPORT_C ~CSIPToHeader();
    94 
    95 
    96 	public: // New functions
    97 
    98 		/**
    99 		* Constructs an instance of a CSIPToHeader from a RReadStream
   100 		* @param aReadStream a stream containing the value of the
   101 		*        externalized object (header name not included). 
   102 		* @return an instance of a CSIPToHeader
   103 		*/
   104 		IMPORT_C static CSIPHeaderBase* 
   105 			InternalizeValueL(RReadStream& aReadStream);
   106 
   107 
   108 	public: // From CSIPHeaderBase
   109 		
   110 		/**
   111 		* From CSIPHeaderBase CloneL
   112 		*/
   113 		IMPORT_C CSIPHeaderBase* CloneL() const;
   114 
   115 		/**
   116 		* From CSIPHeaderBase Name
   117 		*/
   118 		IMPORT_C RStringF Name() const;
   119 
   120 
   121 	public: // From CSIPHeaderBase, for internal use
   122 
   123         /**
   124         * @internalComponent
   125         */
   126 		RStringF CompactName() const;
   127 
   128 	public: // New functions, for internal use
   129 
   130 		static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue);
   131 
   132 	private: // Constructors
   133 
   134 		CSIPToHeader();
   135 	};
   136 
   137 #endif // CSIPTOHEADER_H
   138 
   139 // End of File