applayerprotocols/httpservice/inc/CConnectionMonitor.h
changeset 19 2f328ce1b263
equal deleted inserted replaced
16:cb0c8a2aff2d 19:2f328ce1b263
       
     1 // Copyright (c) 2003-2010 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 #ifndef CCONNECTIONMONITOR_H_
       
    16 #define CCONNECTIONMONITOR_H_
       
    17 class CHttpNetworkConnection;
       
    18 
       
    19 NONSHARABLE_CLASS ( CConnectionMonitor ): public CActive
       
    20     {
       
    21     friend class CHttpNetworkConnection;
       
    22     public:
       
    23         static CConnectionMonitor* NewL( CHttpNetworkConnection* aNetworkConn );
       
    24         static CConnectionMonitor* NewLC(CHttpNetworkConnection* aNetworkConn );
       
    25         ~CConnectionMonitor();
       
    26         void HandleConnectionEvent(TInt aEvent);
       
    27 
       
    28 
       
    29     protected: // from CActive
       
    30         void DoCancel();
       
    31         void RunL();
       
    32     
       
    33     private:
       
    34         CConnectionMonitor( CHttpNetworkConnection* aNetworkConn );
       
    35         void ConstructL();
       
    36         RConnection Connection() ;
       
    37          
       
    38     private:
       
    39         TNifProgressBuf iProgress;
       
    40         CHttpNetworkConnection* iNetworkConnInfo;
       
    41     
       
    42     
       
    43     };
       
    44 
       
    45 #endif /* CCONNECTIONMONITOR_H_ */