~renatofilho/buteo-syncfw/fix-1509053

« back to all changes in this revision

Viewing changes to libbuteosyncfw/common/NetworkManager.h

  • Committer: CI Train Bot
  • Author(s): Renato Araujo Oliveira Filho
  • Date: 2015-09-30 18:14:57 UTC
  • mfrom: (277.1.4 buteo-ubuntu)
  • Revision ID: ci-train-bot@canonical.com-20150930181457-rr3ozbjalg0hv0mf
Remove patches already applied on trunk.
Create individual patches for ubuntu specific changes.
Approved by: Ken VanDine, Michael Sheldon

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#define NETWORKMANAGER_H_
25
25
 
26
26
#include <QNetworkSession>
 
27
#include <QTimer>
 
28
#include "SyncCommonDefs.h"
27
29
 
28
 
class QTimer;
29
30
class QNetworkConfigurationManager;
30
31
 
31
32
namespace Buteo
61
62
             */
62
63
            bool isOnline();
63
64
 
 
65
            /*! \brief Returns the type of connection used by the device.
 
66
             *
 
67
 
 
68
             * @return Sync::InternetConnectionType the type of connection.
 
69
             */
 
70
            Sync::InternetConnectionType connectionType() const;
 
71
 
64
72
            /*! \brief Connects a new network session. If a session was already
65
73
             * open, the signal connectionSuccess will be emitted immediately,
66
74
             * else the function will return and the signal connectionSuccess or
84
92
             *
85
93
             * @param aConnected If true, the device is online
86
94
             */
87
 
            void valueChanged(bool aConnected);
 
95
            void statusChanged(bool aConnected, Sync::InternetConnectionType aType);
88
96
 
89
97
            /*! \brief This signal is emitted when a network session gets
90
98
             * connected
105
113
            static int                      m_refCount;                 // Reference counter for number of open connections
106
114
            bool                            m_errorEmitted;             // Network error emited flag
107
115
            QTimer                          *m_sessionTimer;
 
116
            Sync::InternetConnectionType    m_connectionType;
 
117
            QTimer                          m_idleRefreshTimer;
 
118
 
108
119
private slots:
109
 
            void slotOnlineStateChanged(bool isOnline);
110
120
            void slotSessionState(QNetworkSession::State status);
111
121
            void slotSessionError(QNetworkSession::SessionError error);
112
122
            void sessionConnectionTimeout();
 
123
            void slotConfigurationChanged();
 
124
            void idleRefresh();
113
125
    };
114
126
}
115
127