X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fcoreconnection.h;h=216e92536b884c4a21d6c169045a266aae10fc4a;hb=73f9fcde56bcf4d55b73eb88a8d6cf8dc9f9f814;hp=3c21b797400fb955ef424f95d936684e6c530012;hpb=d32f2fcafe3d3925cd64e332e0d02261a134af21;p=quassel.git diff --git a/src/client/coreconnection.h b/src/client/coreconnection.h index 3c21b797..216e9253 100644 --- a/src/client/coreconnection.h +++ b/src/client/coreconnection.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,11 +18,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef CORECONNECTION_H_ -#define CORECONNECTION_H_ +#pragma once -#include "QPointer" -#include "QTimer" +#include +#include +#include #ifdef HAVE_SSL # include @@ -30,12 +30,6 @@ # include #endif -#ifdef HAVE_KDE4 -# include -#endif - -#include - #include "coreaccount.h" #include "remotepeer.h" #include "types.h" @@ -79,6 +73,8 @@ public: //! Check if we consider the last connect as reconnect bool wasReconnect() const { return _wasReconnect; } + QPointer peer() { return _peer; } + public slots: bool connectToCore(AccountId = 0); void reconnectToCore(); @@ -150,9 +146,6 @@ private slots: void reconnectIntervalChanged(const QVariant &interval); void reconnectTimeout(); -#ifdef HAVE_KDE4 - void solidNetworkStatusChanged(Solid::Networking::Status status); -#endif void onlineStateChanged(bool isOnline); private: @@ -191,5 +184,3 @@ inline QString CoreConnection::progressText() const { return _progressText; } inline CoreConnection::ConnectionState CoreConnection::state() const { return _state; } inline bool CoreConnection::isConnected() const { return state() >= Connected; } inline CoreAccount CoreConnection::currentAccount() const { return _account; } - -#endif