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