not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / libs / solid / control / backends / fakenet / fakewirednetworkinterface.h
blobd49f20afb2a05faba502bd06d38fb8f4327c70c0
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 #ifndef FAKE_WIRED_NETWORK_INTERFACE_H
22 #define FAKE_WIRED_NETWORK_INTERFACE_H
24 #include <QString>
25 #include <QVariant>
27 #include <kdemacros.h>
29 #include <solid/control/ifaces/wirednetworkinterface.h>
31 #include "fakenetworkinterface.h"
33 using namespace Solid::Control::Ifaces;
35 class KDE_EXPORT FakeWiredNetworkInterface : public FakeNetworkInterface, virtual public Solid::Control::Ifaces::WiredNetworkInterface
37 Q_OBJECT
38 Q_INTERFACES(Solid::Control::Ifaces::WiredNetworkInterface)
39 public:
40 FakeWiredNetworkInterface(const QMap<QString, QVariant> & propertyMap, QObject * parent = 0);
41 ~FakeWiredNetworkInterface();
42 QString hardwareAddress() const;
43 int bitRate() const;
44 bool carrier() const;
45 signals:
46 void bitRateChanged(int bitrate);
47 void carrierChanged(bool plugged);
50 #endif