applayerpluginsandutils/httptransportplugins/httptransporthandler/chttpasyncwaiter.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CHTTPASYNCWAITER_H__
       
    17 #define __CHTTPASYNCWAITER_H__
       
    18  
       
    19  #include <e32base.h>
       
    20  
       
    21  class CHttpAsyncWaiter : public CActive
       
    22      {
       
    23 public:
       
    24      static CHttpAsyncWaiter* New();
       
    25      ~CHttpAsyncWaiter();
       
    26      
       
    27      void StartAndWait();
       
    28      TInt Result() const;
       
    29      
       
    30  private:
       
    31      CHttpAsyncWaiter();
       
    32      
       
    33      // from CActive
       
    34      virtual void RunL();
       
    35      virtual void DoCancel();
       
    36      
       
    37  private:
       
    38      TInt iError;
       
    39      };
       
    40  
       
    41  #endif // __CHTTPASYNCWAITER_H__ 
       
    42