epoc32/include/mw/senfacet.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
--- a/epoc32/include/mw/senfacet.h	Tue Nov 24 13:55:44 2009 +0000
+++ b/epoc32/include/mw/senfacet.h	Tue Mar 16 16:12:26 2010 +0000
@@ -1,1 +1,122 @@
-senfacet.h
+/*
+* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* 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
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Parser base element class declaration        
+*
+*/
+
+
+#ifndef SEN_FACET_H
+#define SEN_FACET_H
+
+// INCLUDES
+#include <SenBaseElement.h>
+
+// CONSTANTS
+_LIT8(KSenFacet,        "Facet");
+_LIT8(KFacetAttrName,   "name");
+_LIT8(KFacetAttrType,   "type");
+
+// CLASS DECLARATION
+class CSenFacet : public CSenBaseElement
+    {
+    public:
+        
+        /**
+        * Basic constructor.
+        */
+        IMPORT_C static CSenFacet* NewL();
+
+        /**
+        * Basic constructor.
+        * @param    aCopiedSource   source to copy facet data from.
+        */
+        IMPORT_C static CSenFacet* NewL(CSenElement& aCopiedSource);
+
+        /**
+        * Basic constructor.
+        * @param aNsUri     The namespace URI of the new element
+        * @param aLocalName The local name of the new element
+        * @param aQName     The qualified name of the new element
+        * @param aAttributes    The attributes of the new element
+        * Leave codes:  
+        *       KErrSenInvalidCharacters if aLocalName or aQName contains
+        *       illegal characters.     
+        *       KErrSenZeroLengthDescriptor if aLocalName or aQName is zero length.
+        */
+        IMPORT_C static CSenFacet* NewL(const TDesC8& aNsUri,
+                                        const TDesC8& aLocalName,
+                                        const TDesC8& aQName,
+                                        const RAttributeArray& aAttributes);
+
+        IMPORT_C virtual ~CSenFacet();
+
+        // New functions
+        
+        /**
+        * Setter for name.
+        * @param aName  the name to be set.
+        */
+        IMPORT_C virtual void SetNameL(const TDesC8& aName);
+
+        /**
+        * Setter for type.
+        * @param aType  the type to be set.
+        */
+        IMPORT_C virtual void SetTypeL(const TDesC8& aType);
+
+        /**
+        * Setter for value.
+        * @param aValue the value to be set.
+        */
+        IMPORT_C virtual void SetValueL(const TDesC8& aValue);
+
+        /**
+        * Getter for name.
+        * @return the name of the facet
+        */
+        IMPORT_C virtual TPtrC8 Name();
+
+        /**
+        * Getter for type.
+        * @return the type of the facet
+        */
+        IMPORT_C virtual TPtrC8 Type();
+    
+        /**
+        * Getter for value.
+        * @return the value of the facet
+        */
+        IMPORT_C virtual TPtrC8 Value();
+
+    protected:
+        
+        /**
+        * C++ default constructor.
+        */
+        IMPORT_C CSenFacet();
+        
+        /**
+        * By default Symbian 2nd phase constructors are private.
+        */
+        IMPORT_C void ConstructL(const TDesC8& aLocalName);
+        IMPORT_C void ConstructL(CSenElement& aCopiedSource);
+        IMPORT_C void ConstructL(const TDesC8& aNsUri,
+                                 const TDesC8& aLocalName,
+                                 const TDesC8& aQName,
+                                 const RAttributeArray& aAttributes);
+    };
+
+#endif // SEN_FACET_H
+
+// End of File