epoc32/include/mw/sipauthenticateheaderbase.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) 2006-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          : sipauthenticateheaderbase.h
    16 * Part of       : SIP Codec
    17 * Version       : SIP/5.0 
    18 *
    19 */
    20 
    21 
    22 
    23 #ifndef CSIPAUTHENTICATEHEADERBASE_H
    24 #define CSIPAUTHENTICATEHEADERBASE_H
    25 
    26 //  INCLUDES
    27 #include "sipauthheaderbase.h"
    28 
    29 // FORWARD DECLARATIONS
    30 class CSIPAuthenticateHeaderParams;
    31 
    32 // CLASS DECLARATION
    33 /**
    34 * @publishedAll
    35 * @released
    36 *
    37 * A base class for SIP Proxy-Authenticate- and WWW-Authenticate-headers
    38 *
    39 * @lib sipcodec.lib
    40 */
    41 class CSIPAuthenticateHeaderBase : public CSIPAuthHeaderBase
    42 	{
    43 	public: // Constructors and destructor
    44 
    45 		/**
    46 		* Destructor.
    47 		*/
    48 		IMPORT_C virtual ~CSIPAuthenticateHeaderBase();
    49 
    50 
    51 	public: // New functions
    52 
    53 		/**
    54 		* Check whether a qop-value in qop-options is present. 
    55 		* @param aQopValue the qop-value
    56 		* @return ETrue if present, otherwise EFalse. 
    57 		*/
    58 		IMPORT_C TBool HasQopValueL(const TDesC8& aQopValue) const;
    59 
    60 	public: // From CSIPHeaderBase
    61 
    62 		/**
    63 		* From CSIPHeaderBase ExternalizeSupported
    64 		*/
    65 		IMPORT_C virtual TBool ExternalizeSupported() const;
    66 		
    67 	protected: // Constructors
    68 
    69 		CSIPAuthenticateHeaderBase();
    70 		void ConstructL();
    71 		void ConstructL(const CSIPAuthenticateHeaderBase& aHeader);
    72 
    73 	protected: // From CSIPHeaderBase
    74 
    75 		void ExternalizeValueL(RWriteStream& aWriteStream) const;
    76 
    77 	protected: // From CSIPAuthBase
    78 
    79 		const CSIPParamContainerBase& Params() const;
    80 		CSIPParamContainerBase& Params();
    81 
    82 	protected: // New functions
    83 
    84 		void DoInternalizeValueL(RReadStream& aReadStream);
    85 
    86 	protected: // Data
    87 
    88 		CSIPAuthenticateHeaderParams* iParams;
    89 	};
    90 
    91 #endif // CSIPAUTHENTICATEHEADERBASE_H
    92 
    93 // End of File