browsercore/core/network/WebNetworkSession.h
changeset 0 1450b09d0cfd
child 3 0954f5dd2cd0
child 5 0f2326c2a325
equal deleted inserted replaced
-1:000000000000 0:1450b09d0cfd
       
     1 /*
       
     2 * Copyright (c) 2010 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 
       
    18 
       
    19 #ifndef WEBNETWORKSESSION_H_
       
    20 #define WEBNETWORKSESSION_H_
       
    21 #include <qnetworksession.h>
       
    22 
       
    23 QTM_USE_NAMESPACE
       
    24 
       
    25 class WebNetworkSession : public QObject
       
    26 {
       
    27 Q_OBJECT
       
    28     
       
    29 public: 
       
    30     WebNetworkSession(const QNetworkConfiguration &config, QObject *parent = 0);
       
    31     virtual ~WebNetworkSession();
       
    32         
       
    33 private Q_SLOTS:
       
    34     void preferredConfigurationChanged(const QNetworkConfiguration &config, bool isSeamless);
       
    35     void newConfigurationActivated();
       
    36     void stateChanged(QNetworkSession::State state);
       
    37     void opened();
       
    38     void closed();
       
    39     void error(QNetworkSession::SessionError error);
       
    40    
       
    41 private:
       
    42     QNetworkSession *m_NetworkSession;
       
    43 };
       
    44 
       
    45 #endif /* WEBNETWORKSESSION_H_ */