xdmprotocols/LocalProtocol/LocalOperations/inc/LocalDeletion.h
branchRCL_3
changeset 18 fbd2e7cec7ef
parent 0 c8caa15ef882
equal deleted inserted replaced
17:2669f8761a99 18:fbd2e7cec7ef
       
     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:  CLocalDeletion
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __LOCALDELETION__
       
    22 #define __LOCALDELETION__
       
    23 
       
    24 #include <e32base.h>
       
    25 #include "XdmOperation.h"
       
    26 #include "LocalOperationBase.h"
       
    27 
       
    28 //FORWARD DECLARATIONS
       
    29 class CXdmDocumentNode;
       
    30 
       
    31 //CLASS DECLARATION
       
    32 NONSHARABLE_CLASS( CLocalDeletion ) : public CLocalOperationBase
       
    33     {
       
    34     public:
       
    35 
       
    36         /**
       
    37         * Symbian OS default constructor.
       
    38         * @param TInt Default Access Point ID
       
    39         * @return CXdmDocOperation*
       
    40         */     
       
    41         static CLocalDeletion* NewL( CLocalDocument& aParentDoc,
       
    42                                      CLocalDocumentNode* aDocumentSubset,
       
    43                                      CLocalOperationFactory& aOperationFactory );
       
    44        
       
    45         /**
       
    46         * Destructor.
       
    47         */      
       
    48         virtual ~CLocalDeletion();
       
    49 
       
    50     private:  //Methods
       
    51         
       
    52         /**
       
    53         * Symbian OS default constructor.
       
    54         * @param TInt Default Access Point ID
       
    55         * @return CXdmDocOperation*
       
    56         */     
       
    57         CLocalDeletion( CLocalDocument& aTargetDoc,
       
    58                         CLocalDocumentNode* aDocumentSubset,
       
    59                         CLocalOperationFactory& aOperationFactory );
       
    60         
       
    61         /**
       
    62         * Symbian OS default constructor.
       
    63         * @param TInt Default Access Point ID
       
    64         * @return CXdmDocOperation*
       
    65         */    
       
    66         void HandlePartialDeletionL( TInt aDataLength );
       
    67     
       
    68     private:        //From MXdmOperation
       
    69         
       
    70         /**
       
    71         * Execute this operation synchronously
       
    72         */      
       
    73         void ExecuteL();
       
    74         
       
    75         /**
       
    76         * Set this operation to completed state.
       
    77         */      
       
    78         void Destroy();                
       
    79 
       
    80     private:  //Data
       
    81     
       
    82         CLocalDocumentNode*             iDocumentSubset;
       
    83         TXdmOperationType               iOperationType;
       
    84     };
       
    85 
       
    86 #endif      //__LOCALDELETION__
       
    87             
       
    88 // End of File