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

Solid

  • sources
  • kde-4.12
  • kdelibs
  • 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 
29 class OrgKdeSolidNetworkingClientInterface;
30 class QAbstractSocket;
31 class QTimer;
32 
33 
34 namespace 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
54 
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::netStatus
Networking::Status netStatus
Definition: networking_p.h:48
Solid::NetworkingPrivate::shouldDisconnect
void shouldDisconnect()
Definition: networking_p.h:47
Solid::Networking::ManagementPolicy
ManagementPolicy
This defines application policy in response to networking connect/disconnect events.
Definition: networking.h:56
Solid::Networking::Notifier::shouldDisconnect
void shouldDisconnect()
Signals that the system's network has become disconnected, so receivers should adjust application sta...
networking.h
Solid::Networking::Notifier::shouldConnect
void shouldConnect()
Signals that the system's network has become connected, so receivers should connect their sockets...
Solid::NetworkingPrivate::serviceStatusChanged
void serviceStatusChanged(bool status)
Definition: networking.cpp:90
Solid::NetworkingPrivate
Definition: networking_p.h:38
Solid::Networking::Status
Status
Describes the state of the networking system.
Definition: networking.h:45
Solid::NetworkingPrivate::disconnectPolicy
Networking::ManagementPolicy disconnectPolicy
Definition: networking_p.h:50
Solid::NetworkingPrivate::Status
uint Status
Definition: networking_p.h:41
Solid::NetworkingPrivate::connectPolicy
Networking::ManagementPolicy connectPolicy
Definition: networking_p.h:49
Solid::NetworkingPrivate::shouldConnect
void shouldConnect()
Definition: networking_p.h:46
Solid::Networking::Notifier
This object emits signals, for use if your application requires notification of changes to networking...
Definition: networking.h:97
Solid::NetworkingPrivate::status
uint status() const
Definition: networking.cpp:73
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:47 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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