2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Name : sipunsignedintheaderbase.h
17 * Interface : SDK API, SIP Codec API
25 #ifndef CSIPUNSIGNEDINTHEADERBASE_H
26 #define CSIPUNSIGNEDINTHEADERBASE_H
29 #include "sipheaderbase.h"
30 #include "_sipcodecdefs.h"
38 * A base class for SIP headers having form: "Name: 1*DIGIT"
42 class CSIPUnsignedIntHeaderBase : public CSIPHeaderBase
44 public: // Constructors and destructor
47 * Destructor, deletes the resources of CSIPUnsignedIntHeaderBase.
49 IMPORT_C virtual ~CSIPUnsignedIntHeaderBase();
52 public: // New functions
55 * Sets the header value as an unsigned integer
56 * @param aValue a value to set
58 IMPORT_C void SetValue(TUint aValue);
61 * Gets the header value as an unsigned integer
62 * @return the header value
64 IMPORT_C TUint Value() const;
67 public: // From CSIPHeaderBase
70 * From CSIPHeaderBase ToTextValueL
72 IMPORT_C HBufC8* ToTextValueL() const;
75 protected: // Constructors
77 CSIPUnsignedIntHeaderBase();
78 CSIPUnsignedIntHeaderBase(TUint aValue);
80 protected: // New functions
82 void ParseL(const TDesC8& aValue, TInt aErrorIfParsingFails);
83 void DoInternalizeValueL(RReadStream& aReadStream);
85 protected: // From CSIPHeaderBase
90 void ExternalizeValueL (RWriteStream& aWriteStream) const;
100 #endif // CSIPUNSIGNEDINTHEADERBASE_H