diff -r 6ca72c0fe49a -r a941bc465d9f PECengine/ListLibrary2/AttrListSrc/CPEngAttributeListTransCreateAttrList.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PECengine/ListLibrary2/AttrListSrc/CPEngAttributeListTransCreateAttrList.h Wed Sep 01 12:31:13 2010 +0100 @@ -0,0 +1,118 @@ +/* +* Copyright (c) 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: Create attribute list transaction handler +* +*/ + +#ifndef __CPENGATTRIBUTELISTTRANSCREATEATTRLIST_H__ +#define __CPENGATTRIBUTELISTTRANSCREATEATTRLIST_H__ + +// INCLUDES +#include +#include "CPEngAttributeListTransBase.h" + + +// FORWARD DECLARATIONS +class CPEngAttributeListItem; +class MPEngPresenceAttrManager; + + +// CLASS DECLARATION + +/** + * Create attribute list transaction handler + * + * @lib PEngListLib2 + * @since 3.0 + */ +NONSHARABLE_CLASS( CPEngAttributeListTransCreateAttrList ) : + public CPEngAttributeListTransBase + { + +public: + + /** + * Two-phased constructor. + */ + static CPEngAttributeListTransCreateAttrList* NewLC( + const CPEngAttributeListItem& aAttributeListItem, + MPEngAttributeListTransactionManager& aAttrListTransManager, + CPEngContactListTransactionManager& aCntListTransManager, + MPEngPresenceAttrManager& aPresenceAttributeManager, + TPEngWVCspVersion& aCSPVersion, + TInt aOperationId, + TBool aSync = EFalse ); + + /** + * Destructor. + */ + virtual ~CPEngAttributeListTransCreateAttrList(); + + +public: // From MPEngOutgoingTransactionHandler + + /** + * Synchronous method, get Outgoing transaction request + * @see + * @since 3.0 + */ + void RequestL( TDes8& aSendBuffer ); + + +public: // From CPEngAttributeListTransBase + + /** + * Consume XML message response from the WV server + * @see + * @since 3.0 + */ + void DoConsumeMessageFromServerL( const TDesC8& aResponse ); + + +private: // constructor + + /** + * C++ constructor. + */ + CPEngAttributeListTransCreateAttrList( + MPEngAttributeListTransactionManager& aAttrListTransManager, + CPEngContactListTransactionManager& aCntListTransManager, + MPEngPresenceAttrManager& aPresenceAttributeManager, + TPEngWVCspVersion& aCSPVersion, + TInt aOperationId, + TBool aSync ); + + /** + * Symbian constructor . + */ + void ConstructL( const CPEngAttributeListItem& aAttributeListItem ); + + +private: // Data + + /// OWN: Attribute list item + CPEngAttributeListItem* iAttributeListItem; + + /// REF: Presence attribute manager + MPEngPresenceAttrManager& iPresenceAttributeManager; + + /// OWN: is this synchronization transaction + TBool iSynchronization; + + }; + +#endif // __CPENGATTRIBUTELISTTRANSCREATEATTRLIST_H__ + +// End of File +