00001 /* 00002 * ============================================================================= 00003 * Name : sipunsignedintheaderbase.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 CSIPUNSIGNEDINTHEADERBASE_H 00023 #define CSIPUNSIGNEDINTHEADERBASE_H 00024 00025 // INCLUDES 00026 #include "sipheaderbase.h" 00027 #include "_sipcodecdefs.h" 00028 00029 00030 // CLASS DECLARATION 00039 class CSIPUnsignedIntHeaderBase : public CSIPHeaderBase 00040 { 00041 public: // Constructors and destructor 00042 00046 IMPORT_C virtual ~CSIPUnsignedIntHeaderBase(); 00047 00048 00049 public: // New functions 00050 00055 IMPORT_C void SetValue(TUint aValue); 00056 00061 IMPORT_C TUint Value() const; 00062 00063 00064 public: // From CSIPHeaderBase 00065 00069 IMPORT_C HBufC8* ToTextValueL() const; 00070 00071 00072 protected: // Constructors 00073 00074 CSIPUnsignedIntHeaderBase(); 00075 CSIPUnsignedIntHeaderBase(TUint aValue); 00076 00077 protected: // New functions 00078 00079 void ParseL(const TDesC8& aValue, TInt aErrorIfParsingFails); 00080 void DoInternalizeValueL(RReadStream& aReadStream); 00081 00082 protected: // From CSIPHeaderBase 00083 00084 void ExternalizeValueL (RWriteStream& aWriteStream) const; 00085 00086 protected: // Data 00087 00088 TUint iValue; 00089 }; 00090 00091 // CSIPUNSIGNEDINTHEADERBASE_H 00092 #endif 00093 00094 // End of File