applayerprotocols/httpservice/test/httpservicetest/ctestclienthttppost.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 /*
       
     2 * Copyright (c) 2009 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 *
       
    16 */
       
    17 #ifndef __CTESTCLIENTHTTPPOST_H__
       
    18 #define __CTESTCLIENTHTTPPOST_H__
       
    19 
       
    20 #include "chttpservice.h"
       
    21 #include "chttpclienttransaction.h"
       
    22 #include "httptestutils.h"
       
    23 
       
    24 class MLocalTestServerObserver;
       
    25 class CHttpClientTestParams;
       
    26 
       
    27 class CTestClientHttpSimplePost : public CHttpClientTransaction, public MHttpContentSource
       
    28     {
       
    29 public:    
       
    30     static CTestClientHttpSimplePost* NewL(CHttpClientTestParams& aParams, MLocalTestServerObserver& aObserver, CHttpService& aClient, const TDesC8& aUri, CHTTPTestUtils& aUtils);
       
    31     ~CTestClientHttpSimplePost();
       
    32     
       
    33 private:
       
    34     CTestClientHttpSimplePost(CHttpClientTestParams& aParams, MLocalTestServerObserver& aObserver, CHTTPTestUtils& aUtils);
       
    35     void ConstructL(CHttpService& aClient, const TDesC8& aUri);
       
    36     // From CHTTPClientTransaction
       
    37     virtual void OnResponseHeaders();
       
    38     virtual void OnCompletion();
       
    39     virtual void OnError(TInt aError);    
       
    40     virtual void OnTransferProgress(TInt aTotal, TInt aTransffered);
       
    41     // From MHTTPContentSource
       
    42     void OnData(THttpContentSourceOp& aData);
       
    43     
       
    44     MLocalTestServerObserver&   iObserver;
       
    45     CHttpClientTestParams&      iParams;
       
    46     CHTTPTestUtils&             iTestUtils;
       
    47     };
       
    48  
       
    49 #endif // __CHTTPCLIENTHTTPGET_H__