Solid
networking.h
Go to the documentation of this file.
00001 /* 00002 Copyright 2006-2007 Will Stephenson <wstephenson@kde.org> 00003 Copyright 2006-2007 Kevin Ottens <ervin@kde.org> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) version 3, or any 00009 later version accepted by the membership of KDE e.V. (or its 00010 successor approved by the membership of KDE e.V.), which shall 00011 act as a proxy defined in Section 6 of version 3 of the license. 00012 00013 This library is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Lesser General Public License for more details. 00017 00018 You should have received a copy of the GNU Lesser General Public 00019 License along with this library. If not, see <http://www.gnu.org/licenses/>. 00020 */ 00021 00022 #ifndef SOLID_NETWORKING 00023 #define SOLID_NETWORKING 00024 00025 #include <QtCore/QObject> 00026 00027 #include <solid/solid_export.h> 00028 00029 namespace Solid 00030 { 00040 namespace Networking 00041 { 00045 enum Status { 00046 Unknown, 00047 Unconnected, 00048 Disconnecting, 00049 Connecting, 00050 Connected 00051 }; 00052 00056 enum ManagementPolicy { 00057 Manual, 00058 OnNextStatusChange, 00059 Managed 00060 }; 00061 00067 SOLID_EXPORT Status status(); 00068 00073 SOLID_EXPORT void setConnectPolicy( ManagementPolicy policy ); 00074 00079 SOLID_EXPORT ManagementPolicy connectPolicy(); 00080 00085 SOLID_EXPORT void setDisconnectPolicy( ManagementPolicy policy ); 00086 00091 SOLID_EXPORT ManagementPolicy disconnectPolicy(); 00092 00097 class SOLID_EXPORT Notifier : public QObject 00098 { 00099 Q_OBJECT 00100 Q_SIGNALS: 00105 void statusChanged( Solid::Networking::Status status ); 00112 void shouldConnect(); 00119 void shouldDisconnect(); 00120 00121 protected: 00122 Notifier(); 00123 }; 00124 00125 SOLID_EXPORT Notifier *notifier(); 00126 } 00127 00128 } // Solid 00129 00130 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Jan 21 2019 12:31:23 by doxygen 1.7.5.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Jan 21 2019 12:31:23 by doxygen 1.7.5.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.