/***************************************************************************
- * Copyright (C) 2005-2013 by the Quassel Project *
+ * Copyright (C) 2005-2015 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
# include <QTcpSocket>
#endif
-#ifdef HAVE_KDE
+#ifdef HAVE_KDE4
# include <Solid/Networking>
#endif
+#include <QNetworkConfigurationManager>
+
#include "coreaccount.h"
#include "remotepeer.h"
#include "types.h"
void connectToCurrentAccount();
void disconnectFromCore(const QString &errorString, bool wantReconnect = true);
- void socketStateChanged(QAbstractSocket::SocketState);
void coreSocketError(QAbstractSocket::SocketError error, const QString &errorString);
void coreSocketDisconnected();
void setProgressMinimum(int minimum);
void setProgressMaximum(int maximum);
- void setState(QAbstractSocket::SocketState socketState);
void setState(ConnectionState state);
void networkDetectionModeChanged(const QVariant &mode);
void reconnectIntervalChanged(const QVariant &interval);
void reconnectTimeout();
-#ifdef HAVE_KDE
+#ifdef HAVE_KDE4
void solidNetworkStatusChanged(Solid::Networking::Status status);
#endif
+ void onlineStateChanged(bool isOnline);
private:
QPointer<ClientAuthHandler> _authHandler;
CoreAccount _account;
CoreAccountModel *accountModel() const;
+ QPointer<QNetworkConfigurationManager> _qNetworkConfigurationManager;
+
friend class CoreConfigWizard;
};