not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / libs / solid / control / networkserialinterface.cpp
blob2ccc601d9b44a908abb7fc1b2f313e981c33fe42
1 /*
2 Copyright 2008 Will Stephenson <wstephenson@kde.org>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) version 3, or any
8 later version accepted by the membership of KDE e.V. (or its
9 successor approved by the membership of KDE e.V.), which shall
10 act as a proxy defined in Section 6 of version 3 of the license.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library. If not, see <http://www.gnu.org/licenses/>.
21 #include "networkserialinterface.h"
22 #include "networkserialinterface_p.h"
24 #include "frontendobject_p.h"
25 #include "soliddefs_p.h"
26 #include "ifaces/wirelessaccesspoint.h"
28 Solid::Control::SerialNetworkInterface::SerialNetworkInterface(QObject *backendObject)
29 : NetworkInterface(*new SerialNetworkInterfacePrivate(this), backendObject)
31 Q_D(SerialNetworkInterface);
32 d->setBackendObject(backendObject);
33 makeConnections( backendObject );
36 Solid::Control::SerialNetworkInterface::SerialNetworkInterface(const SerialNetworkInterface &networkinterface)
37 : NetworkInterface(*new SerialNetworkInterfacePrivate(this), networkinterface)
39 Q_D(SerialNetworkInterface);
40 d->setBackendObject(networkinterface.d_ptr->backendObject());
41 makeConnections( networkinterface.d_ptr->backendObject() );
44 Solid::Control::SerialNetworkInterface::SerialNetworkInterface(SerialNetworkInterfacePrivate &dd, QObject *backendObject)
45 : NetworkInterface(dd, backendObject)
47 makeConnections( backendObject );
50 Solid::Control::SerialNetworkInterface::SerialNetworkInterface(SerialNetworkInterfacePrivate &dd, const SerialNetworkInterface &networkinterface)
51 : NetworkInterface(dd, networkinterface.d_ptr->backendObject())
53 makeConnections( networkinterface.d_ptr->backendObject() );
56 Solid::Control::SerialNetworkInterface::~SerialNetworkInterface()
60 Solid::Control::NetworkInterface::Type Solid::Control::SerialNetworkInterface::type() const
62 return Serial;
65 void Solid::Control::SerialNetworkInterface::makeConnections(QObject * source)
67 connect(source, SIGNAL(pppStats(uint,uint)),
68 this, SIGNAL(pppStats(uint,uint)));
71 void Solid::Control::SerialNetworkInterfacePrivate::setBackendObject(QObject *object)
73 NetworkInterfacePrivate::setBackendObject(object);
76 void Solid::Control::SerialNetworkInterface::_k_destroyed(QObject *object)
78 Q_UNUSED(object);
80 // vim: sw=4 sts=4 et tw=100