epoc32/include/sipwwwauthenticateheader.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/sipwwwauthenticateheader.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/sipwwwauthenticateheader.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,99 @@
     1.4 -sipwwwauthenticateheader.h
     1.5 +/*
     1.6 +* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* 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
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description:
    1.19 +* Name          : sipwwwauthenticateheader.h
    1.20 +* Part of       : SIP Codec
    1.21 +* Version       : SIP/5.0 
    1.22 +*
    1.23 +*/
    1.24 +
    1.25 +
    1.26 +
    1.27 +#ifndef CSIPWWWAUTHENTICATEHEADER_H
    1.28 +#define CSIPWWWAUTHENTICATEHEADER_H
    1.29 +
    1.30 +//  INCLUDES
    1.31 +#include "sipauthenticateheaderbase.h"
    1.32 +#include "_sipcodecdefs.h"
    1.33 +
    1.34 +// CLASS DECLARATION
    1.35 +/**
    1.36 +* @publishedAll
    1.37 +* @released
    1.38 +*
    1.39 +* Class for SIP WWW-Authenticate-header manipulation.
    1.40 +*
    1.41 +* @lib sipcodec.lib
    1.42 +*/
    1.43 +class CSIPWWWAuthenticateHeader : public CSIPAuthenticateHeaderBase
    1.44 +	{
    1.45 +	public:	// Constructors and destructor
    1.46 +
    1.47 +		/**
    1.48 +		* Constructs a CSIPWWWAuthenticateHeader from textual representation
    1.49 +		* of the header's value part.
    1.50 +		* @param aValue a value part of a "WWW-Authenticate"-header 
    1.51 +		* @return a new instance of CSIPWWWAuthenticateHeader
    1.52 +		*/
    1.53 +		IMPORT_C static CSIPWWWAuthenticateHeader* 
    1.54 +			DecodeL(const TDesC8& aValue);
    1.55 +
    1.56 +		/**
    1.57 +		* Creates a new instance of CSIPWWWAuthenticateHeader
    1.58 +		* @return a new instance of CSIPWWWAuthenticateHeader
    1.59 +		*/
    1.60 +		IMPORT_C static CSIPWWWAuthenticateHeader* 
    1.61 +			NewL(RStringF aAuthScheme);
    1.62 +
    1.63 +		/**
    1.64 +		* Creates a new instance of CSIPWWWAuthenticateHeader
    1.65 +		* @return a new instance of CSIPWWWAuthenticateHeader
    1.66 +		*/
    1.67 +		IMPORT_C static CSIPWWWAuthenticateHeader* 
    1.68 +			NewLC(RStringF aAuthScheme);
    1.69 +
    1.70 +		/**
    1.71 +		* Destructor
    1.72 +		*/
    1.73 +		IMPORT_C ~CSIPWWWAuthenticateHeader();
    1.74 +
    1.75 +	public: // From CSIPHeaderBase
    1.76 +
    1.77 +		/**
    1.78 +		* From CSIPHeaderBase CloneL
    1.79 +		*/
    1.80 +		IMPORT_C CSIPHeaderBase* CloneL() const;
    1.81 +		
    1.82 +		/**
    1.83 +		* From CSIPHeaderBase Name
    1.84 +		*/		
    1.85 +		IMPORT_C RStringF Name() const;
    1.86 +
    1.87 +	public: // New functions, for internal use
    1.88 +
    1.89 +		static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue);
    1.90 +		static CSIPHeaderBase* InternalizeValueL(RReadStream& aReadStream);
    1.91 +
    1.92 +	private: // Constructors
    1.93 +
    1.94 +		CSIPWWWAuthenticateHeader();
    1.95 +	
    1.96 +    private: // For testing purposes
    1.97 +	
    1.98 +		UNIT_TEST(CSIPWWWAuthenticateHeaderTest)
    1.99 +	};
   1.100 +
   1.101 +#endif // CSIPWWWAUTHENTICATEHEADER_H
   1.102 +
   1.103 +// End of File