libsolidcontrol
networkserialinterface.h
Go to the documentation of this file.00001 /* 00002 Copyright 2008 Will Stephenson <wstephenson@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Lesser General Public 00006 License as published by the Free Software Foundation; either 00007 version 2.1 of the License, or (at your option) version 3, or any 00008 later version accepted by the membership of KDE e.V. (or its 00009 successor approved by the membership of KDE e.V.), which shall 00010 act as a proxy defined in Section 6 of version 3 of the license. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Lesser General Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public 00018 License along with this library. If not, see <http://www.gnu.org/licenses/>. 00019 */ 00020 00021 #ifndef SOLID_CONTROL_SERIALNETWORKINTERFACE_H 00022 #define SOLID_CONTROL_SERIALNETWORKINTERFACE_H 00023 00024 #include "networkinterface.h" 00025 00026 namespace Solid 00027 { 00028 namespace Control 00029 { 00030 class SerialNetworkInterfacePrivate; 00034 class SOLIDCONTROL_EXPORT SerialNetworkInterface : public NetworkInterface 00035 { 00036 Q_OBJECT 00037 Q_DECLARE_PRIVATE(SerialNetworkInterface) 00038 00039 public: 00045 SerialNetworkInterface(QObject *backendObject = 0); 00046 00052 SerialNetworkInterface(const SerialNetworkInterface &network); 00053 00057 virtual ~SerialNetworkInterface(); 00058 00064 virtual NetworkInterface::Type type() const; 00065 00066 Q_SIGNALS: 00067 void pppStats(uint in, uint out); 00068 protected: 00072 SerialNetworkInterface(SerialNetworkInterfacePrivate &dd, QObject *backendObject); 00073 00077 SerialNetworkInterface(SerialNetworkInterfacePrivate &dd, const SerialNetworkInterface &network); 00078 00079 void makeConnections(QObject * source); 00080 private Q_SLOTS: 00081 void _k_destroyed(QObject *object); 00082 private: 00083 friend class NetworkInterface; 00084 friend class NetworkInterfacePrivate; 00085 }; 00086 } //Control 00087 } //Solid 00088 00089 #endif // SOLID_CONTROL_SERIALNETWORKINTERFACE_H 00090