00001 /* 00002 * ============================================================================= 00003 * Name : siptoheader.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 CSIPTOHEADER_H 00023 #define CSIPTOHEADER_H 00024 00025 // INCLUDES 00026 #include "sipfromtoheaderbase.h" 00027 #include "_sipcodecdefs.h" 00028 00029 // CLASS DECLARATION 00038 class CSIPToHeader : public CSIPFromToHeaderBase 00039 { 00040 public: // Constructors and destructor 00041 00048 IMPORT_C static CSIPToHeader* DecodeL(const TDesC8& aValue); 00049 00056 IMPORT_C static CSIPToHeader* NewL(CSIPAddress* aSIPAddress); 00057 00064 IMPORT_C static CSIPToHeader* NewLC(CSIPAddress* aSIPAddress); 00065 00074 IMPORT_C static CSIPToHeader* 00075 NewL(const CSIPFromToHeaderBase& aHeader); 00076 00085 IMPORT_C static CSIPToHeader* 00086 NewLC(const CSIPFromToHeaderBase& aHeader); 00087 00091 IMPORT_C ~CSIPToHeader(); 00092 00093 00094 public: // New functions 00095 00102 IMPORT_C static CSIPHeaderBase* 00103 InternalizeValueL(RReadStream& aReadStream); 00104 00105 00106 public: // From CSIPHeaderBase 00107 00111 IMPORT_C CSIPHeaderBase* CloneL() const; 00112 00116 IMPORT_C RStringF Name() const; 00117 00118 00119 public: // From CSIPHeaderBase, for internal use 00120 00121 RStringF CompactName() const; 00122 00123 public: // New functions, for internal use 00124 00125 static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue); 00126 00127 private: // Constructors 00128 00129 CSIPToHeader(); 00130 }; 00131 00132 // CSIPTOHEADER_H 00133 #endif 00134 00135 // End of File