--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/websrv_pub/web_service_description_api/inc/SenFacet.h Thu Jan 07 16:19:19 2010 +0200
@@ -0,0 +1,127 @@
+/*
+* 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 "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.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();
+
+ virtual void CopyFromL(CSenElement& aSource);
+
+ 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