00001 /* 00002 * ============================================================================= 00003 * Name : sipfromheader.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 CSIPFROMHEADER_H 00023 #define CSIPFROMHEADER_H 00024 00025 // INCLUDES 00026 #include "sipfromtoheaderbase.h" 00027 #include "_sipcodecdefs.h" 00028 00029 // CLASS DECLARATION 00038 class CSIPFromHeader : public CSIPFromToHeaderBase 00039 { 00040 public: // Constructors and destructor 00041 00048 IMPORT_C static CSIPFromHeader* DecodeL(const TDesC8& aValue); 00049 00056 IMPORT_C static CSIPFromHeader* NewL(CSIPAddress* aSIPAddress); 00057 00064 IMPORT_C static CSIPFromHeader* NewLC(CSIPAddress* aSIPAddress); 00065 00073 IMPORT_C static CSIPFromHeader* 00074 NewL(const CSIPFromToHeaderBase& aHeader); 00075 00084 IMPORT_C static CSIPFromHeader* 00085 NewLC(const CSIPFromToHeaderBase& aHeader); 00086 00090 IMPORT_C ~CSIPFromHeader(); 00091 00092 00093 public: // New functions 00094 00101 IMPORT_C static CSIPHeaderBase* 00102 InternalizeValueL(RReadStream& aReadStream); 00103 00104 00105 public: // From CSIPHeaderBase 00106 00110 IMPORT_C CSIPHeaderBase* CloneL() const; 00111 00115 IMPORT_C RStringF Name() const; 00116 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 CSIPFromHeader(); 00130 }; 00131 00132 // CSIPFROMHEADER_H 00133 #endif 00134 00135 // End of File