1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/sipauthorizationheader.h Tue Mar 16 16:12:26 2010 +0000
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 : sipauthorizationheader.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 CSIPAUTHORIZATIONHEADER_H
1.27 +#define CSIPAUTHORIZATIONHEADER_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 Authorization-header manipulation.
1.39 +* @lib sipcodec.lib
1.40 +*/
1.41 +class CSIPAuthorizationHeader : public CSIPAuthorizationHeaderBase
1.42 + {
1.43 + public: // Constructors and destructor
1.44 +
1.45 + /**
1.46 + * Constructs a CSIPAuthorizationHeader
1.47 + * from textual representation of the header's value part.
1.48 + * @param aValue a value part of a "Proxy-Authenticate"-header
1.49 + * @return a new instance of CSIPAuthorizationHeader
1.50 + */
1.51 + IMPORT_C static CSIPAuthorizationHeader*
1.52 + DecodeL(const TDesC8& aValue);
1.53 +
1.54 + /**
1.55 + * Creates a new instance of CSIPAuthorizationHeader
1.56 + * @return a new instance of CSIPAuthorizationHeader
1.57 + */
1.58 + IMPORT_C static CSIPAuthorizationHeader*
1.59 + NewL(RStringF aAuthScheme);
1.60 +
1.61 + /**
1.62 + * Creates a new instance of CSIPAuthorizationHeader
1.63 + * @return a new instance of CSIPAuthorizationHeader
1.64 + */
1.65 + IMPORT_C static CSIPAuthorizationHeader*
1.66 + NewLC(RStringF aAuthScheme);
1.67 +
1.68 + /**
1.69 + * Creates a deep-copy of a CSIPAuthorizationHeaderBase
1.70 + * @param aAuthenticateHeaderBase to be copied
1.71 + * @return a new instance of CSIPAuthorizationHeader
1.72 + */
1.73 + IMPORT_C static CSIPAuthorizationHeader*
1.74 + NewL(const CSIPAuthorizationHeaderBase& aHeader);
1.75 +
1.76 + /**
1.77 + * Creates a deep-copy of a CSIPAuthorizationHeaderBase
1.78 + * @param aAuthenticateHeaderBase to be copied
1.79 + * @return a new instance of CSIPAuthorizationHeader
1.80 + */
1.81 + IMPORT_C static CSIPAuthorizationHeader*
1.82 + NewLC(const CSIPAuthorizationHeaderBase& aHeader);
1.83 +
1.84 + /**
1.85 + * Destructor
1.86 + */
1.87 + IMPORT_C ~CSIPAuthorizationHeader();
1.88 +
1.89 + public: // From CSIPHeaderBase
1.90 +
1.91 + /**
1.92 + * From CSIPHeaderBase ExternalizeSupported
1.93 + */
1.94 + IMPORT_C TBool ExternalizeSupported() const;
1.95 +
1.96 + /**
1.97 + * From CSIPHeaderBase CloneL
1.98 + */
1.99 + IMPORT_C CSIPHeaderBase* CloneL() const;
1.100 +
1.101 + /**
1.102 + * From CSIPHeaderBase Name
1.103 + */
1.104 + IMPORT_C RStringF Name() const;
1.105 +
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 + CSIPAuthorizationHeader();
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(CSIPAuthorizationHeaderTest)
1.130 + };
1.131 +
1.132 +#endif // CSIPAUTHORIZATIONHEADER_H
1.133 +
1.134 +// End of File