not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / solid / networkmanager-0.6 / NetworkManager-wirednetwork.h
blob6243c5f12313923f760a68052b48820d337539fe
1 /* This file is part of the KDE project
2 Copyright (C) 2008 Pino Toscano <pino@kde.org>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
21 #ifndef NETWORKMANAGER_WIREDNETWORK_H
22 #define NETWORKMANAGER_WIREDNETWORK_H
24 #include <solid/control/ifaces/wirednetworkinterface.h>
25 #include <solid/control/wirednetworkinterface.h>
27 #include "NetworkManager-networkinterface.h"
29 class NMWiredNetworkPrivate;
31 class NMWiredNetwork : public NMNetworkInterface, virtual public Solid::Control::Ifaces::WiredNetworkInterface
33 Q_OBJECT
34 Q_INTERFACES(Solid::Control::Ifaces::WiredNetworkInterface)
35 public:
36 NMWiredNetwork(const QString & networkPath);
37 virtual ~NMWiredNetwork();
38 QString hardwareAddress() const;
39 int bitRate() const;
40 bool carrier() const;
41 void setBitrate(int rate);
42 void setCarrier(bool carrier);
43 /* reimp */ bool activateConnection(const QString & connectionUni, const QVariantMap & connectionParameters);
44 /* reimp */ bool deactivateConnection();
45 Q_SIGNALS:
46 void bitRateChanged(int bitRate);
47 void carrierChanged(bool plugged);
48 private:
49 Q_DECLARE_PRIVATE(NMWiredNetwork)
50 Q_DISABLE_COPY(NMWiredNetwork)
53 #endif