SenNameSpace.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : SenNamespace.h
00004 *  Part of     : Web Services Xml
00005 *  Interface   : Class implements XML namespace functionality
00006 *  Description : Implementation of XML namespace functionality
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_NAME_SPACE_H
00022 #define SEN_NAME_SPACE_H
00023 
00024 //  INCLUDES
00025 #include <e32base.h>
00026 #include <s32mem.h>
00027 
00028 // CLASS DECLARATION
00029 
00036 class CSenNamespace :   public CBase
00037     {
00038     public:  // Constructors and destructor
00039         
00045         IMPORT_C static CSenNamespace* NewL(const TDesC8& aPrefix,
00046                                             const TDesC8& aUri);
00052         IMPORT_C static CSenNamespace* NewLC(const TDesC8& aPrefix,
00053                                              const TDesC8& aUri);
00058         IMPORT_C static CSenNamespace* NewL(const TDesC8& aUri);
00059 
00064         IMPORT_C static CSenNamespace* NewLC(const TDesC8& aUri);
00065 
00069         IMPORT_C virtual ~CSenNamespace();
00070         
00071     public: // New functions
00072         
00077         IMPORT_C const TDesC8& URI() const;
00078 
00083         IMPORT_C const TDesC8& Prefix() const;
00084 
00089         IMPORT_C void SetUriL(const TDesC8& aUri);
00090 
00095         IMPORT_C void SetPrefixL(const TDesC8& aPrefix);
00096 
00105         IMPORT_C TBool Compare(const TDesC8& aOtherPrefix,
00106                                const TDesC8& aOtherUri) const;
00107 
00115         IMPORT_C TBool Compare(const CSenNamespace& aOtherNamespace) const;
00116         
00124         IMPORT_C TBool MatchesL(const CSenNamespace& aOtherNamespace) const;
00125 
00131         IMPORT_C void InsertL(RBufWriteStream& aWs);
00132     
00133     private:
00134 
00138         CSenNamespace();
00139 
00143         void ConstructL(const TDesC8& aPrefix, const TDesC8& aUri);
00144 
00145     private: // Data
00146         HBufC8* ipPrefix;
00147         HBufC8* ipUri;
00148     };
00149 
00150 #endif // SEN_NAME_SPACE_H
00151 
00152 // End of File
00153 
00154 
00155 

Copyright © Nokia Corporation 2001-2007
Back to top