From cfbdd55bb39f6e2012103a506d8d2506145cc936 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 27 Aug 2012 11:31:08 -0500 Subject: Add very preliminary network-manager backend support --- .../network-manager/network-manager_p.h | 83 ++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 tdecore/networkbackends/network-manager/network-manager_p.h (limited to 'tdecore/networkbackends/network-manager/network-manager_p.h') diff --git a/tdecore/networkbackends/network-manager/network-manager_p.h b/tdecore/networkbackends/network-manager/network-manager_p.h new file mode 100644 index 000000000..694e75984 --- /dev/null +++ b/tdecore/networkbackends/network-manager/network-manager_p.h @@ -0,0 +1,83 @@ +/* This file is part of the TDE libraries + Copyright (C) 2012 Timothy Pearson + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _TDENETWORKBACKEND_NETWORKMANAGER_P_H +#define _TDENETWORKBACKEND_NETWORKMANAGER_P_H + +/* TQt headers */ +#include +#include +#include + +/* TDE headers */ +#include +#include + +/* TQDbus headers */ +#include +#include +#include +#include +#include +#include +#include + +/* NM headers */ +//#include + +/* Proxy headers */ +#include "networkmanagerproxy.h" +#include "networkmanagersettings.h" +#include "connectionsettings.h" +#include "deviceproxy.h" +#include "ethernetproxy.h" +#include "wifiproxy.h" +#include "activeconnectionproxy.h" +#include "accesspointproxy.h" + +typedef TQT_DBusDataMap TQT_DBusTQStringDataMap; +typedef TQValueList TQT_DBusDataValueList; + +typedef TQMap NMAsyncCallIDMap; +typedef TQMap NMAsyncSettingsResponseMap; +typedef TQMap NMAddConnectionAsyncResponseMap; + +typedef TQValueList TQT_DBusObjectPathList; + +class TDENetworkConnectionManager_BackendNMPrivate : public TQObject +{ + Q_OBJECT + + public: + TDENetworkConnectionManager_BackendNMPrivate() : m_networkManagerProxy(NULL), m_networkManagerSettings(NULL), m_networkDeviceProxy(NULL) {} + + public: + DBus::NetworkManagerProxy* m_networkManagerProxy; + DBus::SettingsInterface* m_networkManagerSettings; + DBus::DeviceProxy* m_networkDeviceProxy; + NMAsyncCallIDMap nmConnectionSettingsAsyncCallWaiting; + NMAsyncSettingsResponseMap nmConnectionSettingsAsyncSettingsResponse; + NMAddConnectionAsyncResponseMap nmAddConnectionAsyncResponse; + + public slots: + void processConnectionSettingsAsyncReply(int, const TQT_DBusDataMap&); + void processConnectionSettingsUpdateAsyncReply(int); + void processAddConnectionAsyncReply(int, const TQT_DBusObjectPath&); +}; + +#endif // _TDENETWORKBACKEND_NETWORKMANAGER_P_H \ No newline at end of file -- cgit v1.2.1