qtmobility/src/bearer/qnetworksession_s60_p.h
changeset 11 06b8e2af4411
parent 4 90517678cc4f
child 14 6fbed849b4f4
equal deleted inserted replaced
8:71781823f776 11:06b8e2af4411
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the Qt Mobility Components.
     7 ** This file is part of the Qt Mobility Components.
     8 **
     8 **
    70 
    70 
    71 QTM_BEGIN_NAMESPACE
    71 QTM_BEGIN_NAMESPACE
    72 
    72 
    73 class ConnectionProgressNotifier;
    73 class ConnectionProgressNotifier;
    74 
    74 
    75 class QNetworkSessionPrivate : public QObject, public CActive,
    75 class QNetworkSessionPrivate : public QObject, public CActive
    76 #ifdef SNAP_FUNCTIONALITY_AVAILABLE
    76 #ifdef SNAP_FUNCTIONALITY_AVAILABLE
    77                                public MMobilityProtocolResp,
    77                                , public MMobilityProtocolResp
    78 #endif
    78 #endif
    79                                public MConnectionMonitorObserver
       
    80 {
    79 {
    81     Q_OBJECT
    80     Q_OBJECT
    82 public:
    81 public:
    83     QNetworkSessionPrivate(); 
    82     QNetworkSessionPrivate(); 
    84     ~QNetworkSessionPrivate();
    83     ~QNetworkSessionPrivate();
   127     
   126     
   128 protected: // From CActive
   127 protected: // From CActive
   129     void RunL();
   128     void RunL();
   130     void DoCancel();
   129     void DoCancel();
   131     
   130     
   132 private: // MConnectionMonitorObserver
   131 private Q_SLOTS:
   133     void EventL(const CConnMonEventBase& aEvent);
   132     void configurationStateChanged(TUint32 accessPointId, TUint32 connMonId, QNetworkSession::State newState);
       
   133     void configurationRemoved(const QNetworkConfiguration& config);
   134     
   134     
   135 private:
   135 private:
   136     TUint iapClientCount(TUint aIAPId) const;
   136     TUint iapClientCount(TUint aIAPId) const;
   137     quint64 transferredData(TUint dataType) const;
   137     quint64 transferredData(TUint dataType) const;
   138     bool newState(QNetworkSession::State newState, TUint accessPointId = 0);
   138     bool newState(QNetworkSession::State newState, TUint accessPointId = 0);
   164 
   164 
   165     mutable RSocketServ iSocketServ;
   165     mutable RSocketServ iSocketServ;
   166     mutable RConnection iConnection;
   166     mutable RConnection iConnection;
   167     mutable RConnectionMonitor iConnectionMonitor;
   167     mutable RConnectionMonitor iConnectionMonitor;
   168     ConnectionProgressNotifier* ipConnectionNotifier;
   168     ConnectionProgressNotifier* ipConnectionNotifier;
       
   169     
       
   170     bool iHandleStateNotificationsFromManager;
       
   171     bool iFirstSync;
       
   172     bool iStoppedByUser;
       
   173     bool iClosedByUser;
       
   174     TUint32 iDeprecatedConnectionId;
       
   175     
   169 #ifdef SNAP_FUNCTIONALITY_AVAILABLE    
   176 #ifdef SNAP_FUNCTIONALITY_AVAILABLE    
   170     CActiveCommsMobilityApiExt* iMobility;
   177     CActiveCommsMobilityApiExt* iMobility;
   171 #endif    
   178 #endif    
   172     
   179     
   173     QNetworkSession::SessionError iError;
   180     QNetworkSession::SessionError iError;