PECengine/ListLibrary2/AttrListSrc/CPEngAttributeListTransDeleteAttrList.h
branchRCL_3
changeset 17 a941bc465d9f
parent 0 094583676ce7
equal deleted inserted replaced
16:6ca72c0fe49a 17:a941bc465d9f
       
     1 /*
       
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Delete attribute lists Transaction Handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CPENGATTRIBUTELISTTRANSDELETEATTRLIST_H__
       
    21 #define __CPENGATTRIBUTELISTTRANSDELETEATTRLIST_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "CPEngAttributeListTransBase.h"
       
    26 
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class MPEngAttributeListTransactionManager;
       
    30 class MDesCArray;
       
    31 
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36  * Transaction handler to delete attribute list
       
    37  *
       
    38  * @lib PEngListLib2
       
    39  * @since 3.0
       
    40  */
       
    41 NONSHARABLE_CLASS( CPEngAttributeListTransDeleteAttrList ) :
       
    42         public CPEngAttributeListTransBase
       
    43     {
       
    44 public:
       
    45 
       
    46     /**
       
    47      * Two-phased constructor.
       
    48      */
       
    49     static CPEngAttributeListTransDeleteAttrList* NewLC(
       
    50         MPEngAttributeListTransactionManager& aAttrListTransManager,
       
    51         CPEngContactListTransactionManager& aCntListTransManager,
       
    52         MDesCArray& aDeleteContactList,
       
    53         MDesCArray& aDeleteContactIds,
       
    54         TBool aDeleteDefault,
       
    55         TPEngWVCspVersion& aCSPVersion,
       
    56         TInt aOperationId );
       
    57     /**
       
    58      * Destructor.
       
    59      */
       
    60     virtual ~CPEngAttributeListTransDeleteAttrList();
       
    61 
       
    62 
       
    63 public: // Functions from MPEngOutgoingTransactionHandler
       
    64 
       
    65     /**
       
    66      *  Synchronous method, get Outgoing transaction request
       
    67      *  @see <MPEngOutgoingTransactionHandler.h>
       
    68      *  @since 3.0
       
    69      */
       
    70     void RequestL( TDes8& aSendBuffer );
       
    71 
       
    72 
       
    73 public:  // Functions of the CPEngAttributeListTransBase class
       
    74 
       
    75     /**
       
    76      *  Consume XML message response from the WV server
       
    77      *  @see <CPEngAttributeListTransBase.h>
       
    78      *  @since 3.0
       
    79      */
       
    80     void DoConsumeMessageFromServerL( const TDesC8& aResponse );
       
    81 
       
    82 
       
    83 private: // constructor
       
    84 
       
    85     /**
       
    86      * C++ default constructor.
       
    87      */
       
    88     CPEngAttributeListTransDeleteAttrList(
       
    89         MPEngAttributeListTransactionManager& aAttrListTransManager,
       
    90         CPEngContactListTransactionManager& aCntListTransManager,
       
    91         MDesCArray& aDeleteContactList,
       
    92         MDesCArray& aDeleteContactIds,
       
    93         TBool aDeleteDefault,
       
    94         TPEngWVCspVersion& aCSPVersion,
       
    95         TInt aOperationId );
       
    96 
       
    97     /**
       
    98      * By default Symbian constructor is private.
       
    99      */
       
   100     void ConstructL();
       
   101 
       
   102 private:    // Data
       
   103 
       
   104     /// REF: Array of contact list, to delete attr list from
       
   105     MDesCArray&                 iArrayDeleteContactList;
       
   106 
       
   107     /// REF: Aarray of contact ids, to delete attr list from
       
   108     MDesCArray&                 iArrayDeleteContactIds;
       
   109 
       
   110     /// OWN: flag if default attributelist should be deleted
       
   111     TBool                       iDeleteDefaultAttrList;
       
   112     };
       
   113 
       
   114 
       
   115 #endif  //   __CPENGATTRIBUTELISTTRANSDELETEATTRLIST_H__
       
   116 
       
   117 // End of File
       
   118