xdmprotocols/XcapProtocol/XcapOperations/inc/XcapRetrieval.h
branchRCL_3
changeset 35 fbd2e7cec7ef
parent 0 c8caa15ef882
equal deleted inserted replaced
34:2669f8761a99 35: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:   CXcapRetrieval
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __XCAPRETRIEVAL__
       
    22 #define __XCAPRETRIEVAL__
       
    23 
       
    24 #include <e32base.h>
       
    25 #include "CommonDefines.h"
       
    26 #include "XcapHttpOperation.h"
       
    27 
       
    28 class CXcapDocumentNode;
       
    29    
       
    30 //CLASS DECLARATION
       
    31 NONSHARABLE_CLASS( CXcapRetrieval ) : public CXcapHttpOperation
       
    32     {
       
    33     public:
       
    34 
       
    35         /**
       
    36         * Symbian OS default constructor.
       
    37         * @param TInt Default Access Point ID
       
    38         * @return CXdmDocOperation*
       
    39         */     
       
    40         static CXcapRetrieval* NewL( CXcapDocument& aParentDoc,
       
    41                                      CXcapDocumentNode* aTargetNode,
       
    42                                      CXcapOperationFactory& iOperationFactory );
       
    43         
       
    44         /**
       
    45         * Handle a successful operation
       
    46         */      
       
    47         virtual void OperationCompleteL();
       
    48         
       
    49         /**
       
    50         * Handle a failed operation
       
    51         */      
       
    52         virtual void OperationFailedL();
       
    53         
       
    54         /**
       
    55         * Destructor.
       
    56         */      
       
    57         virtual TInt Result() const;
       
    58 
       
    59         /**
       
    60         * Destructor.
       
    61         */      
       
    62         virtual ~CXcapRetrieval();
       
    63 
       
    64     private:  //Methods
       
    65         
       
    66         /**
       
    67         * Symbian OS default constructor.
       
    68         * @param TInt Default Access Point ID
       
    69         * @return CXdmDocOperation*
       
    70         */     
       
    71         CXcapRetrieval( CXcapDocument& aParentDoc,
       
    72                         CXcapDocumentNode* aTargetNode,
       
    73                         CXcapOperationFactory& iOperationFactory );
       
    74         
       
    75         /**
       
    76         * Symbian OS default constructor.
       
    77         * @param TInt Default Access Point ID
       
    78         * @return CXdmDocOperation*
       
    79         */     
       
    80         void ConstructL();
       
    81         
       
    82         /**
       
    83         * Symbian OS default constructor.
       
    84         * @param TInt Default Access Point ID
       
    85         * @return CXdmDocOperation*
       
    86         */     
       
    87         void ExecuteL();
       
    88         
       
    89         /**
       
    90         * Symbian OS default constructor.
       
    91         * @param TInt Default Access Point ID
       
    92         * @return CXdmDocOperation*
       
    93         */     
       
    94         void HandleCacheOperationL();
       
    95         
       
    96         /**
       
    97         * Symbian OS default constructor.
       
    98         * @param TInt Default Access Point ID
       
    99         * @return CXdmDocOperation*
       
   100         */     
       
   101         void HandleNetworkOperationL();
       
   102 
       
   103     private:  //Data
       
   104         
       
   105         TBool                                iCacheOperation;
       
   106         TCacheEntryInfo                      iCacheEntryInfo;
       
   107         TXdmOperationType                    iOperationType;
       
   108     };
       
   109 
       
   110 #endif      //__XCAPRETRIEVAL__
       
   111             
       
   112 // End of File