webengine/osswebengine/WebCore/platform/network/symbian/HttpDlConnection.h
changeset 0 dd21522fd290
child 48 79859ed3eea9
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2007 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 the License "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 *
       
    16 */
       
    17 
       
    18 #ifndef __HTTPDLCONNECTION_H__
       
    19 #define __HTTPDLCONNECTION_H__
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <http/rhttptransaction.h>
       
    23 #include <http/MHTTPTransactionCallback.h>
       
    24 
       
    25 class HttpSessionManager;
       
    26 
       
    27 class HttpDlConnection : public MHTTPTransactionCallback
       
    28 {
       
    29 public:
       
    30     /**
       
    31     */
       
    32     HttpDlConnection();
       
    33 
       
    34     /**
       
    35     */
       
    36     static HttpDlConnection* dlConnectionFromTransaction(RHTTPTransaction& transaction);
       
    37     /**
       
    38     */
       
    39 
       
    40 	long downloadId() {return m_dlId;}
       
    41 	void setDownloadId(long id) { m_dlId = id; }
       
    42 
       
    43     public: // from MHTTPTransactionCallback
       
    44 	void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent &aEvent) {}
       
    45 	TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, const THTTPEvent &aEvent) {return ETrue;}
       
    46 
       
    47 private: // data
       
    48 	long m_dlId;
       
    49 	HttpSessionManager* m_httpSessionMgr;
       
    50 };
       
    51 
       
    52 #endif // __HTTPDLCONNECTION_H__
       
    53 // end of file