senbaseattribute.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : SenBaseAttribute.h
00004 *  Part of     : Web Services Xml
00005 *  Interface   : 
00006 *  Description : Class offers basic implementation of an XML attribute
00007 *  Version     : 
00008 *
00009 *  Copyright © 2002-2005 Nokia. All rights reserved.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia. All rights are reserved. Copying, including 
00013 *  reproducing, storing, adapting or translating, any 
00014 *  or all of this material requires the prior written consent of 
00015 *  Nokia. This material also contains confidential 
00016 *  information which may not be disclosed to others without the 
00017 *  prior written consent of Nokia.
00018 * ==============================================================================
00019 */
00020 
00021 #ifndef SEN_BASE_ATTRIBUTE_H
00022 #define SEN_BASE_ATTRIBUTE_H
00023 
00024 //  INCLUDES
00025 #include <e32base.h>
00026 #include <s32strm.h>
00027 
00028 // CLASS DECLARATION
00029 
00038 class CSenBaseAttribute : public CBase
00039     {
00040         public:  // Constructors and destructor
00041 
00051             IMPORT_C static CSenBaseAttribute* NewL(const TDesC8& aName,
00052                                                                                                 const TDesC8& aValue);
00053 
00065             IMPORT_C static CSenBaseAttribute* NewL(const TDesC8& aQName,
00066                                                                                                 const TDesC8& aName,
00067                                                                                                 const TDesC8& aValue);
00068                 
00072             IMPORT_C virtual ~CSenBaseAttribute();
00073         
00074         // New functions
00075         
00081             virtual const TDesC8& Name() const;
00082 
00088             virtual const TDesC8& Value() const;
00089                 
00096             virtual const TDesC8& SetValueL(const TDesC8& aValue);
00097     
00098     protected:  
00099     
00104             IMPORT_C CSenBaseAttribute();
00105     
00116             IMPORT_C void BaseConstructL(const TDesC8& aName,
00117                                                                          const TDesC8& aValue);
00118 
00128             IMPORT_C void BaseConstructL(const TDesC8& aName,
00129                                                                          const TDesC8& aQName,
00130                                                                          const TDesC8& aValue);
00131         
00132     private: // Data
00133             HBufC8* ipName;
00134             HBufC8* ipValue;
00135     };
00136 
00137 // SEN_BASE_ATTRIBUTE_H
00138 #endif
00139 
00140 // End of File
00141 

Copyright © Nokia Corporation 2001-2008
Back to top