xdmprotocols/XcapProtocol/XcapOperations/inc/XcapDeletion.h
branchGCC_SURGE
changeset 28 d9861ae9169c
parent 23 77cb48a03620
parent 26 04ca1926b01c
equal deleted inserted replaced
23:77cb48a03620 28:d9861ae9169c
     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:   CXcapDeletion
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __XCAPDELETION__
       
    22 #define __XCAPDELETION__
       
    23 
       
    24 #include <e32base.h>
       
    25 #include "XcapHttpOperation.h"
       
    26 
       
    27 //FORWARD DECLARATIONS
       
    28 class CXcapDocumentNode;
       
    29 
       
    30 //CLASS DECLARATION
       
    31 NONSHARABLE_CLASS( CXcapDeletion ) : 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 CXcapDeletion* NewL( CXcapDocument& aParentDoc,
       
    41                                     CXcapDocumentNode* aDocumentSubset,
       
    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 TBool Result() const;
       
    58 
       
    59         /**
       
    60         * Destructor.
       
    61         */      
       
    62         virtual ~CXcapDeletion();
       
    63 
       
    64     private:  //Methods
       
    65         
       
    66         /**
       
    67         * Symbian OS default constructor.
       
    68         * @param TInt Default Access Point ID
       
    69         * @return CXdmDocOperation*
       
    70         */     
       
    71         CXcapDeletion( CXcapDocument& aParentDoc,
       
    72                        CXcapDocumentNode* aDocumentSubset,
       
    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 HandleDocDeletion();
       
    95         
       
    96         /**
       
    97         * Symbian OS default constructor.
       
    98         * @param TInt Default Access Point ID
       
    99         * @return CXdmDocOperation*
       
   100         */     
       
   101         void HandlePartialDeletion();
       
   102 
       
   103     private:  //Data
       
   104     
       
   105         TXdmOperationType               iOperationType;
       
   106     };
       
   107 
       
   108 #endif      //__XCAPDELETION__
       
   109             
       
   110 // End of File