PECengine/ListLibrary2/ContactListSrc/CPEngContactListMngTransRemoveId.h
changeset 0 094583676ce7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PECengine/ListLibrary2/ContactListSrc/CPEngContactListMngTransRemoveId.h	Thu Dec 17 08:41:52 2009 +0200
@@ -0,0 +1,120 @@
+/*
+* 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:  Update handler to remove contacts from contact list
+*
+*/
+
+#ifndef __CPENGCONTACTLISTMNGTRANSREMOVEID_H__
+#define __CPENGCONTACTLISTMNGTRANSREMOVEID_H__
+
+
+//  INCLUDES
+#include "CPEngContactListMngTransBase.h"
+
+
+// CLASS DECLARATION
+
+/**
+ * Handler to update contact lists content.
+ * Handler removes contacts from contact list
+ *
+ * @lib PEngListLib2
+ * @since 3.0
+ */
+NONSHARABLE_CLASS( CPEngContactListMngTransRemoveId ):
+        public CPEngContactListMngTransBase
+    {
+public:
+
+    /**
+     * Two-phased constructor.
+     * Contact list reference counted
+     */
+    static CPEngContactListMngTransRemoveId* NewLC(
+        CPEngContactListModBase& aContactList,
+        CPEngSessionSlotId& aSessionSlotId,
+        TPEngWVCspVersion& aCSPVersion,
+        TInt aOperationId );
+
+    /**
+     * Destructor.
+     */
+    virtual ~CPEngContactListMngTransRemoveId();
+
+
+public: // From CPEngContactListMngTransBase
+
+    /**
+     * Appends remove nick list XML message
+     * @see <CPEngContactListMngTransBase.h>
+     */
+    void DoAppendListNickUpdateL( MPEngXMLSerializer& aXmlSerializer );
+
+
+    /**
+     * Append subscription update XML message
+     * @see <CPEngContactListMngTransBase.h>
+     */
+    void DoGetXMLSubscriptionUpdateL(
+        MPEngXMLSerializer& aXmlSerializer );
+
+    /**
+     * Parse subscription update response
+     * @see <CPEngContactListMngTransBase.h>
+     */
+    void DoParseSubscriptionUpdateResponseL( const TDesC8& aResponse );
+
+
+    /**
+     * Update Transaction State
+     * @see <CPEngContactListMngTransBase.h>
+     */
+    void DoUpdateTransactionState();
+
+
+    /**
+     * Fill nick list of the update
+     * @see <CPEngContactListMngTransBase.h>
+     */
+    void DoFillNickListLC(
+        RPointerArray<CPEngContactListModItemContainer>& aNickList );
+
+    /**
+     * Complete contact list update
+     * @see <CPEngContactListMngTransBase.h> file
+     */
+    void DoCompleteContactListUpdateL();
+
+
+private: // Constructors
+
+    /**
+     * C++ constructor.
+     */
+    CPEngContactListMngTransRemoveId( CPEngContactListModBase& aContactList,
+                                      CPEngSessionSlotId& aSessionSlot,
+                                      TPEngWVCspVersion& aCSPVersion,
+                                      TInt aOperationId );
+
+    /**
+     * Symbian OS constructor.
+     */
+    void ConstructL();
+    };
+
+#endif      //  __CPENGCONTACTLISTMNGTRANSREMOVEID_H__
+
+
+//  End of File
+