File indexing completed on 2024-06-02 04:06:44
0001 /* 0002 * Copyright (C) 2008 Justin Karneges 0003 * 0004 * This library is free software; you can redistribute it and/or 0005 * modify it under the terms of the GNU Lesser General Public 0006 * License as published by the Free Software Foundation; either 0007 * either version 2 0008 of the License, or (at your option) any later version.1 of the License, or (at your option) any later version. 0009 * 0010 * This library is distributed in the hope that it will be useful, 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0013 * Lesser General Public License for more details. 0014 * 0015 * You should have received a copy of the GNU Lesser General Public 0016 * License along with this library; if not, write to the Free Software 0017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 0018 * 02110-1301 USA 0019 * 0020 */ 0021 0022 #ifndef NETAVAILABILITY_H 0023 #define NETAVAILABILITY_H 0024 0025 #include "irisnetglobal.h" 0026 0027 namespace XMPP { 0028 0029 class NetAvailability : public QObject 0030 { 0031 Q_OBJECT 0032 0033 public: 0034 NetAvailability(QObject *parent = 0); 0035 ~NetAvailability() override; 0036 0037 bool isAvailable() const; 0038 0039 signals: 0040 void changed(bool available); 0041 0042 private: 0043 class Private; 0044 friend class Private; 0045 Private *d; 0046 }; 0047 0048 } 0049 0050 #endif