1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/mw/sipproxyauthorizationheader.h Wed Mar 31 12:27:01 2010 +0100
1.3 @@ -0,0 +1,131 @@
1.4 +/*
1.5 +* Copyright (c) 2007-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 : sipproxyauthorizationheader.h
1.19 +* Part of : SIP Codec
1.20 +* Version : SIP/6.0
1.21 +*
1.22 +*/
1.23 +
1.24 +
1.25 +
1.26 +#ifndef CSIPPROXYAUTHORIZATIONHEADER_H
1.27 +#define CSIPPROXYAUTHORIZATIONHEADER_H
1.28 +
1.29 +// INCLUDES
1.30 +#include "sipauthorizationheaderbase.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 Proxy-Authorization-header manipulation.
1.39 +*
1.40 +* @lib sipcodec.lib
1.41 +*/
1.42 +class CSIPProxyAuthorizationHeader : public CSIPAuthorizationHeaderBase
1.43 + {
1.44 + public: // Constructors and destructor
1.45 +
1.46 + /**
1.47 + * Constructs a CSIPProxyAuthorizationHeader
1.48 + * from textual representation of the header's value part.
1.49 + * @param aValue a value part of a "Proxy-Authenticate"-header
1.50 + * @return a new instance of CSIPProxyAuthorizationHeader
1.51 + */
1.52 + IMPORT_C static CSIPProxyAuthorizationHeader*
1.53 + DecodeL(const TDesC8& aValue);
1.54 +
1.55 + /**
1.56 + * Creates a new instance of CSIPProxyAuthorizationHeader
1.57 + * @return a new instance of CSIPProxyAuthorizationHeader
1.58 + */
1.59 + IMPORT_C static CSIPProxyAuthorizationHeader*
1.60 + NewL(RStringF aAuthScheme);
1.61 +
1.62 + /**
1.63 + * Creates a new instance of CSIPProxyAuthorizationHeader
1.64 + * @return a new instance of CSIPProxyAuthorizationHeader
1.65 + */
1.66 + IMPORT_C static CSIPProxyAuthorizationHeader*
1.67 + NewLC(RStringF aAuthScheme);
1.68 +
1.69 + /**
1.70 + * Creates a deep-copy of a CSIPAuthorizationHeaderBase
1.71 + * @param aAuthenticateHeaderBase to be copied
1.72 + * @return a new instance of CSIPProxyAuthorizationHeader
1.73 + */
1.74 + IMPORT_C static CSIPProxyAuthorizationHeader*
1.75 + NewL(const CSIPAuthorizationHeaderBase& aHeader);
1.76 +
1.77 + /**
1.78 + * Creates a deep-copy of a CSIPAuthorizationHeaderBase
1.79 + * @param aAuthenticateHeaderBase to be copied
1.80 + * @return a new instance of CSIPProxyAuthorizationHeader
1.81 + */
1.82 + IMPORT_C static CSIPProxyAuthorizationHeader*
1.83 + NewLC(const CSIPAuthorizationHeaderBase& aHeader);
1.84 +
1.85 + /**
1.86 + * Destructor
1.87 + */
1.88 + IMPORT_C ~CSIPProxyAuthorizationHeader();
1.89 +
1.90 + public: // From CSIPHeaderBase
1.91 +
1.92 + /**
1.93 + * From CSIPHeaderBase ExternalizeSupported
1.94 + */
1.95 + IMPORT_C TBool ExternalizeSupported() const;
1.96 +
1.97 + /**
1.98 + * From CSIPHeaderBase CloneL
1.99 + */
1.100 + IMPORT_C CSIPHeaderBase* CloneL() const;
1.101 +
1.102 + /**
1.103 + * From CSIPHeaderBase Name
1.104 + */
1.105 + IMPORT_C RStringF Name() const;
1.106 +
1.107 + public: // New functions, for internal use
1.108 +
1.109 + /**
1.110 + * @internalComponent
1.111 + */
1.112 + static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue);
1.113 +
1.114 + /**
1.115 + * @internalComponent
1.116 + */
1.117 + static CSIPHeaderBase* InternalizeValueL(RReadStream& aReadStream);
1.118 +
1.119 + private: // Constructors
1.120 +
1.121 + CSIPProxyAuthorizationHeader();
1.122 +
1.123 + private: // From CSIPHeaderBase
1.124 +
1.125 + void ExternalizeValueL(RWriteStream& aWriteStream) const;
1.126 +
1.127 + private: // For testing purposes
1.128 +
1.129 + UNIT_TEST(CSIPProxyAuthorizationHeaderTest)
1.130 + };
1.131 +
1.132 +#endif // CSIPPROXYAUTHORIZATIONHEADER_H
1.133 +
1.134 +// End of File