S60 3rd Edition API Reference: sipacceptencodingheader.h Source File

sipacceptencodingheader.h

Go to the documentation of this file.
00001 /*
00002 * =============================================================================
00003 *  Name        : sipacceptencodingheader.h
00004 *  Part of     : SIP Codec
00005 *  Interface   : SDK API, SIP Codec API
00006 *  Description : 
00007 *  Version     : SIP/4.0 
00008 *
00009 *  Copyright (c) 2004 Nokia Corporation. 
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation. All rights are reserved. Copying, 
00013 *  including reproducing, storing, adapting or translating, any 
00014 *  or all of this material requires the prior written consent of 
00015 *  Nokia Corporation. This material also contains confidential 
00016 *  information which may not be disclosed to others without the 
00017 *  prior written consent of Nokia Corporation. 
00018 * =============================================================================
00019 */
00020 
00021 
00022 #ifndef CSIPACCEPTENCODINGHEADER_H
00023 #define CSIPACCEPTENCODINGHEADER_H
00024 
00025 //  INCLUDES
00026 #include "SipParameterHeaderBase.h"
00027 #include "_sipcodecdefs.h"
00028 
00029 // FORWARD DECLARATIONS
00030 class CSIPAcceptHeaderParams;
00031 
00032 // CLASS DECLARATION
00042 class CSIPAcceptEncodingHeader : public CSIPParameterHeaderBase
00043         {
00044         public: // Constructors and destructor
00045 
00053                 IMPORT_C static RPointerArray<CSIPAcceptEncodingHeader> 
00054                         DecodeL(const TDesC8& aValue);
00055 
00061                 IMPORT_C static CSIPAcceptEncodingHeader* NewL(const TDesC8& aCodings);
00062 
00069                 IMPORT_C static CSIPAcceptEncodingHeader* NewLC(const TDesC8& aCodings);
00070 
00074                 IMPORT_C ~CSIPAcceptEncodingHeader();
00075 
00076         
00077         public: // New functions  
00078 
00083                 IMPORT_C const TDesC8& Codings() const;
00084 
00089                 IMPORT_C void SetCodingsL(const TDesC8& aCodings);
00090 
00095                 IMPORT_C TReal QParameter() const;
00096 
00101                 IMPORT_C void SetQParameterL(TReal aQValue);
00102 
00109                 IMPORT_C static CSIPHeaderBase* 
00110                         InternalizeValueL(RReadStream& aReadStream);
00111 
00112 
00113         public: // From CSIPHeaderBase
00114 
00118                 IMPORT_C CSIPHeaderBase* CloneL() const;
00119 
00123                 IMPORT_C RStringF Name() const;
00124 
00125 
00126         public: // From CSIPHeaderBase, for internal use
00127 
00128                 TBool MoreThanOneAllowed() const;
00129                 TPreferredPlace PreferredPlaceInMessage() const;
00130 
00131         public: // New functions, for internal use
00132 
00133                 static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue);
00134 
00135         private: // From CSIPHeaderBase
00136 
00137                 void ExternalizeValueL(RWriteStream& aWriteStream) const;
00138 
00139         private: // From CSIPParameterHeaderBase
00140 
00141                 HBufC8* ToTextMandatoryPartLC() const;
00142                 void ParseMandatoryPartL(const TDesC8& aMandatoryPart);
00143                 const CSIPParamContainerBase& Params() const;
00144                 CSIPParamContainerBase& Params();
00145         
00146         private: // Constructors
00147 
00148                 CSIPAcceptEncodingHeader();
00149                 void ConstructL();
00150                 void ConstructL(const TDesC8& aCodings);
00151                 void ConstructL(const CSIPAcceptEncodingHeader& aAcceptEncodingHeader);
00152 
00153         private: // New functions
00154 
00155                 void DoInternalizeValueL(RReadStream& aReadStream);
00156 
00157         private: // Data
00158 
00159                 HBufC8* iCodings;
00160                 CSIPAcceptHeaderParams* iParams;
00161 
00162         private: // For testing purposes
00163         
00164                 UNIT_TEST(CSIPAcceptEncodingHeaderTest)
00165         };
00166 
00167 // CSIPACCEPTENCODINGHEADER_H
00168 #endif
00169 
00170 // End of File

Copyright © Nokia Corporation 2001-2007
Back to top