omaprovisioning/provisioning/ProvisioningHandler/Inc/CWPHandler.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *     Main class for handling provisioning message
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CWPHANDLER_H
       
    21 #define CWPHANDLER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <ccontenthandlerbase.h>
       
    26 #include "MWPVisitor.h"
       
    27 
       
    28 // CONSTANTS
       
    29 
       
    30 // DATA TYPES
       
    31 enum TProvState { EProcessing, EDone };
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36  * CWPHandler handles provisioning documents.
       
    37  */ 
       
    38 class CWPHandler : public CContentHandlerBase
       
    39     {
       
    40     public:  // Constructors and destructor
       
    41 
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         */
       
    45         static CWPHandler* NewL();
       
    46 
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         virtual ~CWPHandler();
       
    51 
       
    52     public: // From CContentHandlerBase
       
    53 
       
    54         void HandleMessageL(CPushMessage* aPushMsg, TRequestStatus& aStatus);
       
    55         void  CancelHandleMessage();
       
    56         void HandleMessageL(CPushMessage* aPushMsg);
       
    57         void CPushHandlerBase_Reserved1();
       
    58         void CPushHandlerBase_Reserved2();
       
    59         
       
    60     protected: // From CActive
       
    61 
       
    62         void DoCancel();
       
    63         void RunL();
       
    64         TInt RunError(TInt aError);
       
    65 
       
    66     private:
       
    67         /**
       
    68         * C++ default constructor.
       
    69         */
       
    70         CWPHandler();
       
    71 
       
    72         /**
       
    73         * By default Symbian 2nd phase constructor is private.
       
    74         */
       
    75         void ConstructL();
       
    76 
       
    77     private:
       
    78 
       
    79         /**
       
    80         * Process the received push message.
       
    81         */
       
    82         void ProcessingPushMsgEntryL();
       
    83 
       
    84     };
       
    85 
       
    86 #endif  // CWPHANDLER_H
       
    87             
       
    88 // End of File