• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

Solid

  • solid
  • solid
networking_p.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2007 Will Stephenson <wstephenson@kde.org>
3 Copyright 2006-2007 Kevin Ottens <ervin@kde.org>
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#ifndef SOLID_NETWORKING_P_H
22#define SOLID_NETWORKING_P_H
23
24#include <QtCore/QMap>
25#include <QtNetwork/QNetworkConfigurationManager>
26
27#include "networking.h"
28
29class OrgKdeSolidNetworkingClientInterface;
30class QAbstractSocket;
31class QTimer;
32
33
34namespace Solid
35{
36 class ManagedSocketContainer;
37
38 class NetworkingPrivate : public Networking::Notifier
39 {
40 Q_OBJECT
41 Q_PROPERTY( uint Status READ status )
42 Q_CLASSINFO( "D-Bus Interface", "org.kde.Solid.Networking.Client" )
43 public:
44 NetworkingPrivate();
45 ~NetworkingPrivate();
46 void shouldConnect() { Networking::Notifier::shouldConnect(); }
47 void shouldDisconnect() { Networking::Notifier::shouldDisconnect(); }
48 Networking::Status netStatus;
49 Networking::ManagementPolicy connectPolicy;
50 Networking::ManagementPolicy disconnectPolicy;
51 public Q_SLOTS:
52 uint status() const;
53#ifndef Q_OS_WIN
57 void serviceStatusChanged( uint status );
62 void serviceOwnerChanged( const QString &, const QString &, const QString & );
63#else
64 void serviceStatusChanged( bool status );
65#endif
66 private:
67 void initialize();
68#ifndef Q_OS_WIN
69 OrgKdeSolidNetworkingClientInterface * iface;
70#else
71 QNetworkConfigurationManager *m_manager;
72#endif
73 };
74} // namespace Solid
75#endif
Solid::NetworkingPrivate
Definition: networking_p.h:39
Solid::NetworkingPrivate::connectPolicy
Networking::ManagementPolicy connectPolicy
Definition: networking_p.h:49
Solid::NetworkingPrivate::shouldDisconnect
void shouldDisconnect()
Definition: networking_p.h:47
Solid::NetworkingPrivate::status
uint status() const
Definition: networking.cpp:73
Solid::NetworkingPrivate::~NetworkingPrivate
~NetworkingPrivate()
Definition: networking.cpp:46
Solid::NetworkingPrivate::serviceStatusChanged
void serviceStatusChanged(bool status)
Definition: networking.cpp:90
Solid::NetworkingPrivate::shouldConnect
void shouldConnect()
Definition: networking_p.h:46
Solid::NetworkingPrivate::disconnectPolicy
Networking::ManagementPolicy disconnectPolicy
Definition: networking_p.h:50
Solid::NetworkingPrivate::NetworkingPrivate
NetworkingPrivate()
Definition: networking.cpp:32
Solid::NetworkingPrivate::netStatus
Networking::Status netStatus
Definition: networking_p.h:48
Solid::NetworkingPrivate::Status
uint Status
Definition: networking_p.h:41
Solid::Networking::Notifier
This object emits signals, for use if your application requires notification of changes to networking...
Definition: networking.h:98
Solid::Networking::Notifier::shouldDisconnect
void shouldDisconnect()
Signals that the system's network has become disconnected, so receivers should adjust application sta...
Solid::Networking::Notifier::shouldConnect
void shouldConnect()
Signals that the system's network has become connected, so receivers should connect their sockets,...
Solid::Networking::ManagementPolicy
ManagementPolicy
This defines application policy in response to networking connect/disconnect events.
Definition: networking.h:56
Solid::Networking::Status
Status
Describes the state of the networking system.
Definition: networking.h:45
Solid
Definition: acadapter.h:29
networking.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Solid

Skip menu "Solid"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal