00001 /* 00002 * ============================================================================= 00003 * Name : sipsupportedheader.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 CSIPSUPPORTEDHEADER_H 00023 #define CSIPSUPPORTEDHEADER_H 00024 00025 // INCLUDES 00026 #include "siptokenheaderbase.h" 00027 #include "_sipcodecdefs.h" 00028 00029 // CLASS DECLARATION 00038 class CSIPSupportedHeader : public CSIPTokenHeaderBase 00039 { 00040 public: // Constructors and destructor 00041 00048 IMPORT_C static RPointerArray<CSIPSupportedHeader> 00049 DecodeL(const TDesC8& aValue); 00050 00056 IMPORT_C static CSIPSupportedHeader* NewL(RStringF aValue); 00057 00064 IMPORT_C static CSIPSupportedHeader* NewLC(RStringF aValue); 00065 00069 IMPORT_C ~CSIPSupportedHeader(); 00070 00071 00072 public: // New functions 00073 00080 IMPORT_C static CSIPHeaderBase* 00081 InternalizeValueL(RReadStream& aReadStream); 00082 00083 00084 public: // From CSIPHeaderBase 00085 00089 IMPORT_C CSIPHeaderBase* CloneL() const; 00090 00094 IMPORT_C RStringF Name() const; 00095 00096 00097 public: // From CSIPHeaderBase, for internal use 00098 00099 TBool HasCompactName() const; 00100 RStringF CompactName() const; 00101 TPreferredPlace PreferredPlaceInMessage() const; 00102 00103 public: // New functions, for internal use 00104 00105 static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue); 00106 00107 private: // New functions 00108 00109 CSIPSupportedHeader(); 00110 CSIPSupportedHeader(const CSIPSupportedHeader& aHeader); 00111 00112 private: // For testing purposes 00113 00114 UNIT_TEST(CSIPSupportedHeaderTest) 00115 }; 00116 00117 // CSIPSUPPORTEDHEADER_H 00118 #endif 00119 00120 // End of File