KDELibs4Support

networking.h
1 /*
2  Copyright 2006-2007 Will Stephenson <[email protected]>
3  Copyright 2006-2007 Kevin Ottens <[email protected]>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) version 3, or any
9  later version accepted by the membership of KDE e.V. (or its
10  successor approved by the membership of KDE e.V.), which shall
11  act as a proxy defined in Section 6 of version 3 of the license.
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public
19  License along with this library. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
22 #ifndef SOLID_NETWORKING
23 #define SOLID_NETWORKING
24 
25 #include <QObject>
26 
27 #include <kdelibs4support_export.h>
28 
29 namespace Solid
30 {
42 namespace Networking
43 {
47 enum Status {
53 };
54 
62 };
63 
69 KDELIBS4SUPPORT_DEPRECATED_EXPORT Status status();
70 
75 KDELIBS4SUPPORT_DEPRECATED_EXPORT void setConnectPolicy(ManagementPolicy policy);
76 
81 KDELIBS4SUPPORT_DEPRECATED_EXPORT ManagementPolicy connectPolicy();
82 
87 KDELIBS4SUPPORT_DEPRECATED_EXPORT void setDisconnectPolicy(ManagementPolicy policy);
88 
93 KDELIBS4SUPPORT_DEPRECATED_EXPORT ManagementPolicy disconnectPolicy();
94 
99 class KDELIBS4SUPPORT_DEPRECATED_EXPORT Notifier : public QObject
100 {
101  Q_OBJECT
102 Q_SIGNALS:
107  void statusChanged(Solid::Networking::Status status);
114  void shouldConnect();
121  void shouldDisconnect();
122 
123 protected:
124  Notifier();
125 };
126 
127 KDELIBS4SUPPORT_DEPRECATED_EXPORT Notifier *notifier();
128 }
129 
130 } // Solid
131 
132 #endif
the system is not connected to any network
Definition: networking.h:51
void setDisconnectPolicy(ManagementPolicy policy)
Set a policy to manage the application&#39;s disconnect behaviour.
Definition: networking.cpp:65
ManagementPolicy disconnectPolicy()
Retrieve a policy managing the application&#39;s disconnect behaviour.
Definition: networking.cpp:60
Manual - the app should only disconnect when the user does so manually.
Definition: networking.h:59
ManagementPolicy
This defines application policy in response to networking connect/disconnect events.
Definition: networking.h:58
Status status()
Get the current networking status If the result is Unknown, the backend may be unconfigured or otherw...
Definition: networking.cpp:40
void setConnectPolicy(ManagementPolicy policy)
Set a policy to manage the application&#39;s connect behaviour.
Definition: networking.cpp:55
ManagementPolicy connectPolicy()
Retrieve a policy managing the application&#39;s connect behaviour.
Definition: networking.cpp:50
the app should connect or disconnect the next time the network changes status, thereafter Manual ...
Definition: networking.h:60
the system is not connected to any network
Definition: networking.h:49
the networking system is not active or unable to report its status - proceed with caution ...
Definition: networking.h:48
Status
Describes the state of the networking system.
Definition: networking.h:47
the system is currently connected to a network
Definition: networking.h:52
the app should connect or disconnect whenever the KConnectionManager reports a state change ...
Definition: networking.h:61
the system is breaking the connection
Definition: networking.h:50
This object emits signals, for use if your application requires notification of changes to networking...
Definition: networking.h:99
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jun 5 2020 22:41:40 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.