webservices/wshttpchanneltransportplugin/inc/senhttpeventhandler.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2002-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: Header declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef WSF_HTTP_EVENT_HANDLER_H
       
    26 #define WSF_HTTP_EVENT_HANDLER_H
       
    27 
       
    28 // INCLUDES
       
    29 #include <http/mhttptransactioncallback.h>
       
    30 #include <flogger.h>
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 class CSenHttpChannelImpl;
       
    34 
       
    35 // CLASS DECLARATION
       
    36 class CSenHttpEventHandler : public CBase, public MHTTPTransactionCallback
       
    37     {
       
    38     public: // Constructors and destructor
       
    39     
       
    40         static CSenHttpEventHandler* NewLC(CSenHttpChannelImpl* aChannel);//,
       
    41                                            //RFileLogger* aLog);
       
    42         static CSenHttpEventHandler* NewL(CSenHttpChannelImpl* aChannel);//,
       
    43                                           //RFileLogger* aLog);
       
    44 
       
    45         virtual ~CSenHttpEventHandler();
       
    46 
       
    47         // Functions from base classes
       
    48     
       
    49         // from MHTTPTransactionCallback
       
    50         virtual void MHFRunL(RHTTPTransaction aTransaction,
       
    51                              const THTTPEvent& aEvent);
       
    52         virtual TInt MHFRunError(TInt aError,
       
    53                                  RHTTPTransaction aTransaction,
       
    54                                 const THTTPEvent& aEvent);
       
    55 
       
    56     protected:
       
    57     
       
    58         /**
       
    59         * C++ default constructor.
       
    60         */
       
    61         CSenHttpEventHandler(CSenHttpChannelImpl* aChannel);//,
       
    62                              //RFileLogger* aLog);
       
    63                              
       
    64         /**
       
    65         * By default Symbian 2nd phase constructor is private.
       
    66         */                   
       
    67         void ConstructL();
       
    68 
       
    69     private:
       
    70         
       
    71         //RFileLogger* Log() const;
       
    72 
       
    73     private: // Data
       
    74         CSenHttpChannelImpl* iHttpChannel;
       
    75         //RFileLogger* iLog;
       
    76         TInt iTries;
       
    77     };
       
    78 
       
    79 #endif // WSF_HTTP_EVENT_HANDLER_H
       
    80 
       
    81 // End of file