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