S60 3rd Edition API Reference: siptokenheaderbase.h Source File

siptokenheaderbase.h

Go to the documentation of this file.
00001 /*
00002 * =============================================================================
00003 *  Name        : siptokenheaderbase.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 CSIPTOKENHEADERBASE_H
00023 #define CSIPTOKENHEADERBASE_H
00024 
00025 //  INCLUDES
00026 #include "sipheaderbase.h"
00027 #include "_sipcodecdefs.h"
00028 
00029 // CLASS DECLARATION
00038 class CSIPTokenHeaderBase : public CSIPHeaderBase
00039         {
00040         public: // Constructors and destructor
00041 
00045                 IMPORT_C virtual ~CSIPTokenHeaderBase();
00046 
00047 
00048         public: // New functions
00049 
00054                 IMPORT_C void SetValueL(RStringF aValue);
00055         
00060                 IMPORT_C RStringF Value() const;
00061 
00062 
00063         public: // From CSIPHeaderBase
00064 
00068                 IMPORT_C HBufC8* ToTextValueL() const;
00069 
00070 
00071         public: // From CSIPHeaderBase, for internal use
00072 
00073                 virtual TBool MoreThanOneAllowed() const;
00074 
00075         protected: // Constructors
00076 
00077                 CSIPTokenHeaderBase();
00078             CSIPTokenHeaderBase(const CSIPTokenHeaderBase& aHeader);
00079                 void ConstructL(const TDesC8& aValue, TBool aEmptyValueAllowed=EFalse);
00080                 void ConstructL(RStringF aValue, TBool aEmptyValueAllowed=EFalse);
00081                 
00082         protected: // New functions             
00083                 
00084                 void DoInternalizeValueL(RReadStream& aReadStream);
00085 
00086         protected: // Data      
00087         
00088                 RStringF iValue;
00089 
00090         private: // From CSIPHeaderBase
00091 
00092                 void ExternalizeValueL(RWriteStream& aWriteStream) const;
00093 
00094         private: // New functions
00095 
00096                 void SetValueL(const TDesC8& aValue);   
00097 
00098         private: // For testing purposes
00099         
00100                 UNIT_TEST(CSIPTokenHeaderBaseTest)
00101         };
00102 
00103 // CSIPTOKENHEADERBASE_H
00104 #endif
00105 
00106 // End of File

Copyright © Nokia Corporation 2001-2007
Back to top