qtmobility/src/bearer/qnetworksession_s60_p.h
changeset 4 90517678cc4f
parent 0 cfcbf08528c4
child 10 4ea83c148e84
child 11 06b8e2af4411
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    56 #include "qnetworksession.h"
    56 #include "qnetworksession.h"
    57 
    57 
    58 #include <QDateTime>
    58 #include <QDateTime>
    59 
    59 
    60 #include <e32base.h>
    60 #include <e32base.h>
    61 #include <CommDbConnPref.h>
    61 #include <commdbconnpref.h>
    62 #include <es_sock.h>
    62 #include <es_sock.h>
    63 #include <rconnmon.h>
    63 #include <rconnmon.h>
    64 #ifdef SNAP_FUNCTIONALITY_AVAILABLE
    64 #ifdef SNAP_FUNCTIONALITY_AVAILABLE
    65     #include <comms-infras/cs_mobility_apiext.h>
    65     #include <comms-infras/cs_mobility_apiext.h>
    66 #endif
    66 #endif
    67 
    67 #ifdef OCC_FUNCTIONALITY_AVAILABLE
    68 typedef int(*TOpenCSetdefaultifFunction)(const struct ifreq*);
    68     #include <extendedconnpref.h>
       
    69 #endif
    69 
    70 
    70 QTM_BEGIN_NAMESPACE
    71 QTM_BEGIN_NAMESPACE
    71 
    72 
    72 class ConnectionProgressNotifier;
    73 class ConnectionProgressNotifier;
    73 
    74 
       
    75 class QNetworkSessionPrivate : public QObject, public CActive,
    74 #ifdef SNAP_FUNCTIONALITY_AVAILABLE
    76 #ifdef SNAP_FUNCTIONALITY_AVAILABLE
    75 class QNetworkSessionPrivate : public QObject, public CActive, public MMobilityProtocolResp, 
    77                                public MMobilityProtocolResp,
       
    78 #endif
    76                                public MConnectionMonitorObserver
    79                                public MConnectionMonitorObserver
    77 #else
       
    78 class QNetworkSessionPrivate : public QObject, public CActive, public MConnectionMonitorObserver
       
    79 #endif
       
    80 {
    80 {
    81     Q_OBJECT
    81     Q_OBJECT
    82 public:
    82 public:
    83     QNetworkSessionPrivate(); 
    83     QNetworkSessionPrivate(); 
    84     ~QNetworkSessionPrivate();
    84     ~QNetworkSessionPrivate();
   160     bool isOpen;
   160     bool isOpen;
   161 
   161 
   162     QNetworkSession* q;
   162     QNetworkSession* q;
   163     QDateTime startTime;
   163     QDateTime startTime;
   164 
   164 
   165     RLibrary iOpenCLibrary;
       
   166     TOpenCSetdefaultifFunction iDynamicSetdefaultif;
       
   167 
       
   168     mutable RSocketServ iSocketServ;
   165     mutable RSocketServ iSocketServ;
   169     mutable RConnection iConnection;
   166     mutable RConnection iConnection;
   170     mutable RConnectionMonitor iConnectionMonitor;
   167     mutable RConnectionMonitor iConnectionMonitor;
   171     ConnectionProgressNotifier* ipConnectionNotifier;
   168     ConnectionProgressNotifier* ipConnectionNotifier;
   172 #ifdef SNAP_FUNCTIONALITY_AVAILABLE    
   169 #ifdef SNAP_FUNCTIONALITY_AVAILABLE    
   174 #endif    
   171 #endif    
   175     
   172     
   176     QNetworkSession::SessionError iError;
   173     QNetworkSession::SessionError iError;
   177     TInt iALREnabled;
   174     TInt iALREnabled;
   178     TBool iALRUpgradingConnection;
   175     TBool iALRUpgradingConnection;
       
   176     TBool iConnectInBackground;
   179     
   177     
   180     QList<QString> iKnownConfigsBeforeConnectionStart;
   178     QList<QString> iKnownConfigsBeforeConnectionStart;
   181     
   179     
   182     TUint32 iOldRoamingIap;
   180     TUint32 iOldRoamingIap;
   183     TUint32 iNewRoamingIap;
   181     TUint32 iNewRoamingIap;