SolidModules
NetworkManager-wirednetwork.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright (C) 2008 Pino Toscano <pino@kde.org> 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 2 of the License, or 00007 (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 00019 */ 00020 00021 #ifndef NETWORKMANAGER_WIREDNETWORK_H 00022 #define NETWORKMANAGER_WIREDNETWORK_H 00023 00024 #include <solid/control/ifaces/wirednetworkinterface.h> 00025 #include <solid/control/wirednetworkinterface.h> 00026 00027 #include "NetworkManager-networkinterface.h" 00028 00029 class NMWiredNetworkPrivate; 00030 00031 class NMWiredNetwork : public NMNetworkInterface, virtual public Solid::Control::Ifaces::WiredNetworkInterface 00032 { 00033 Q_OBJECT 00034 Q_INTERFACES(Solid::Control::Ifaces::WiredNetworkInterface) 00035 public: 00036 NMWiredNetwork(const QString & networkPath); 00037 virtual ~NMWiredNetwork(); 00038 QString hardwareAddress() const; 00039 int bitRate() const; 00040 bool carrier() const; 00041 void setBitrate(int rate); 00042 void setCarrier(bool carrier); 00043 /* reimp */ bool activateConnection(const QString & connectionUni, const QVariantMap & connectionParameters); 00044 /* reimp */ bool deactivateConnection(); 00045 Q_SIGNALS: 00046 void bitRateChanged(int bitRate); 00047 void carrierChanged(bool plugged); 00048 private: 00049 Q_DECLARE_PRIVATE(NMWiredNetwork) 00050 Q_DISABLE_COPY(NMWiredNetwork) 00051 }; 00052 00053 #endif