--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/PECengine/AttributeLibrary2/SrcWVAttributes/CPEngWVAliasConstruct.h Thu Dec 17 08:41:52 2009 +0200
@@ -0,0 +1,130 @@
+/*
+* Copyright (c) 2004 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: WV Alias attribute constructor.
+*
+*/
+
+#ifndef CPENGWVALIASCONSTRUCT_H
+#define CPENGWVALIASCONSTRUCT_H
+
+// INCLUDES
+#include "CPEngWVAttributeConstructBase.h"
+#include "CPEngWVAttributeModelBase.h"
+#include <PEngWVPresenceAttributes2.h>
+#include <E32Base.h>
+
+
+
+
+/**
+ * WV Alias attribute constructor.
+ *
+ * @lib PEngAttrLib
+ * @since 3.0
+ */
+NONSHARABLE_CLASS( CPEngWVAliasConstruct ) : public CPEngWVAttributeConstructBase
+ {
+public: // Constructors and destructor
+
+ /**
+ * C++ constructor.
+ */
+ CPEngWVAliasConstruct( TPEngWVCspVersion aCurrentCspVer );
+
+
+ /**
+ * Destructor.
+ */
+ virtual ~CPEngWVAliasConstruct();
+
+
+
+public: // Functions from MPEngPresenceAttrConstructorTypeImp
+
+ /**
+ * From MPEngPresenceAttrConstructorTypeImp.
+ *
+ * @since 3.0
+ */
+ MPEngPresenceAttrModelTypeImp* NewAttributeInstanceLC( TBool aUserOwnAttribute ) const;
+
+
+
+
+public: //Attribute model implementation
+
+ /**
+ * WV Alias attribute implementation.
+ *
+ * @lib PEngAttrLib
+ * @since 3.0
+ */
+ NONSHARABLE_CLASS( CPEngWVAliasModel ) : public CPEngWVAttributeModelBase
+ {
+public: // Constructors and destructor
+
+ /**
+ * Destructor.
+ */
+ ~CPEngWVAliasModel();
+
+
+ /**
+ * C++ constructor.
+ */
+ CPEngWVAliasModel( TBool aUserOwnAttribute );
+
+
+public: // From MPEngPresenceAttrModelTypeImp
+
+
+ /**
+ * From MPEngPresenceAttrModelTypeImp.
+ */
+ TBool SetDataL( TInt* aIntData,
+ const TDesC8* a8Data,
+ const TDesC16* a16Data,
+ TInt aField,
+ TInt aGroup );
+
+ TBool GetData( TInt* aIntData,
+ TPtrC8* a8Data,
+ TPtrC16* a16Data,
+ TInt aField,
+ TInt aGroup ) const;
+
+
+ void EncodeDataToXmlL( MPEngXMLSerializer& aSerializer ) const;
+
+ void DecodeDataFromXmlL( MPEngXMLParser& aParser,
+ const TDesC8& aValueBlock );
+
+ void ResetDataL();
+ TInt DataExternalizeSize() const;
+ void ExternalizeDataL( RWriteStream& aStream ) const;
+ void InternalizeDataL( RReadStream& aStream );
+
+
+private: //Data
+
+ //OWN: Status text
+ HBufC* iAlias;
+
+ };
+ };
+
+#endif //CPENGWVALIASCONSTRUCT_H
+
+// End of File
+