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